]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldp: allow compilation with LLDPMED disabled but Dot3 enabled.
authorVincent Bernat <bernat@luffy.cx>
Mon, 2 Apr 2012 09:43:41 +0000 (11:43 +0200)
committerVincent Bernat <bernat@luffy.cx>
Mon, 2 Apr 2012 09:43:41 +0000 (11:43 +0200)
src/lldp.h

index 273cb7308f913933ad5d9c364e6dc6a032c7f80c..d798264ffc63135a28df6954f0a4af67335441f3 100644 (file)
@@ -231,11 +231,6 @@ enum {
 #define LLDPMED_POW_SOURCE_LOCAL 6
 #define LLDPMED_POW_SOURCE_BOTH 7
 
-#define LLDPMED_POW_PRIO_UNKNOWN 0
-#define LLDPMED_POW_PRIO_CRITICAL 1
-#define LLDPMED_POW_PRIO_HIGH 2
-#define LLDPMED_POW_PRIO_LOW 3
-
 #define LLDPMED_CAP_CAP 0x01
 #define LLDPMED_CAP_POLICY 0x02
 #define LLDPMED_CAP_LOCATION 0x04
@@ -245,4 +240,11 @@ enum {
 
 #endif /* ENABLE_LLDPMED */
 
+#if defined (ENABLE_LLDPMED) || defined (ENABLE_DOT3)
+#define LLDPMED_POW_PRIO_UNKNOWN 0
+#define LLDPMED_POW_PRIO_CRITICAL 1
+#define LLDPMED_POW_PRIO_HIGH 2
+#define LLDPMED_POW_PRIO_LOW 3
+#endif
+
 #endif /* _LLDP_H */