Re: screwy kernel messages about (AF_INET,SOCK_PACKET,..) being obsolete

Shaw Carruthers (shaw@shawc.demon.co.uk)
Thu, 22 Jan 1998 11:41:20 +0000 (GMT)


Excerpts from saved-mail: 21-Jan-98 Re: screwy kernel messages .. Andi
Kleen@muc.de (677)

> It means what it says. Do use socket(AF_PACKET, SOCK_RAW, ..) instead.

I have been looking at it in the context of Diald.

This does not seem to be an exact substitute for (AF_INET,SOCK_PACKET,..)

1) It does not support ioctl(..., SIOCGIFADDR.

2) Diald uses select to watch for input on the proxy port when the link
is down.
With SOCK_PACKET incoming packets trigger the select; with SOCK_RAW,
they don't.

--
Shaw Carruthers - shaw@shawc.demon.co.uk
London SW14 7JW UK
This is not a sig( with homage to Magritte).