You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't auto-set broadcast unless subnet larger than /31
Since [vishvananda#248](vishvananda#248), adding an address automatically sets the broadcast if the broadcast address was not specified. This is undesirable when adding an IP with a prefixlen of /31 or /32. (Additional details in the issues linked below.)
This changes the behavior so that the broadcast is only automatically set if the prefixlen is /30 or larger.
Issue reported in:
- vishvananda#329
- vishvananda#471
See also:
- [RFC 3021](http://tools.ietf.org/html/rfc3021)
Alternatives to this PR:
A. vishvananda#472 - Adds `AddrAddWithoutCalculatedBroadcast`.
B. jjastrze-ovh@9a85a61 - Breaking change to make auto-setting the broadcast address an opt-in feature.
C. <no existing PR> - Suppress sending of the broadcast to netlink when `addr` has a broadcast set to `0.0.0.0`.
0 commit comments