Fix crash when SNAT support is built and traffic is in-band.
authorJustin Pettit <jpettit@nicira.com>
Wed, 22 Oct 2008 00:16:28 +0000 (17:16 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 22 Oct 2008 00:16:46 +0000 (17:16 -0700)
commit2f58a5d0031edb0cc90454ccb0883d61120e63a8
treea2717244e0371862c7664583a0c5cd4fc744cec4
parent6a8600f5db7c7c93a23e4b72c5a86064f30410b6
Fix crash when SNAT support is built and traffic is in-band.

In order to make netfilter happy, we have to create a fake routing table
entry.  Unfortunately, the kernel really doesn't like this when it actually
needs to make use of it.  This code now removes the link between the packet
and the fake routing entry when the packet is being sent to a local port.
datapath/datapath.c
datapath/nx_act_snat.c
datapath/nx_act_snat.h