David Malone wrote:
> 
> If you read the paragraph below that code, it notes that the ifreq
> structures are of variable length. The spacing depends on the size
> of the returned info.
> 
>         David.

Something that isn't clear to me - do you know (Mark for Linux, Dave or
someone else for FreeBSD) whether it is reasonable to assume the
ifr_name if the struct ifreq will be NUL terminated? I know that the
name in a struct sockaddr_dl is not necessarily so terminated, but for
the ifr_name field, if it isn't NUL terminated this could get really
messy.

-- 
Dr Graham Wheeler                        E-mail: [EMAIL PROTECTED]
Director, Research and Development       WWW:    http://www.cequrux.com
CEQURUX Technologies                     Phone:  +27(21)423-6065
Firewalls/VPN Specialists                Fax:    +27(21)424-3656


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to