lkml.org 
[lkml]   [1999]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PF_PACKET, ETH_P_IP does not catch outgoing packets.
Andi Kleen wrote:
> I wrote:
> > I noticed that raw sockets created with
> >
> > socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP))
> >
> > and a later
> >
> > setsockopt(... ADD_MEMBERSHIP (PROMISC)...)
> >
> > do not receive outgoing packets. Just changing the
> > protocol to ETH_P_ALL (or a later bind with that proto)
> > will get all packets. Is this intentional? (I don't think
> > so *g*) Any idea for a quick fix?
>
> I just tried it and it works fine here with 2.2.13

I did not test it with 2.2.13 because I need the receive ring
buffer. With 2.3.33 it does not work and according to Alexey
it's not supposed to do *g*.

Ciao, ET.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [from the cache]
©2003-2011 Jasper Spaans