diff options
author | Alexander Chernavin <achernavin@netgate.com> | 2019-11-22 10:10:45 -0500 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-11-27 10:57:30 +0000 |
commit | d3b8c861a44e70c197ab721fa3ce7f38bbeab7fd (patch) | |
tree | cc74274181cd192bbb7589572cdaa2aa99892b2c /src/plugins/dhcp | |
parent | 9fb6d40eb3d4a2da8f45187de773498b784596e6 (diff) |
nat: fix dhcp client on outside interface with output feature
When a DHCP client is configured on a NAT outside interface with
output feature enabled, DHCP packets will reach the NAT in2out-output
node and will be dropped with "out of ports" reason.
With this commit, allow locally originated DHCP packets to be sent
from a NAT outside interface with output feature enabled.
Type: fix
Change-Id: I47d76b22587f2bf0c7b0b9dfda41c89f8f61d0b4
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Diffstat (limited to 'src/plugins/dhcp')
-rw-r--r-- | src/plugins/dhcp/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dhcp/client.c b/src/plugins/dhcp/client.c index 105c744a147..f6205b6b0a0 100644 --- a/src/plugins/dhcp/client.c +++ b/src/plugins/dhcp/client.c @@ -516,6 +516,7 @@ send_dhcp_pkt (dhcp_client_main_t * dcm, dhcp_client_t * c, ASSERT (b->current_data == 0); vnet_buffer (b)->sw_if_index[VLIB_RX] = c->sw_if_index; + b->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED; if (ADJ_INDEX_INVALID == c->ai_ucast) is_broadcast = 1; |