fix compile fail by gcc5

This commit is contained in:
fengzero
2023-03-07 07:58:20 +00:00
parent 2eab709cbf
commit f9f7a532c0
+4 -1
View File
@@ -25,7 +25,6 @@
#include <unistd.h>
#include <arpa/inet.h>
#include <linux/if_ether.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <netpacket/packet.h>
@@ -36,6 +35,10 @@
#include "utils/log.h"
#include "utils/utextend.h"
#ifndef ETH_P_LLDP
#define ETH_P_LLDP 0x88CC
#endif
typedef struct neu_conn_eth_sub {
uint16_t protocol;
char mac[ETH_ALEN];