diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-02 09:13:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 00:43:41 +0300 |
commit | bdf53c58490bb52e17636eca8ad18d2c38ec3cb8 (patch) | |
tree | 01c3bae0fbaca8d1ba308d527ac2b1900ffb3b13 /net/ipv6/ndisc.c | |
parent | 59b2af26b9f674749216fd3bfba19d842de3671c (diff) | |
download | linux-bdf53c58490bb52e17636eca8ad18d2c38ec3cb8.tar.xz |
neigh: Don't require dst in neigh_hh_init
- Add protocol to neigh_tbl so that dst->ops->protocol is not needed
- Acquire the device from neigh->dev
This results in a neigh_hh_init that will cache the samve values
regardless of the packets flowing through it.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 471ed24aabae..e363bbc2420d 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -117,6 +117,7 @@ static const struct neigh_ops ndisc_direct_ops = { struct neigh_table nd_tbl = { .family = AF_INET6, .key_len = sizeof(struct in6_addr), + .protocol = cpu_to_be16(ETH_P_IPV6), .hash = ndisc_hash, .constructor = ndisc_constructor, .pconstructor = pndisc_constructor, |