> 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.

In Steven's "Unix Network Programming" book (2nd Edition, Volume
1) he impliments a get_ifi_info function in section 16.6. He NUL
terminates the interface name on the bottom of page 436. It would
be more up to date and seems better explained than the TCP/IP
Illustrated section on the same topic.

        David.


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

Reply via email to