mountd - Turn on SO_REUSEADDR (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Jun 2020 18:24:22 +0000 (11:24 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Jun 2020 19:07:19 +0000 (12:07 -0700)
commit5abbd6f3a4c2db46186af86c42b24dbec803f04c
treeae22a23a5388280b747edd76b61245816310bb6d
parentb743b76f8c2cc8315de7eac87507463cccaded9c
mountd - Turn on SO_REUSEADDR (2)

* After several years it turns out that just turning SO_REUSEADDR
  on can cause a duplicate port to be assigned when an anonymous
  port is requested.  This is really a bug in the kernel which also
  needs to be fixed, but for now only set this option when a specific
  port is selected.

* Enhance bind error reporting.
sbin/mountd/mountd.c