All of lore.kernel.org
 help / color / mirror / Atom feed
From: danielhilst@gmail.com (Daniel.)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Adding new protocol to linux.
Date: Mon, 28 Mar 2016 18:36:40 -0300	[thread overview]
Message-ID: <CAF3SDA5-x3qJgxcX9N8b=3MaR8ojy7rHUJX9tB6Zz4QGxzku-g@mail.gmail.com> (raw)
In-Reply-To: <CAKoUArkLU5o=qeeLj=QrePSz9ioVXW8-_Uk0OPptr_UpE+rgqQ@mail.gmail.com>

Hey everybody, I see that sockets, protocols and network device
drivers are pieces of a same puzzle. So after some digging and
thinking I'm considering write the driver in such way that it only
deals with data link layer, no socket bits. It should sit at 2nd OSI
layer and let routing and segmenting for the other layers. This way
everything that works with TCP/UDP/IP should work with our little
radio transciver. The one million dollars question remains, how do
this with only 32bytes MTU and as a bonus, how to spread the
communications of several nodes throughout all available channels so
that I have less collisions as possible. The first idea that I have
was using some connection based protocol where, when someone wants to
transfers some N bytes of data, the source makes a request to
destination which choses one avaible channel to be used for the
transfers. The data is transferred through the selected channel and
the connection is closed. The comunication used to open some
"connection" would be done on a "control channel" which should be used
as few as possible, while the realdata is transmitted on *some of*
"data channels". What you guys think?

I'll keep working (as much as my sparse time allows me) to get this up
and running then I think at details, if someone has interest here is
the (not yet finished) code: https://github.com/gkos/nrf24l01p

Cheers

2016-03-28 17:08 GMT-03:00 Rami Rosen <roszenrami@gmail.com>:
> Hi,
> Header files under include/net are for kernel internal use.
> Header files under include/uapi are for exposure to userspace:
> http://lxr.free-electrons.com/source/include/uapi/
>
> Regards,
> Rami Rosen
> http://ramirose.wix.com/ramirosen
>
> ?????? 28 ???? 2016 18:04, "Manoj Nayak" <manojnayak2005@gmail.com> ???:
>>
>> > 1) Is it possible to write a new protocol for linux with an out of
>> > tree module without modifing socket.h file?
>>
>> I think this has been already tried in the following code.
>>
>> http://lxr.free-electrons.com/source/include/net/bluetooth/bluetooth.h#L36
>>
>> http://lxr.free-electrons.com/source/include/linux/socket.h#L239
>>
>> The challenge is to expose this development specific header file to
>> userspace.
>> The following document talks about that.
>>
>> http://kernelnewbies.org/KernelHeaders
>>
>> Regards
>> Manoj Nayak
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
"Do or do not. There is no try"
  Yoda Master

  reply	other threads:[~2016-03-28 21:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-28 15:03 Adding new protocol to linux Manoj Nayak
2016-03-28 20:08 ` Rami Rosen
2016-03-28 21:36   ` Daniel. [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-29  4:36 Manoj Nayak
2016-03-28 13:35 Manoj Nayak
2016-03-26  2:00 Daniel.
2016-03-26 11:04 ` Rami Rosen
     [not found]   ` <CAF3SDA5kn7_Pnx0=XpeQOB-D2UCeYZEnzPpcE=25U30ob9KSHQ@mail.gmail.com>
2016-03-26 23:30     ` Daniel
2016-03-26 19:59 ` Valdis.Kletnieks at vt.edu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF3SDA5-x3qJgxcX9N8b=3MaR8ojy7rHUJX9tB6Zz4QGxzku-g@mail.gmail.com' \
    --to=danielhilst@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.