summaryrefslogtreecommitdiff
path: root/app/include/mrapp.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/include/mrapp.h')
-rw-r--r--app/include/mrapp.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/include/mrapp.h b/app/include/mrapp.h
index f070761..c95e3cb 100644
--- a/app/include/mrapp.h
+++ b/app/include/mrapp.h
@@ -55,6 +55,19 @@ struct mr_thread_info
cpu_id_t cpu_id;
};
+/* 静态邻居表项 */
+struct mr_static_neigh_entry
+{
+ TAILQ_ENTRY(mr_static_entry) next;
+ struct in_addr in_addr;
+ struct ether_addr ether_addr;
+ char devsym[MR_SYMBOL_MAX];
+ char str_in_addr[MR_SYMBOL_MAX];
+ char str_ether_addr[MR_SYMBOL_MAX];
+};
+
+TAILQ_HEAD(mr_static_neigh_list, mr_static_neigh_entry);
+
struct mr_instance
{
/* ==== 运行句柄 ==== */
@@ -83,6 +96,8 @@ struct mr_instance
struct neighbour_manager * neigh;
/* 负载均衡器 */
struct distributer * dist_object;
+ /* 静态邻居表 */
+ struct mr_static_neigh_list static_neigh_list;
/* 统计 */
struct mrapp_stat stat[MR_SID_MAX];