• Guillaume Nault's avatar
    ipv4: Set scope explicitly in ip_route_output(). · ec20b283
    Guillaume Nault authored
    Add a "scope" parameter to ip_route_output() so that callers don't have
    to override the tos parameter with the RTO_ONLINK flag if they want a
    local scope.
    
    This will allow converting flowi4_tos to dscp_t in the future, thus
    allowing static analysers to flag invalid interactions between
    "tos" (the DSCP bits) and ECN.
    
    Only three users ask for local scope (bonding, arp and atm). The others
    continue to use RT_SCOPE_UNIVERSE. While there, add a comment to warn
    users about the limitations of ip_route_output().
    Signed-off-by: default avatarGuillaume Nault <gnault@redhat.com>
    Acked-by: Leon Romanovsky <leonro@nvidia.com> # infiniband
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ec20b283
arp.c 36.4 KB