Add a NAT-T keepalive timer in case we are behind a NAT gateway.
authorpatrick <patrick@openbsd.org>
Thu, 13 Apr 2017 07:04:09 +0000 (07:04 +0000)
committerpatrick <patrick@openbsd.org>
Thu, 13 Apr 2017 07:04:09 +0000 (07:04 +0000)
commitd52b1ace0346c0c7572ed17322fd740cfba822b3
tree9620b95f514095869d2bdc12a2a05654d200dbdc
parent59c464a0121fef172f9c47e7d21dd4eb97b5fb30
Add a NAT-T keepalive timer in case we are behind a NAT gateway.

See RFC 5996, section 2.23, NAT Traversal:
  In the case of a mismatching NAT_DETECTION_DESTINATION_IP hash, it
  means that the system receiving the NAT_DETECTION_DESTINATION_IP
  payload is behind a NAT and that system SHOULD start sending
  keepalive packets as defined in [UDPENCAPS].

With markus@, ok reyk@
sbin/iked/config.c
sbin/iked/iked.h
sbin/iked/ikev2.c
sbin/iked/ikev2_pld.c