arp: fix arp_vft callback 15/34715/1
authorMercury <mercury124185@gmail.com>
Sun, 12 Dec 2021 00:45:38 +0000 (08:45 +0800)
committerMercury <mercury124185@gmail.com>
Sun, 12 Dec 2021 00:45:38 +0000 (08:45 +0800)
arp proxy is not enabled correctly by ip4_neighbor_proxy_enable()

Type: fix
Signed-off-by: Mercury <mercury124185@gmail.com>
Change-Id: I672b5d4a9652030b5604e9d39743c39cb93a2531

src/vnet/arp/arp.c

index ced3c1c..a2292f1 100644 (file)
@@ -870,7 +870,7 @@ VNET_SW_INTERFACE_ADD_DEL_FUNCTION (vnet_arp_add_del_sw_interface);
 const static ip_neighbor_vft_t arp_vft = {
   .inv_proxy4_add = arp_proxy_add,
   .inv_proxy4_del = arp_proxy_del,
-  .inv_proxy4_enable = arp_proxy_disable,
+  .inv_proxy4_enable = arp_proxy_enable,
   .inv_proxy4_disable = arp_proxy_disable,
 };