Thread (4 messages) 4 messages, 3 authors, 2011-01-18

Implement custom network protocol for local processes

From: Kfir Lavi <hidden>
Date: 2011-01-17 21:52:20

On Mon, Jan 17, 2011 at 11:43 PM, John Mahoney [off-list ref] wrote:
On Mon, Jan 17, 2011 at 4:24 PM, Kfir Lavi [off-list ref] wrote:
quoted
Hi,
How can one implement custom header network protocol.
I mean header that wraps regular network packets like ethernet, udp, tcp,
etc...
The sending of this custom packets is done between processes running
locally.
ie. I get a Ethernet packet, inspect it, then add my custom header and
forward
it to another process that listens to a socket, and expect to get data
wrapped with
this custom header.

What is a good way to go about and implement this thing?
Have you looked at the tun/tap drivers?

Yes I did, they can work for me, but I need to modify the code.
They expect  certain protocols and are not passing anything.
It is a bit ugly to go this way.

Also, try asking this question on a network specific list.
--
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110117/092fdcb7/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help