OCT 1. 修正 DHCP 测试工具发送不带VLAN数据包异常问题

This commit is contained in:
黄昕 2023-05-17 11:28:52 +08:00
parent 0ee31cdd61
commit b618761330
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ static void create_dhcp_tree_mode(U8 *pkg, U32 nBytes, GtkWidget *treeView) {
switch (get_package_vlan_type(pkg)) {
default:
pIp = (struct iphdr *)(pkg + IP_HDR_OFFSET);
pUdp = (struct udphdr *)(UDP_HDR_OFFSET);
pUdp = (struct udphdr *)(pkg + UDP_HDR_OFFSET);
pDhcp = (PDHCP_PROTO)((U8 *)pkg + DHCP_OFFSET);
break;
case VLAN_LEVEL1: