linux/net/xfrm
jamal 19f4c7133f xfrm: Flushing empty SAD generates false events
To see the effect make sure you have an empty SAD.
-On window1 "ip xfrm mon"
-on window2 issue "ip xfrm state flush"
You get prompt back in window1
and you see the flush event on window2.
With this fix, you still get prompt on window1 but no
event on window2.

I was tempted to return -ESRCH on window1 (which would
show "RTNETLINK answers: No such process") but didnt want
to change current behavior.

cheers,
jamal
commit 5f3dd4a772326166e1bcf54acc2391df00dc7ab5
Author: Jamal Hadi Salim <hadi@cyberus.ca>
Date:   Thu Feb 11 04:41:36 2010 -0500

    xfrm: Flushing empty SAD generates false events

    To see the effect make sure you have an empty SAD.
    On window1 "ip xfrm mon" and on window2 issue "ip xfrm state flush"
    You get prompt back in window1 and you see the flush event on window2.
    With this fix, you still get prompt on window1 but no event on window2.

    Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>

Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-15 21:49:50 -08:00
..
Kconfig ipsec: ipcomp - Merge IPComp implementations 2008-07-25 02:54:40 -07:00
Makefile netns xfrm: per-netns sysctls 2008-11-25 18:00:48 -08:00
xfrm_algo.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-12-01 22:13:38 -08:00
xfrm_hash.c
xfrm_hash.h Fix xfrm hash collisions by changing __xfrm4_daddr_saddr_hash to hash addresses with addition 2009-08-09 21:45:31 -07:00
xfrm_input.c net: skb->dst accessors 2009-06-03 02:51:04 -07:00
xfrm_ipcomp.c ipcomp: Remove spurious truesize increase 2009-01-11 00:04:11 -08:00
xfrm_output.c net: skb->dst accessors 2009-06-03 02:51:04 -07:00
xfrm_policy.c netns xfrm: deal with dst entries in netns 2010-01-24 22:47:53 -08:00
xfrm_proc.c net: constify MIB name tables 2010-01-23 01:21:27 -08:00
xfrm_state.c xfrm: Flushing empty SAD generates false events 2010-02-15 21:49:50 -08:00
xfrm_sysctl.c net: spread __net_init, __net_exit 2010-01-17 19:16:02 -08:00
xfrm_user.c xfrm: Flushing empty SAD generates false events 2010-02-15 21:49:50 -08:00