git: mountd - Turn on SO_REUSEADDR (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 20 12:07:27 PDT 2020


commit 5abbd6f3a4c2db46186af86c42b24dbec803f04c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 20 11:24:22 2020 -0700

    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.

Summary of changes:
 sbin/mountd/mountd.c | 31 ++++++++++++++++++++++++++++---
 1 file changed, 28 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5abbd6f3a4c2db46186af86c42b24dbec803f04c


-- 
DragonFly BSD source repository


More information about the Commits mailing list