]> err.no Git - linux-2.6/commitdiff
[IPSEC]: Kill afinfo->nf_post_routing
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 14 Nov 2007 09:57:47 +0000 (01:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:55 +0000 (14:53 -0800)
After changeset:

[NETFILTER]: Introduce NF_INET_ hook values

It always evaluates to NF_INET_POST_ROUTING.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/xfrm4_state.c
net/ipv6/xfrm6_state.c
net/xfrm/xfrm_output.c

index 37a086d71bafec1e8babcc3537f0853412d105da..ecc02e9bde326ec3fb33102a8ff47fbe3e6a4637 100644 (file)
@@ -259,7 +259,6 @@ struct xfrm_state_afinfo {
        unsigned int            family;
        unsigned int            proto;
        unsigned int            eth_proto;
-       unsigned int            nf_post_routing;
        struct module           *owner;
        struct xfrm_type        *type_map[IPPROTO_MAX];
        struct xfrm_mode        *mode_map[XFRM_MODE_MAX];
index 296113598944d8828f3ad10cef22be6f211ef69a..fdeebe68a379781853e4a0ea6f4197195af8cb89 100644 (file)
@@ -66,7 +66,6 @@ static struct xfrm_state_afinfo xfrm4_state_afinfo = {
        .family                 = AF_INET,
        .proto                  = IPPROTO_IPIP,
        .eth_proto              = htons(ETH_P_IP),
-       .nf_post_routing        = NF_INET_POST_ROUTING,
        .owner                  = THIS_MODULE,
        .init_flags             = xfrm4_init_flags,
        .init_tempsel           = __xfrm4_init_tempsel,
index 29e0d25b9e1ed013a9bc3f3cc1aea7737b8fcec2..a7a7e8fd6a331ca513bd627b0ed9721031bef18a 100644 (file)
@@ -188,7 +188,6 @@ static struct xfrm_state_afinfo xfrm6_state_afinfo = {
        .family                 = AF_INET6,
        .proto                  = IPPROTO_IPV6,
        .eth_proto              = htons(ETH_P_IPV6),
-       .nf_post_routing        = NF_INET_POST_ROUTING,
        .owner                  = THIS_MODULE,
        .init_tempsel           = __xfrm6_init_tempsel,
        .tmpl_sort              = __xfrm6_tmpl_sort,
index 048d240c3e15c51127fba7114ea1574c9db1b523..3c277a4d0e786eb40273b9b7a1553d7ba41bc841 100644 (file)
@@ -113,7 +113,7 @@ int xfrm_output_resume(struct sk_buff *skb, int err)
                        return dst_output(skb);
 
                err = nf_hook(x->inner_mode->afinfo->family,
-                             x->inner_mode->afinfo->nf_post_routing, skb,
+                             NF_INET_POST_ROUTING, skb,
                              NULL, skb->dst->dev, xfrm_output2);
                if (unlikely(err != 1))
                        goto out;