linux_dsm_epyc7002/net/xfrm
Paul Moore e1af9f270b [XFRM]: Drop packets when replay counter would overflow
According to RFC4303, section 3.3.3 we need to drop outgoing packets which
cause the replay counter to overflow:

   3.3.3.  Sequence Number Generation

   The sender's counter is initialized to 0 when an SA is established.
   The sender increments the sequence number (or ESN) counter for this
   SA and inserts the low-order 32 bits of the value into the Sequence
   Number field.  Thus, the first packet sent using a given SA will
   contain a sequence number of 1.

   If anti-replay is enabled (the default), the sender checks to ensure
   that the counter has not cycled before inserting the new value in the
   Sequence Number field.  In other words, the sender MUST NOT send a
   packet on an SA if doing so would cause the sequence number to cycle.
   An attempt to transmit a packet that would result in sequence number
   overflow is an auditable event.  The audit log entry for this event
   SHOULD include the SPI value, current date/time, Source Address,
   Destination Address, and (in IPv6) the cleartext Flow ID.

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 15:00:02 -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]: RFC4303 compliant auditing 2008-01-28 15:00:01 -08:00
xfrm_output.c [XFRM]: Drop packets when replay counter would overflow 2008-01-28 15:00:02 -08:00
xfrm_policy.c [XFRM]: RFC4303 compliant auditing 2008-01-28 15:00:01 -08:00
xfrm_proc.c [XFRM]: Define packet dropping statistics. 2008-01-28 14:59:38 -08:00
xfrm_state.c [XFRM]: RFC4303 compliant auditing 2008-01-28 15:00:01 -08:00
xfrm_user.c [IPSEC]: Make x->lastused an unsigned long 2008-01-28 14:53:52 -08:00