summaryrefslogtreecommitdiff
path: root/app/include
diff options
context:
space:
mode:
authorQiuwen Lu <[email protected]>2017-10-25 16:20:18 +0800
committerQiuwen Lu <[email protected]>2017-10-25 16:20:18 +0800
commit25737a54491685a4321fe0179430cc629e6602d5 (patch)
tree679203cc7591454f7c94fc5b1b7f3d9524c27953 /app/include
parent3ea066c014f5cd3a7073aa8df662b5a5ab230109 (diff)
增加免费ARP发送功能
- 原实现没有免费ARP发送功能,导致驱动重启后,网段内交换机(路由器?)找不到MAC地址对应的端口位置。现启动时先发送免费ARP,避免这一现象。
Diffstat (limited to 'app/include')
-rw-r--r--app/include/mrapp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/include/mrapp.h b/app/include/mrapp.h
index c95e3cb..c412070 100644
--- a/app/include/mrapp.h
+++ b/app/include/mrapp.h
@@ -107,6 +107,8 @@ struct mr_instance
unsigned int is_exit_when_err_raise;
/* 线程数 */
unsigned int nr_dataplane_thread;
+ /* 是否发送免费ARP */
+ unsigned int nr_gratuitous_arp_send;
/* 核心掩码 */
cpu_mask_t cpu_mask;
/* 线程初始化锁 */