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

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 22 Jan 1998 20:15:55 +0000 (GMT)


> : That will be a bug then
> In diald.

No. If you dont emulate AF_INET, SOCK_PACKET properly its a bug. You tell
people to change to this and it doesnt work

> In any case, if packet socket would support SIOCGIFADDR
> it would return ll address rather than IP address.

Perhaps we should cover this case. To start with you do pass the family
to SIOCGIFADDR..

> : > With SOCK_PACKET incoming packets trigger the select; with SOCK_RAW,
> : > they don't.
>
> Umm... when link is down, no packets can arrive, so that I do not
> understand the problem. Apparently, I misunderstood something.

diald watches a fake link (tty/pty pair) when the real one isnt dialed in

> In any case, wrt select they are indistinguishable.

Yes. I cant right now see how select would break for one and not the other