Peter Memishian wrote:
> usr/src/cmd/cmd-inet/sbin/dhcpagent/interface.c
>
> 194, 803: Not that this matters, but SIOCGIFINDEX and the struct ifreq
> structure are obsolete.
I don't see any use of the word `obsolete' in if_tcp(7P) -- only that they
are provided for compatibility. Indeed, in the rest of UNIX programming
world, these are the standard interfaces. I've begun to wonder whether we
made a mistake introducing the SIOCGLIF* ioctls in the first place, since
they seem to target a non-existent problem (interface names greater than
16 characters).
Maybe they're not, and maybe we did. But I'm basing my feedback on these
comments in <net/if.h>:
/*
* OBSOLETE: Replaced by struct lifreq. Supported for compatibility.
*
* Interface request structure used for socket
* ioctl's. All interface ioctl's must have parameter
* definitions which begin with ifr_name. The
* remainder may be interface specific.
*/
/*
* OBSOLETE: Structure used in SIOCGIFCONF request.
* Used to retrieve interface configuration
* for machine (useful for programs which
* must know all networks accessible).
*/
Should we just file a bug to have these comments updated then?
-Seb
_______________________________________________
networking-discuss mailing list
[email protected]