kernel_optimize_test/net/xfrm
Paul Moore 68277accb3 [XFRM]: Assorted IPsec fixups
This patch fixes a number of small but potentially troublesome things in the
XFRM/IPsec code:

 * Use the 'audit_enabled' variable already in include/linux/audit.h
   Removed the need for extern declarations local to each XFRM audit fuction

 * Convert 'sid' to 'secid' everywhere we can
   The 'sid' name is specific to SELinux, 'secid' is the common naming
   convention used by the kernel when refering to tokenized LSM labels,
   unfortunately we have to leave 'ctx_sid' in 'struct xfrm_sec_ctx' otherwise
   we risk breaking userspace

 * Convert address display to use standard NIP* macros
   Similar to what was recently done with the SPD audit code, this also also
   includes the removal of some unnecessary memcpy() calls

 * Move common code to xfrm_audit_common_stateinfo()
   Code consolidation from the "less is more" book on software development

 * Proper spacing around commas in function arguments
   Minor style tweak since I was already touching the code

Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 14:59:40 -08:00
..
Kconfig [XFRM]: Add packet processing statistics option. 2008-01-28 14:59:39 -08:00
Makefile [XFRM]: Define packet dropping statistics. 2008-01-28 14:59:38 -08:00
xfrm_algo.c cleanup asm/scatterlist.h includes 2007-11-02 08:47:06 +01:00
xfrm_hash.c [IPSEC]: kmalloc + memset conversion to kzalloc 2008-01-28 14:55:05 -08:00
xfrm_hash.h [XFRM] STATE: Use destination address for src hash. 2006-10-04 00:31:02 -07:00
xfrm_input.c [XFRM]: Support to increment packet dropping statistics. 2008-01-28 14:59:39 -08:00
xfrm_output.c [XFRM]: Support to increment packet dropping statistics. 2008-01-28 14:59:39 -08:00
xfrm_policy.c [XFRM]: Assorted IPsec fixups 2008-01-28 14:59:40 -08:00
xfrm_proc.c [XFRM]: Define packet dropping statistics. 2008-01-28 14:59:38 -08:00
xfrm_state.c [XFRM]: Assorted IPsec fixups 2008-01-28 14:59:40 -08:00
xfrm_user.c [IPSEC]: Make x->lastused an unsigned long 2008-01-28 14:53:52 -08:00