Savagedlight / libifconfig

A C API to do most things done by the FreeBSD 'ifconfig' program today
Other
26 stars 7 forks source link

Find out if casting to caddr_t is required #8

Closed Savagedlight closed 8 years ago

Savagedlight commented 8 years ago

/sbin/ifconfig code sometimes casts ifreq* to _caddrt, and sometimes not. Find out if there is a reason for this, or if it's an is an artifact of decades of incremental changes.

Do as appropriate with internal functions _libifcioctlwrap() and _libifc_ioctlwrapcaddr().

FreeBSD's _caddrt is defined in sys/sys/types.h as follows: typedef char * caddr_t; /* core address */