summaryrefslogtreecommitdiff
path: root/lib/lldp/lldp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lldp/lldp.c')
-rw-r--r--lib/lldp/lldp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lldp/lldp.c b/lib/lldp/lldp.c
index 493c2ffa9..0340f676a 100644
--- a/lib/lldp/lldp.c
+++ b/lib/lldp/lldp.c
@@ -349,7 +349,7 @@ lldp_decode(struct lldpd *cfg OVS_UNUSED, char *frame, int s,
{
struct lldpd_chassis *chassis;
struct lldpd_port *port;
- const char lldpaddr[] = LLDP_MULTICAST_ADDR;
+ const struct eth_addr lldpaddr = LLDP_MULTICAST_ADDR;
const char dot1[] = LLDP_TLV_ORG_DOT1;
const char dot3[] = LLDP_TLV_ORG_DOT3;
const char med[] = LLDP_TLV_ORG_MED;
@@ -384,7 +384,7 @@ lldp_decode(struct lldpd *cfg OVS_UNUSED, char *frame, int s,
VLOG_WARN("too short frame received on %s", hardware->h_ifname);
goto malformed;
}
- if (PEEK_CMP(lldpaddr, ETH_ADDR_LEN) != 0) {
+ if (PEEK_CMP(&lldpaddr, ETH_ADDR_LEN) != 0) {
VLOG_INFO("frame not targeted at LLDP multicast address "
"received on %s", hardware->h_ifname);
goto malformed;