X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Flldp%2Flldp.c;h=0340f676a0ee359a609cf727227b638d221bb1b0;hb=74ff3298c8806bb09d0c7e40a25b889ab7564769;hp=493c2ffa936770a3c09f57ae39787aa9ddf87d25;hpb=d8ef07e70995e56005e3bc55b86cdb7d0e2066e5;p=cascardo%2Fovs.git 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;