lkml.org 
[lkml]   [2003]   [Dec]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 16 Dec 2003 00:16:36 -0800 (PST)
FromVidya G Krishnan <>
SubjectPacket Handling in Linux
I am doing a project on traffic shaping in linux. I
think of inserting a module on top of network driver
in gateway, buffer packets obtained from network
driver and transmit according to prefixed rate to
other machines.

How can I call my packet handling function instead of
the default packet handler(say IPV4 packet handler)?
Is it possible to call my packet handler by changing
the net_rx_action() in linux/net/core/dev.c . Can I
modify the ETH_P_IP (default function is ip_rcv() in
linux/ip_input.c). 

My idea is to call ip_rcv() from my packet handler. Do
u think it will work? Can u suggest a better one? 

plzzz reply...



__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:59    [from the cache]
©2003-2008