diff --git a/lib/lldp/lldpd.h b/lib/lldp/lldpd.h index ae167fbcc48..00224679cc1 100644 --- a/lib/lldp/lldpd.h +++ b/lib/lldp/lldpd.h @@ -38,7 +38,7 @@ #define LLDPD_TX_INTERVAL 5 #define LLDPD_TX_HOLD 4 -#define LLDPD_TTL LLDPD_TX_INTERVAL * LLDPD_TX_HOLD +#define LLDPD_TTL (LLDPD_TX_INTERVAL * LLDPD_TX_HOLD) #define PROTO_SEND_SIG struct lldpd *, struct lldpd_hardware *,struct dp_packet * #define PROTO_DECODE_SIG struct lldpd *, char *, int, struct lldpd_hardware *,\ diff --git a/lib/ovs-lldp.h b/lib/ovs-lldp.h index 0c8c501f047..825096ba3fb 100644 --- a/lib/ovs-lldp.h +++ b/lib/ovs-lldp.h @@ -28,7 +28,7 @@ #include "timer.h" /* Transmit every LLDPD_TX_INTERVAL seconds. */ -#define LLDP_DEFAULT_TRANSMIT_INTERVAL_MS LLDPD_TX_INTERVAL * 1000 +#define LLDP_DEFAULT_TRANSMIT_INTERVAL_MS (LLDPD_TX_INTERVAL * 1000) struct flow; struct netdev;