summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorAntony Antony <antony.antony@secunet.com>2026-05-26 22:07:01 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2026-06-04 13:22:36 +0300
commit364e165e0b63e8142e76de83e96ae8e36c3b955a (patch)
tree535725712c2f5970dcf650d34f1fe0337581eb28 /tools/lib/python/kdoc/parse_data_structs.py
parentb8addb8884f2dc1b13cf3e4fa0265ecd0bc58b69 (diff)
downloadlinux-364e165e0b63e8142e76de83e96ae8e36c3b955a.tar.xz
xfrm: fix NAT-related field inheritance in SA migration
During SA migration via xfrm_state_clone_and_setup(), nat_keepalive_interval was silently dropped and never copied to the new SA. mapping_maxage was unconditionally copied even when migrating to a non-encapsulated SA. Both fields are only meaningful when UDP encapsulation (NAT-T) is in use. Move mapping_maxage and add nat_keepalive_interval inside the existing if (encap) block, so both are inherited when migrating with encapsulation and correctly absent when migrating without it. Fixes: f531d13bdfe3 ("xfrm: support sending NAT keepalives in ESP in UDP states") Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Antony Antony <antony.antony@secunet.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions