/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 */
/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 */