提交 73e5ebb2 编写于 作者: D David S. Miller

xfrm: Mark flowi arg to ->init_tempsel() const.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0c7b3eef
...@@ -300,7 +300,8 @@ struct xfrm_state_afinfo { ...@@ -300,7 +300,8 @@ struct xfrm_state_afinfo {
const struct xfrm_type *type_map[IPPROTO_MAX]; const struct xfrm_type *type_map[IPPROTO_MAX];
struct xfrm_mode *mode_map[XFRM_MODE_MAX]; struct xfrm_mode *mode_map[XFRM_MODE_MAX];
int (*init_flags)(struct xfrm_state *x); 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, void (*init_temprop)(struct xfrm_state *x, struct xfrm_tmpl *tmpl,
xfrm_address_t *daddr, xfrm_address_t *saddr); xfrm_address_t *daddr, xfrm_address_t *saddr);
int (*tmpl_sort)(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n); int (*tmpl_sort)(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n);
......
...@@ -21,7 +21,7 @@ static int xfrm4_init_flags(struct xfrm_state *x) ...@@ -21,7 +21,7 @@ static int xfrm4_init_flags(struct xfrm_state *x)
} }
static void 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->daddr.a4 = fl->fl4_dst;
sel->saddr.a4 = fl->fl4_src; sel->saddr.a4 = fl->fl4_src;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <net/addrconf.h> #include <net/addrconf.h>
static void 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 /* Initialize temporary selector matching only
* to current session. */ * to current session. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册