summaryrefslogtreecommitdiffstats
path: root/src/vnet/arp
diff options
context:
space:
mode:
authorStanislav Zaikin <zstaseg@gmail.com>2022-05-10 20:50:36 +0200
committerJohn Lo <lojultra2020@outlook.com>2022-08-30 18:37:20 +0000
commit7dc351f6895d94eaee1fd04672368cc425e14103 (patch)
tree36d860e467e9b9ea081eb36a85f654d127db57f7 /src/vnet/arp
parentc37ce790763fac7ce890a28120db3b16425b1ceb (diff)
l2: skip arp term for locally originated packets
Mark arp packet as locally originated when probing/replying and don't apply any arp-term logic against it. Type: fix Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com> Change-Id: I305ff5cac8cac456decf92f21b961aa4ce286079
Diffstat (limited to 'src/vnet/arp')
-rw-r--r--src/vnet/arp/arp_packet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/arp/arp_packet.h b/src/vnet/arp/arp_packet.h
index a860c258f75..66ab384a33e 100644
--- a/src/vnet/arp/arp_packet.h
+++ b/src/vnet/arp/arp_packet.h
@@ -68,6 +68,8 @@ arp_mk_reply (vnet_main_t * vnm,
clib_mem_unaligned (&arp0->ip4_over_ethernet[0].ip4.data_u32, u32) =
if_addr0->data_u32;
+ p0->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
+
/* Hardware must be ethernet-like. */
ASSERT (vec_len (hw_if0->hw_address) == 6);