Date: Sun, 3 Dec 2017 19:43:06 -0500 From: Farhan Khan <khanzf@gmail.com> To: freebsd-hackers@freebsd.org Subject: where ifconfig's socket binds to the interface? Message-ID: <CAFd4kYB-gZFJHJbpnZ1kLXgQuuWvtOY-XEJMK6eXiifENobdnA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFd4kYB-gZFJHJbpnZ1kLXgQuuWvtOY-XEJMK6eXiifENobdnA>