diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ah6.c | 5 | ||||
-rw-r--r-- | net/ipv6/esp6.c | 7 | ||||
-rw-r--r-- | net/ipv6/ipcomp6.c | 6 | ||||
-rw-r--r-- | net/ipv6/mip6.c | 10 | ||||
-rw-r--r-- | net/ipv6/reassembly.c | 6 |
5 files changed, 13 insertions, 21 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index ac71d9e0a500..fcffd4e522c8 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c | |||
@@ -755,11 +755,10 @@ static int ah6_rcv_cb(struct sk_buff *skb, int err) | |||
755 | return 0; | 755 | return 0; |
756 | } | 756 | } |
757 | 757 | ||
758 | static const struct xfrm_type ah6_type = | 758 | static const struct xfrm_type ah6_type = { |
759 | { | ||
760 | .description = "AH6", | 759 | .description = "AH6", |
761 | .owner = THIS_MODULE, | 760 | .owner = THIS_MODULE, |
762 | .proto = IPPROTO_AH, | 761 | .proto = IPPROTO_AH, |
763 | .flags = XFRM_TYPE_REPLAY_PROT, | 762 | .flags = XFRM_TYPE_REPLAY_PROT, |
764 | .init_state = ah6_init_state, | 763 | .init_state = ah6_init_state, |
765 | .destructor = ah6_destroy, | 764 | .destructor = ah6_destroy, |
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 7b6e830ebc6d..83fc3a385a26 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c | |||
@@ -621,11 +621,10 @@ static int esp6_rcv_cb(struct sk_buff *skb, int err) | |||
621 | return 0; | 621 | return 0; |
622 | } | 622 | } |
623 | 623 | ||
624 | static const struct xfrm_type esp6_type = | 624 | static const struct xfrm_type esp6_type = { |
625 | { | ||
626 | .description = "ESP6", | 625 | .description = "ESP6", |
627 | .owner = THIS_MODULE, | 626 | .owner = THIS_MODULE, |
628 | .proto = IPPROTO_ESP, | 627 | .proto = IPPROTO_ESP, |
629 | .flags = XFRM_TYPE_REPLAY_PROT, | 628 | .flags = XFRM_TYPE_REPLAY_PROT, |
630 | .init_state = esp6_init_state, | 629 | .init_state = esp6_init_state, |
631 | .destructor = esp6_destroy, | 630 | .destructor = esp6_destroy, |
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c index d1c793cffcb5..1b9316e1386a 100644 --- a/net/ipv6/ipcomp6.c +++ b/net/ipv6/ipcomp6.c | |||
@@ -181,8 +181,7 @@ static int ipcomp6_rcv_cb(struct sk_buff *skb, int err) | |||
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | 183 | ||
184 | static const struct xfrm_type ipcomp6_type = | 184 | static const struct xfrm_type ipcomp6_type = { |
185 | { | ||
186 | .description = "IPCOMP6", | 185 | .description = "IPCOMP6", |
187 | .owner = THIS_MODULE, | 186 | .owner = THIS_MODULE, |
188 | .proto = IPPROTO_COMP, | 187 | .proto = IPPROTO_COMP, |
@@ -193,8 +192,7 @@ static const struct xfrm_type ipcomp6_type = | |||
193 | .hdr_offset = xfrm6_find_1stfragopt, | 192 | .hdr_offset = xfrm6_find_1stfragopt, |
194 | }; | 193 | }; |
195 | 194 | ||
196 | static struct xfrm6_protocol ipcomp6_protocol = | 195 | static struct xfrm6_protocol ipcomp6_protocol = { |
197 | { | ||
198 | .handler = xfrm6_rcv, | 196 | .handler = xfrm6_rcv, |
199 | .cb_handler = ipcomp6_rcv_cb, | 197 | .cb_handler = ipcomp6_rcv_cb, |
200 | .err_handler = ipcomp6_err, | 198 | .err_handler = ipcomp6_err, |
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index db9b6cbc9db3..f61429d391d3 100644 --- a/net/ipv6/mip6.c +++ b/net/ipv6/mip6.c | |||
@@ -336,11 +336,10 @@ static void mip6_destopt_destroy(struct xfrm_state *x) | |||
336 | { | 336 | { |
337 | } | 337 | } |
338 | 338 | ||
339 | static const struct xfrm_type mip6_destopt_type = | 339 | static const struct xfrm_type mip6_destopt_type = { |
340 | { | ||
341 | .description = "MIP6DESTOPT", | 340 | .description = "MIP6DESTOPT", |
342 | .owner = THIS_MODULE, | 341 | .owner = THIS_MODULE, |
343 | .proto = IPPROTO_DSTOPTS, | 342 | .proto = IPPROTO_DSTOPTS, |
344 | .flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_LOCAL_COADDR, | 343 | .flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_LOCAL_COADDR, |
345 | .init_state = mip6_destopt_init_state, | 344 | .init_state = mip6_destopt_init_state, |
346 | .destructor = mip6_destopt_destroy, | 345 | .destructor = mip6_destopt_destroy, |
@@ -469,11 +468,10 @@ static void mip6_rthdr_destroy(struct xfrm_state *x) | |||
469 | { | 468 | { |
470 | } | 469 | } |
471 | 470 | ||
472 | static const struct xfrm_type mip6_rthdr_type = | 471 | static const struct xfrm_type mip6_rthdr_type = { |
473 | { | ||
474 | .description = "MIP6RT", | 472 | .description = "MIP6RT", |
475 | .owner = THIS_MODULE, | 473 | .owner = THIS_MODULE, |
476 | .proto = IPPROTO_ROUTING, | 474 | .proto = IPPROTO_ROUTING, |
477 | .flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_REMOTE_COADDR, | 475 | .flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_REMOTE_COADDR, |
478 | .init_state = mip6_rthdr_init_state, | 476 | .init_state = mip6_rthdr_init_state, |
479 | .destructor = mip6_rthdr_destroy, | 477 | .destructor = mip6_rthdr_destroy, |
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c index fe156d99179e..1a157ca2ebc1 100644 --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c | |||
@@ -62,8 +62,7 @@ | |||
62 | 62 | ||
63 | static const char ip6_frag_cache_name[] = "ip6-frags"; | 63 | static const char ip6_frag_cache_name[] = "ip6-frags"; |
64 | 64 | ||
65 | struct ip6frag_skb_cb | 65 | struct ip6frag_skb_cb { |
66 | { | ||
67 | struct inet6_skb_parm h; | 66 | struct inet6_skb_parm h; |
68 | int offset; | 67 | int offset; |
69 | }; | 68 | }; |
@@ -575,8 +574,7 @@ fail_hdr: | |||
575 | return -1; | 574 | return -1; |
576 | } | 575 | } |
577 | 576 | ||
578 | static const struct inet6_protocol frag_protocol = | 577 | static const struct inet6_protocol frag_protocol = { |
579 | { | ||
580 | .handler = ipv6_frag_rcv, | 578 | .handler = ipv6_frag_rcv, |
581 | .flags = INET6_PROTO_NOPOLICY, | 579 | .flags = INET6_PROTO_NOPOLICY, |
582 | }; | 580 | }; |