diff options
author | David Ahern <dsahern@gmail.com> | 2019-04-05 16:30:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-08 15:22:41 -0700 |
commit | 0353f28231c79416191326810e7fe656b69c63b7 (patch) | |
tree | 5a815e6a8e58d9b4be5d72259bf5f53078ad43d6 /net/core | |
parent | 717a8f5b2923c44da9157e145c294c4343a5f6de (diff) |
neighbor: Add skip_cache argument to neigh_output
A later patch allows an IPv6 gateway with an IPv4 route. The neighbor
entry will exist in the v6 ndisc table and the cached header will contain
the ipv6 protocol which is wrong for an IPv4 packet. For an IPv4 packet to
use the v6 neighbor entry, neigh_output needs to skip the cached header
and just use the output callback for the neigh entry.
A future patchset can look at expanding the hh_cache to handle 2
protocols. For now, IPv6 gateways with an IPv4 route will take the
extra overhead of generating the header.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions