netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Writing a network protocol to communicate with a USB driver
@ 2020-05-26 22:57 Daniel Berliner
  0 siblings, 0 replies; only message in thread
From: Daniel Berliner @ 2020-05-26 22:57 UTC (permalink / raw)
  To: netdev

I am writing a USB driver that allows small USB devices to use their 
hosts internet connection. This involves the creation of a new protocol 
so userspace apps can create a socket for reading and writing. Instead 
of sending the data over the normal network chain the sock forwards that 
data to a USB driver which sends passes the data around around and can 
write data back.

What I think needs to happen is the protocol packetizes the data to be 
sent to the host, add the packets to an SKB then have the USB driver 
pose as a transport device to receive the frames. Much like ECM and EEM 
present as an Ethernet device on the SKBs chain. Does this make any sense?

Right now I am statically linking -- the drivers just know eachothers 
functions and make direct calls. I know this is not good practice and 
need to move the project past a "proof of concept" state with a better 
design. I am inexperienced with the Linux network stack so any 
suggestions would be appreciated.


Thanks,
Dan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-26 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 22:57 Writing a network protocol to communicate with a USB driver Daniel Berliner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).