diff options
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index a0b4c5da8d43..0d3426cb5c4f 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
@@ -152,7 +152,7 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse) | |||
152 | 152 | ||
153 | case IPPROTO_AH: | 153 | case IPPROTO_AH: |
154 | if (pskb_may_pull(skb, xprth + 8 - skb->data)) { | 154 | if (pskb_may_pull(skb, xprth + 8 - skb->data)) { |
155 | __be32 *ah_hdr = (__be32*)xprth; | 155 | __be32 *ah_hdr = (__be32 *)xprth; |
156 | 156 | ||
157 | fl4->fl4_ipsec_spi = ah_hdr[1]; | 157 | fl4->fl4_ipsec_spi = ah_hdr[1]; |
158 | } | 158 | } |
@@ -298,8 +298,8 @@ void __init xfrm4_init(int rt_max_size) | |||
298 | xfrm4_state_init(); | 298 | xfrm4_state_init(); |
299 | xfrm4_policy_init(); | 299 | xfrm4_policy_init(); |
300 | #ifdef CONFIG_SYSCTL | 300 | #ifdef CONFIG_SYSCTL |
301 | sysctl_hdr = register_net_sysctl_table(&init_net, net_ipv4_ctl_path, | 301 | sysctl_hdr = register_net_sysctl(&init_net, "net/ipv4", |
302 | xfrm4_policy_table); | 302 | xfrm4_policy_table); |
303 | #endif | 303 | #endif |
304 | } | 304 | } |
305 | 305 | ||