[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1309874213.1765.45.camel@mojatatu>
Date: Tue, 05 Jul 2011 09:56:53 -0400
From: jamal <hadi@...erus.ca>
To: Adam Katz <adamkatz0@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: libpcap and tc filters
On Tue, 2011-07-05 at 16:07 +0300, Adam Katz wrote:
> second, I just took at the libpcap source code and it seems it's using
> the same ETH_P_ALL option when binding to an interface. So based on
> what you're saying, the same solution of patching libpcap and
> replacing ETH_P_ALL with ETH_P_IP should also make these rules work
> with traffic sent using pure libpcap or any libpcap - based
> application.
ETH_P_ALL makes sense if you are unsure it is going to be IP. So i would
change/optimize apps only for IP if they are intended to deal with IP
only (same for ARP etc).
In your case, it seems it is tcp only - which runs on top of IP. So
it makes sense to do it for that specific use case etc.
cheers,
jamal
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists