s/iface/if_name/, wrap everything in #ifdef WIRELESS so we don't build WPA
support into arches that shouldn't have it, fix up dependencies for same,
and add a changelog entry so we can build a custom version of netcfg for
test ISOs.
The core problem here is that SIGCHLD doesn't tell you which of your many
children may have exited... so when the process spawned by popen() finishes,
it will trigger that SIGCHLD handler, and if it's waiting for a process that
isn't likely to finish any time soon, things get ugly. So, we'll wait with
WNOHANG, and check the status code from that, to determine whether the
right child process has exited.
Wait for link detection on static interfaces. Closes: #606515
The code I wrote for link detection/progress bar fun previously was only
used on DHCP / autoconfigured NICs. I've now added it to static interfaces,
too.
Having the numbers in a comment, and then repeated in the code, is just
asking for trouble. This way, we identify what we're referring to, without
having to update things in two places.
Print the netcfg version and build date when starting
More than once now, I've wondered why my changes weren't doing anything, and
it's been because I ran the wrong image. Similarly, a few times I've wasted
time rebuilding because my changes were running, but weren't doing the right
thing. This solves both problems by unambiguously identifying what build is
currently running.
Extract out the '63' magic number into a global constant
MAXHOSTNAMELEN was defined inside dhcp.c, and was only used in one place.
Now, it's defined in netcfg.h and used everywhere the length of a hostname
is important. Much tidier.