where ifconfig's socket binds to the interface?

Farhan Khan khanzf at gmail.com
Mon Dec 4 00:43:28 UTC 2017


Hi all,

Does anyone know where in ifconfig(8)'s source it opens a socket and
connects that to the specified interface? I see the socket(2) call in
/usr/src/sbin/ifconfig/ifconfig.c. The while-loop at 767 seems to iterate
through each command. But I can't seem to locate where it connects that
socket(2) to the provided interface.

Any ideas?
Thanks!

--
Farhan Khan
PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE


More information about the freebsd-hackers mailing list