• Mikio Hara's avatar
    net: tweak the ephemeral port range on dragonfly · 83ac901f
    Mikio Hara authored
    On DragonFly BSD, we adjust the ephemeral port range because
    unlike other BSD systems its default ephemeral port range
    doesn't conform to IANA recommendation as described in RFC 6355
    and is pretty narrow.
    
    On DragonFly BSD 3.6: default range [1024, 5000], high range [49152, 65535]
    On FreeBSD 10: default range [10000, 65535], high range [49152, 65535]
    On Linux 3.11: default range [32768, 61000]
    
    Fixes #7541.
    
    LGTM=iant
    R=jsing, gobot, iant
    CC=golang-codereviews
    https://golang.org/cl/80610044
    83ac901f
sockopt_bsd.go 2.07 KB