diff options
author | Vlad Yasevich <vyasevich@gmail.com> | 2015-01-31 10:40:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-02 19:28:04 -0800 |
commit | 366e41d9774d7010cb63112b6db2fce6dc7809c0 (patch) | |
tree | d29cf61b02e8b31f41373e82e710645c768de0e9 /include/linux/ipv6.h | |
parent | ba0c39cb98a1eec3635ae5f959fef963738d12a5 (diff) | |
download | linux-stable-366e41d9774d7010cb63112b6db2fce6dc7809c0.tar.gz linux-stable-366e41d9774d7010cb63112b6db2fce6dc7809c0.tar.bz2 linux-stable-366e41d9774d7010cb63112b6db2fce6dc7809c0.zip |
ipv6: pull cork initialization into its own function.
Pull IPv6 cork initialization into its own function that
can be re-used. IPv6 specific cork data did not have an
explicit data structure. This patch creats eone so that
just ipv6 cork data can be as arguemts. Also, since
IPv6 tries to save the flow label into inet_cork_full
tructure, pass the full cork.
Adjust ip6_cork_release() to take cork data structures.
Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ipv6.h')
-rw-r--r-- | include/linux/ipv6.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 2805062c013f..4d5169f5d7d1 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -125,6 +125,12 @@ struct ipv6_mc_socklist; struct ipv6_ac_socklist; struct ipv6_fl_socklist; +struct inet6_cork { + struct ipv6_txoptions *opt; + u8 hop_limit; + u8 tclass; +}; + /** * struct ipv6_pinfo - ipv6 private area * @@ -217,11 +223,7 @@ struct ipv6_pinfo { struct ipv6_txoptions *opt; struct sk_buff *pktoptions; struct sk_buff *rxpmtu; - struct { - struct ipv6_txoptions *opt; - u8 hop_limit; - u8 tclass; - } cork; + struct inet6_cork cork; }; /* WARNING: don't change the layout of the members in {raw,udp,tcp}6_sock! */ |