lkml.org 
[lkml]   [1999]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPF_PACKET, ETH_P_IP does not catch outgoing packets.
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?

Ciao, ET.


PS: Btw, if anyone got Oopses with the defxx.c fddi driver
he should undefine the DYNAMIC_BUFFERS symbol. There's an
unchecked dev_alloc_skb in the driver that tries to get
a large buffer (fddi pkt size + a little bit, 4.5k) and
that one fails occasionally.

PPS: the PACKET_RX_RING is really great!!!

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