xfrm: Mark flowi arg to ->init_tempsel() const.
authorDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 01:51:44 +0000 (17:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 01:51:44 +0000 (17:51 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/xfrm4_state.c
net/ipv6/xfrm6_state.c

index c77407fdfa872caae940eba2b72fb27b42c367e8..614c296c4532a8082e6bc7b417dfc9cbcc85c65c 100644 (file)
@@ -300,7 +300,8 @@ struct xfrm_state_afinfo {
        const struct xfrm_type  *type_map[IPPROTO_MAX];
        struct xfrm_mode        *mode_map[XFRM_MODE_MAX];
        int                     (*init_flags)(struct xfrm_state *x);
-       void                    (*init_tempsel)(struct xfrm_selector *sel, struct flowi *fl);
+       void                    (*init_tempsel)(struct xfrm_selector *sel,
+                                               const struct flowi *fl);
        void                    (*init_temprop)(struct xfrm_state *x, struct xfrm_tmpl *tmpl,
                                                xfrm_address_t *daddr, xfrm_address_t *saddr);
        int                     (*tmpl_sort)(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n);
index 47947624eccc58fe7fcfcdbff19fb655a07ddedc..19eb56067727668a83004b8518b5f2c75d77489a 100644 (file)
@@ -21,7 +21,7 @@ static int xfrm4_init_flags(struct xfrm_state *x)
 }
 
 static void
-__xfrm4_init_tempsel(struct xfrm_selector *sel, struct flowi *fl)
+__xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl)
 {
        sel->daddr.a4 = fl->fl4_dst;
        sel->saddr.a4 = fl->fl4_src;
index a67575d472a320f306002a88959f0d0f9a73af09..68a14c0339dbf6e5d549e57a842cc51fbee1e79e 100644 (file)
@@ -20,7 +20,7 @@
 #include <net/addrconf.h>
 
 static void
-__xfrm6_init_tempsel(struct xfrm_selector *sel, struct flowi *fl)
+__xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl)
 {
        /* Initialize temporary selector matching only
         * to current session. */