Date: Tue, 09 Jan 2001 15:39:13 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: Graham Wheeler <gram@cequrux.com> Cc: freebsd-hackers@freebsd.org, markster@marko.net Subject: Re: Size of struct ifreq/returned buffer of SIOCGIFCONF Message-ID: <200101091539.aa14307@salmon.maths.tcd.ie> In-Reply-To: Your message of "Tue, 09 Jan 2001 15:42:28 %2B0200." <3A5B1544.36E7F8C3@cequrux.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200101091539.aa14307>