ipsec: allow registering random ports in tests 18/34818/3
authorArthur de Kerhor <arthurdekerhor@gmail.com>
Tue, 4 Jan 2022 14:53:43 +0000 (15:53 +0100)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 5 Jan 2022 08:18:03 +0000 (08:18 +0000)
commitce04e3b038070204e4e3b5ad4f973add278e2349
treebc38acfb3d04c5695c94c3d159e804b06e515cdb
parenta121ac599aae8dd9c1344e6f835866b4b03c7d5c
ipsec: allow registering random ports in tests

We add the possibility to bind the destination UDP port of a Scapy SA
to the ESP layer in the IPsec tunnel protection tests, even if it is not
the default port for ESP (4500).

This allows to test IPSec tunnel protection with ports other than 4500
in the UDP header, without hardcoding them in the Scapy patch (ex: 4545)

Type: improvement

Change-Id: I1eea3d4660ed1b59d827250a419af6b7b41c4a72
Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
test/patches/scapy-2.4.3/ipsec.patch
test/test_ipsec_tun_if_esp.py