From: <sar...@us...> - 2012-11-16 04:52:40
|
Revision: 250 http://openhip.svn.sourceforge.net/openhip/?rev=250&view=rev Author: sarabito Date: 2012-11-16 04:52:34 +0000 (Fri, 16 Nov 2012) Log Message: ----------- In order to tolerate occassional unknown SPIs (e.g. during HIP UPDATES), add tracking for unknown SPIs in hip_esp_input. This works in conjunction with the icmp_timeout option. Unknown SPIs are kept in a list along with the time they are seen. Once icmp_timeout has elapsed, and a subsequent ESP packet with that unknown SPI is received, an icmp packet will be sent to the peer. Unknown SPIs are expired from this list after icmp_timeout * max_retries seconds has elapsed. This tracking also has the effect of rate-limiting the icmp packets to once per icmp_timeout. Note again that packets with the unknown SPI need to be received once to mark the first time received and again after icmp_timeout to actually send the icmp. Modified Paths: -------------- hip/trunk/src/include/hip/hip_types.h hip/trunk/src/usermode/hip_esp.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |