提交 c53b3590 编写于 作者: Y YOSHIFUJI Hideaki 提交者: David S. Miller

[IPV6] XFRM: Use ip6addr_any where applicable.

Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
上级 df8981dc
...@@ -147,14 +147,12 @@ int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, ...@@ -147,14 +147,12 @@ int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr,
{ {
struct xfrm_state *x = NULL; struct xfrm_state *x = NULL;
int wildcard = 0; int wildcard = 0;
struct in6_addr any;
xfrm_address_t *xany; xfrm_address_t *xany;
struct xfrm_state *xfrm_vec_one = NULL; struct xfrm_state *xfrm_vec_one = NULL;
int nh = 0; int nh = 0;
int i = 0; int i = 0;
ipv6_addr_set(&any, 0, 0, 0, 0); xany = (xfrm_address_t *)&in6addr_any;
xany = (xfrm_address_t *)&any;
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
xfrm_address_t *dst, *src; xfrm_address_t *dst, *src;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册