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

Andi Kleen (
21 Jan 1998 16:16:05 +0100

"Sergei Viznyuk" <> writes:

> Hi again
> While testing dhcpcd
> which I rewrote to work with new kernels
> (as prescribed by Alan Cox - with SOCK_PACKET)
> I'm getting strange kernel messages in my /var/log/debug
> file:
> <time stamp> kernel: dhcpcd uses obsolete (AF_INET,SOCK_PACKET..
> Well, that's exactly what I'm using: socket(AF_INET,SOCK_PACKET,..)
> So why is it obsolete now?
> Also, that message shows up only once: when I start dhcpcd
> with unconfigured eth0 interface.
> Subsequent runs of dhcpcd with eth0 already up
> do not cause that message.

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