parent
b1bcff4d96
commit
7fb5eeddd5
|
@ -254,8 +254,8 @@ static err_t low_level_output(struct netif *netif, struct pbuf *p) {
|
||||||
|
|
||||||
// 网卡支持vxlan
|
// 网卡支持vxlan
|
||||||
if (rawif->vxlan_support && rawif->vxlan_buf.output_head) {
|
if (rawif->vxlan_support && rawif->vxlan_buf.output_head) {
|
||||||
unsigned short checksum = 0;
|
unsigned short checksum;
|
||||||
int dataSize = p->tot_len - sizeof(struct eth_hdr);
|
unsigned int dataSize = p->tot_len - sizeof(struct eth_hdr);
|
||||||
struct eth_hdr *eth = (struct eth_hdr *)buf;
|
struct eth_hdr *eth = (struct eth_hdr *)buf;
|
||||||
struct vxlan_package *pkg = (struct vxlan_package *)sndBuf;
|
struct vxlan_package *pkg = (struct vxlan_package *)sndBuf;
|
||||||
unsigned short udp_len = p->tot_len + sizeof(struct vxlan_hdr) + sizeof(struct qinq_hdr);
|
unsigned short udp_len = p->tot_len + sizeof(struct vxlan_hdr) + sizeof(struct qinq_hdr);
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
//
|
|
||||||
// Created by xajhuang on 2022/6/6.
|
|
||||||
//
|
|
Loading…
Reference in New Issue