lkml.org 
[lkml]   [1999]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: PF_PACKET, ETH_P_IP does not catch outgoing packets.
From
Date
froese@gmx.de (Edgar Toernig) writes:

> Hi,
>
> 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

-Andi

--
This is like TV. I don't like TV.

-
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    [W:0.060 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site