diff options
author | Mat Martineau <mathew.j.martineau@linux.intel.com> | 2017-11-10 14:03:51 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-11 22:09:40 +0900 |
commit | 39b175211053c7a6a4d794c42e225994f1c069c2 (patch) | |
tree | 26153bc41702abdae3a4e74333aab588d4b5f886 /net/ipv6 | |
parent | 973573c49905a2dc2ef07d4395aa0e4b44fb099d (diff) | |
download | linux-39b175211053c7a6a4d794c42e225994f1c069c2.tar.gz linux-39b175211053c7a6a4d794c42e225994f1c069c2.tar.bz2 linux-39b175211053c7a6a4d794c42e225994f1c069c2.zip |
net: Remove unused skb_shared_info member
ip6_frag_id was only used by UFO, which has been removed.
ipv6_proxy_select_ident() only existed to set ip6_frag_id and has no
in-tree callers.
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/output_core.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c index a338bbc33cf3..4a7e5ffa5108 100644 --- a/net/ipv6/output_core.c +++ b/net/ipv6/output_core.c @@ -31,37 +31,6 @@ static u32 __ipv6_select_ident(struct net *net, u32 hashrnd, return id; } -/* This function exists only for tap drivers that must support broken - * clients requesting UFO without specifying an IPv6 fragment ID. - * - * This is similar to ipv6_select_ident() but we use an independent hash - * seed to limit information leakage. - * - * The network header must be set before calling this. - */ -void ipv6_proxy_select_ident(struct net *net, struct sk_buff *skb) -{ - static u32 ip6_proxy_idents_hashrnd __read_mostly; - struct in6_addr buf[2]; - struct in6_addr *addrs; - u32 id; - - addrs = skb_header_pointer(skb, - skb_network_offset(skb) + - offsetof(struct ipv6hdr, saddr), - sizeof(buf), buf); - if (!addrs) - return; - - net_get_random_once(&ip6_proxy_idents_hashrnd, - sizeof(ip6_proxy_idents_hashrnd)); - - id = __ipv6_select_ident(net, ip6_proxy_idents_hashrnd, - &addrs[1], &addrs[0]); - skb_shinfo(skb)->ip6_frag_id = htonl(id); -} -EXPORT_SYMBOL_GPL(ipv6_proxy_select_ident); - __be32 ipv6_select_ident(struct net *net, const struct in6_addr *daddr, const struct in6_addr *saddr) |