• Ville Nuorvala's avatar
    [IPV6]: Add and use new 'strict' parameter to ip6_chk_addr(). · fd9f1934
    Ville Nuorvala authored
    RFC 2461 requires that the source address of Neighbor Discovery messages
    is an address assigned to the sending interface.
    
    Duplicate Address Detection should also be interface specific. We don't,
    for example, want a node to DoS itself just because it has two interfaces
    on the same link and both happen to listen to the same multicast group. If
    there is a true duplicate on the link, the interface doing DAD will notice
    it anyway.
    
    The attached patch adds a 'strict' parameter to ip6_chk_addr() and
    ip6_get_ifaddr() to allow link-local protocols like ND and DAD to do
    strict address checks even on addresses with greater scope than
    link-local.
    fd9f1934
af_inet6.c 20.8 KB