Log binding ip address and port during startup 72/13272/4
authorAndrew Deason <adeason@sinenomine.net>
Mon, 20 Aug 2018 19:53:35 +0000 (14:53 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 5 Oct 2018 12:54:56 +0000 (08:54 -0400)
commit02dede5d40a55421ab4f093c1c90b8f785a40ec1
treea75d3409e75337998f1c3639c330d3ad8a3dc7d7
parent794748af87134d0b89fbca3be6e0480a96a0655c
Log binding ip address and port during startup

Many daemons currently have the ability to bind to a specific ip
address using the -rxbind parameter. The behavior can be a little
unintuitive, however, since we only bind to the ip address we find via
NetInfo/NetRestrict processing, and only if we end up with a single ip
address. Since that processing involves examining the set of ip
addresses available, this can have confusing results if, for instance,
a daemon starts up while an administrator is changing the local ip
configuration.

If a daemon binds to a different ip address than the administrator
expects, this can be very confusing, especially since for most daemons
we don't log our bound ip anywhere. To help alleviate this, change the
startup code for all of our daemons to log what ip we are trying to
bind to (or "0.0.0.0" if none), along with our local port.

Change-Id: I18d3647c4d134177a0a17c6a64583d444558a9f6
Reviewed-on: https://gerrit.openafs.org/13272
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/afs_call.c
src/budb/server.c
src/butc/tcmain.c
src/kauth/kaserver.c
src/ptserver/ptserver.c
src/update/server.c
src/viced/viced.c
src/vlserver/vlserver.c
src/volser/volmain.c