git: inet: Add support for IPv4 /31 prefixes, as described in RFC 3021.

Roy Marples roy at crater.dragonflybsd.org
Wed Dec 18 08:30:58 PST 2019


commit 502aa5d8026099d86da780e109fa91f191881e0f
Author: Roy Marples <roy at marples.name>
Date:   Wed Dec 18 16:30:12 2019 +0000

    inet: Add support for IPv4 /31 prefixes, as described in RFC 3021.
    
    To run a /31 network, participating hosts MUST drop support
    for directed broadcasts, and treat the first and last addresses
    on subnet as unicast. The broadcast address for the prefix
    should be the link local broadcast address, INADDR_BROADCAST.
    
    Taken from FreeBSD, r226402.

Summary of changes:
 sys/netinet/in.c | 19 +++++++++++++------
 sys/netinet/in.h |  2 ++
 2 files changed, 15 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/502aa5d8026099d86da780e109fa91f191881e0f


-- 
DragonFly BSD source repository



More information about the Commits mailing list