This patch add in missing src/dst port assignment in SA for udp port
if encap.
Type: fix
Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com>
Change-Id: I84219c016c5a32590aba0371c01ad8d44cbf4c5c
- DBG1 (DBG_KNL, "UDP encap!!!!!!!!!!!!!!!!!!!!");
+ DBG1 (DBG_KNL, "UDP encap");
flags |= IPSEC_API_SAD_FLAG_UDP_ENCAP;
flags |= IPSEC_API_SAD_FLAG_UDP_ENCAP;
+ mp->entry.udp_src_port = htons (natt_port);
+ mp->entry.udp_dst_port = htons (natt_port);
}
mp->entry.flags = htonl (flags);
}
mp->entry.flags = htonl (flags);