On Sat, Apr 08, 2000 at 10:30:54AM -0700, Ben Greear wrote:
> Andi Kleen wrote:
> >
> > On Fri, Apr 07, 2000 at 08:11:20PM -0700, Ben Greear wrote:
> > > kernel: fooserver uses obsolete (PF_INET, SOCK_PACKET)
> > >
> > > What is the thing I should be using if that one is obsolete?
> >
> > Read packet(7)
>
> I did find that man page, eventually, and thought it very useful. The one thing
> that is nowhere I could find is a description of which arguments
> to give to sendto, and what they mean. Example code would be
> great too. When I get my stuff working, I'll be happy to put
> the sample code up on my web page, and let you know in case you
> want to include it into your man page...
sendto always gets the address type of the socket family, a PF_PACKET
sendto gets sockaddr_ll. The only exception to that is (PF_INET,SOCK_PACKET),
one of the reasons why it is deprecated now.
In the protocol man pages that is always the addresses described in
``ADDRESS TYPES''
I'll clarify this in the send* man page.
>
> I'm not sure how others feel about it, but giving the 'man packet'
> hint in the kernel's deprecated message might be useful too. Could
> also find a way to tell the user why the sendto args are incorrect?
I guess a lot of people would want that sometimes -- ATM unfortunately
EINVAL is the best you'll get from system calls.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]