see SAD info
Subsystems (2)
PATCH 1/1 see SAD info
Stephen,
You need to pull the latest net-2.6 include/linux/xfrm.h for this (and the earlier migrate stuff from Nakamura-san)...
cheers,
jamal
[XFRM] see SAD info
i.e instead of something like ip xfrm state ls | grep -i src | wc -l do:
ip xfrm state count
And you get the count; you can also pass -s to the command line and get the hash info.
Signed-off-by Jamal Hadi Salim <[email protected]>
---
commit 32ad83a9c67bf149e72933472f4371ecf2dbfc4f
tree 2d0964c5af081aae29419bc82459a584f872b94d
parent ab4c2f14fb93700c9aefeb02ed9918565ba332a1
author Jamal Hadi Salim <[email protected]> Wed, 02 May 2007 15:41:07 -0400 committer Jamal Hadi Salim <[email protected]> Wed, 02 May 2007 15:41:07 -0400
ip/xfrm.h | 1 + ip/xfrm_state.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 157 insertions(+), 0 deletions(-)
ip/xfrm.h +1 -0
@@ -57,6 +57,7 @@#define XFRMREP_RTA (x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_report)))) +#define XFRMSAPD_RTA (x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(__u32))))#define XFRM_FLAG_PRINT (fp, flags, f, s) \ do { \ if (flags & f) { \
ip/xfrm_state.c +76 -0
94 lines not on this page · raw message