summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author陆秋文 <[email protected]>2023-02-17 10:40:50 +0000
committer陆秋文 <[email protected]>2023-02-17 10:40:50 +0000
commit973807f41582137b1cda8649cf46108cc3000ce9 (patch)
tree529ac355a3e90c58924c0eb080d9adfb5c525751 /include
parent0a7c43e32f43cef36cea93dee4c3d5dc5873c58b (diff)
TSG-13385 增加service, app侧kernel representor的实现以实现向内核协议栈注入控制报文的功能。
Diffstat (limited to 'include')
-rw-r--r--include/internal/vdev_define.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/internal/vdev_define.h b/include/internal/vdev_define.h
index e85d30e..6579ef6 100644
--- a/include/internal/vdev_define.h
+++ b/include/internal/vdev_define.h
@@ -80,6 +80,17 @@ struct vdev
/* 网卡状态 */
uint8_t link_status;
+
+ /* representor config */
+ struct
+ {
+ unsigned int enable;
+ unsigned int redirect_local_arp;
+ unsigned int redirect_local_rarp;
+ unsigned int redirect_local_lldp;
+ unsigned int redirect_local_ipv4;
+ unsigned int redirect_local_ipv6;
+ } representor_config;
};
/* 虚拟设备句柄,应用使用 */