diff --git a/config/vcpe.cfg b/config/vcpe.cfg index 5c92fcc..23dc248 100644 --- a/config/vcpe.cfg +++ b/config/vcpe.cfg @@ -100,7 +100,7 @@ application: # MAC地址黑名单 # mac_filter = ["00:01:02:03:04:07", "00:01:02:03:04:01"]; # 数据包过滤器 - net_filter = "udp and dst port 67"; + net_filter = "vlan and udp and dst port 67"; # IP地址池配置 range_set: ( { dhcp_range = "192.168.101.2-192.168.101.4"; diff --git a/srcs/libs/include/network/vlan.h b/srcs/libs/include/network/vlan.h index e47b869..4d591b7 100644 --- a/srcs/libs/include/network/vlan.h +++ b/srcs/libs/include/network/vlan.h @@ -13,7 +13,7 @@ extern "C" { #include #include "common.h" -#define VLAN_SUPPORT (0) +#define VLAN_SUPPORT (1) #pragma pack(push) #pragma pack(1)