From 7fb5eeddd5b25cc72048a8eda269c68ab5dacbaa Mon Sep 17 00:00:00 2001 From: huangxin Date: Tue, 7 Jun 2022 11:32:50 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E6=B8=85=E7=90=86=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/lwip/src/arch_linux/netif/rawif.c | 6 +++--- srcs/pppoe/agent_proto.c | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 srcs/pppoe/agent_proto.c diff --git a/srcs/lwip/src/arch_linux/netif/rawif.c b/srcs/lwip/src/arch_linux/netif/rawif.c index 5853c28..066f9a4 100644 --- a/srcs/lwip/src/arch_linux/netif/rawif.c +++ b/srcs/lwip/src/arch_linux/netif/rawif.c @@ -254,8 +254,8 @@ static err_t low_level_output(struct netif *netif, struct pbuf *p) { // 网卡支持vxlan if (rawif->vxlan_support && rawif->vxlan_buf.output_head) { - unsigned short checksum = 0; - int dataSize = p->tot_len - sizeof(struct eth_hdr); + unsigned short checksum; + unsigned int dataSize = p->tot_len - sizeof(struct eth_hdr); struct eth_hdr *eth = (struct eth_hdr *)buf; struct vxlan_package *pkg = (struct vxlan_package *)sndBuf; unsigned short udp_len = p->tot_len + sizeof(struct vxlan_hdr) + sizeof(struct qinq_hdr); @@ -323,7 +323,7 @@ static struct pbuf *low_level_input(struct netif *netif) { u16_t len; int addrSize; ssize_t readlen; - unsigned char bmac[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; + unsigned char bmac[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; unsigned char buf[1518] = {0}; /* max packet size including VLAN excluding CRC */ struct sockaddr from; struct rawif *rawif = (struct rawif *)netif->state; diff --git a/srcs/pppoe/agent_proto.c b/srcs/pppoe/agent_proto.c deleted file mode 100644 index 648bac6..0000000 --- a/srcs/pppoe/agent_proto.c +++ /dev/null @@ -1,3 +0,0 @@ -// -// Created by xajhuang on 2022/6/6. -//