]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing: move one more network related definition to missing_network.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Dec 2018 05:27:51 +0000 (06:27 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Dec 2018 12:24:32 +0000 (13:24 +0100)
src/basic/missing.h
src/basic/missing_network.h

index 0f4605cb21fbaf8de93511ea2de6fee9336e9aab..a057d06277617a6457f1fcc6852981f839c50d0c 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/audit.h>
 #include <linux/falloc.h>
 #include <linux/oom.h>
-#include <net/ethernet.h>
 #include <stdlib.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
@@ -264,10 +263,6 @@ struct sockaddr_vm {
 #define KCMP_FILE 0
 #endif
 
-#ifndef ETHERTYPE_LLDP
-#define ETHERTYPE_LLDP 0x88cc
-#endif
-
 #ifndef SOL_ALG
 #define SOL_ALG 279
 #endif
index 2dfbe26882ed79acccc51dfd81797515f0f04759..d9c73c54a96e0f751aca1c7630141bf0346cc6ac 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/loop.h>
 #include <linux/rtnetlink.h>
+#include <net/ethernet.h>
 
 #include "missing_ethtool.h"
 #include "missing_fib_rules.h"
 #ifndef LOOPBACK_IFINDEX
 #define LOOPBACK_IFINDEX 1
 #endif
+
+/* Not exposed yet. Similar values are defined in net/ethernet.h */
+#ifndef ETHERTYPE_LLDP
+#define ETHERTYPE_LLDP 0x88cc
+#endif