[lkml]   [2001]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectTracing a network device

I'm working on a network device that will forward some packets before
they get to netif_rx and thus net_rx_action. Thus, the forwarded
packets handled by my device/protocol would not be traced by the
existing trace utility (AF_PACKET etc.), correct? Am I correct in
assuming that there is no existing way to trace such fast-forwarded packets?

Mmy proposed solution to the problem is to implement a socket type for
my (new) protocol family that will allow such packets to be traced.
Simply open a socket eg socket(AF_MINE, SOCK_RAW, MYPROTO_TRACE) and you
get a copy of the packets from the driver. Is this an acceptable
solution or are people cringing at the thought?

I came across the ethertap driver and it seems to do something along the
lines of what I want to do, but I need to look at it more closely.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:53    [W:0.024 / U:2.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site