]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/daemon/lldpd.h
include: nuke include directory for BSD and Linux
[thirdparty/lldpd.git] / src / daemon / lldpd.h
index ed538c260eac575c2ddb6ba30ced53e99d4f45e6..2f2bd17f3bb68cfa8a5337b0d1015f537ffac31f 100644 (file)
 #include <string.h>
 #include <sys/queue.h>
 #include <sys/types.h>
-#include <netinet/if_ether.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
+#include <net/if_arp.h>
+#include <netinet/if_ether.h>
 #include <sys/un.h>
 
 #include "lldp-tlv.h"
@@ -265,7 +267,9 @@ void         send_fd(enum priv_context, int);
                 (ether dst 00:e0:2b:00:00:00)"
 */
 
-#define ETH_P_LLDP 0x88cc
+#ifndef ETH_P_LLDP
+# define ETH_P_LLDP 0x88cc
+#endif
 #define LLDPD_FILTER_F                         \
        { 0x30, 0, 0, 0x00000000 },             \
        { 0x54, 0, 0, 0x00000001 },             \