[XFRM] STATE: Allow non IPsec protocol.
It will be added two more transformation protocols (routing header and destination options header) for Mobile IPv6. xfrm_id_proto_match() can be handle zero as all, IPSEC_PROTO_ANY as all IPsec and otherwise as exact one. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5794708f11
commit
dc00a52560
@@ -542,7 +542,7 @@ static int xfrm_dump_sa(struct sk_buff *skb, struct netlink_callback *cb)
|
||||
info.nlmsg_flags = NLM_F_MULTI;
|
||||
info.this_idx = 0;
|
||||
info.start_idx = cb->args[0];
|
||||
(void) xfrm_state_walk(IPSEC_PROTO_ANY, dump_one_state, &info);
|
||||
(void) xfrm_state_walk(0, dump_one_state, &info);
|
||||
cb->args[0] = info.this_idx;
|
||||
|
||||
return skb->len;
|
||||
|
Reference in New Issue
Block a user