Set RX sw_if_index on decrypted routed IPsec buffers 31/8431/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 14 Sep 2017 14:05:35 +0000 (09:05 -0500)
committerChris Luke <chris_luke@comcast.com>
Tue, 19 Sep 2017 15:31:08 +0000 (15:31 +0000)
commit02e14b526dc6f30c534e483c8e4a77678e27352e
treec1d8f4d982cda44f165507305dd098ff0b4f0c42
parent44f81310813f8f4a69e96b811b648dc4f49e3b03
Set RX sw_if_index on decrypted routed IPsec buffers

For routed IPsec, set the RX sw_if_index on inbound packets
to the index of the IPsec interface. When a packet is
decrypted into a new buffer, bring along the RX sw_if_index
of the encrypted packet to the new buffer.

Change-Id: I093e9d37def2082c8d2f1deb96b1c5b97126e023
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/ipsec/esp_decrypt.c
src/vnet/ipsec/ipsec_if_in.c