Re: about syslogd and printk()

Andi Kleen (ak@muc.de)
Mon, 20 Jul 1998 18:04:41 +0200


On Mon, Jul 20, 1998 at 02:27:13PM +0200, Mike Jagdis wrote:
> On 19 Jul 1998, Andi Kleen wrote:
>
> > But why do you want this? Networking already has packet sockets, which
> > are able to intercept every packet just fine.
>
> That reminds me... I was trying to get get diald to use AF_PACKET,
> SOCK_DGRAM snooping at the weekend (as I want it manage ippp links).
> However it seems that an AF_PACKET, SOCK_DGRAM never receives
> anything when bound to a slip interface (my test code did get data
> when I changed the interface name to something else). Using AF_PACKET,
> SOCK_PACKET does get data. I can work around this for now as only the
> proxy needs to be slip. I don't know the net code well enough to
> figure this one out - even after staring blankly at it for a weekend :-(.

Interesting. The only difference for the reading path between
(AF_PACKET, SOCK_RAW) and (AF_PACKET, SOCK_DGRAM) is:

if (sk->type != SOCK_DGRAM)
skb_push(skb, skb->data - skb->mac.raw);

Does an ordinary tcpdump work on your slip line?

For me AF_PACKET,SOCK_DGRAM works fine on a ippp interface.

-Andi

-
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.altern.org/andrebalsa/doc/lkml-faq.html