Subject: Re: ipfilter 3.4beta - ipv6 filtering.
To: Jason Thorpe <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 02/22/2000 10:48:41
> > sa_len?
>chicken/egg ... you have to copy it in to read sa_len. this is why e.g.
>bind(2) takes the sockaddr and the size of the sockaddr.
actually, i don't know but i'd be a-guessing that bind(2) takes the
sockaddr and the size of parameter simply because sa_len wasn't always
now that it is, bind(2) (and connect(2), getpeername(2), etc) could
probably just pretend the pointer to sockaddr was a pointer to
u_int8_t and "copy" that one byte in. then they'd know how much more
to copy in. ioctl(2) uses pointers in the kernel like this all the
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."