Some VLAN encapsulated CDP frames seem to have a checksum difficult to
verify. We give up on checking correctly CDP checksums. It is turned
into a dead code for future reference.
* Fixes:
+ Ignore interface with no queue. It should filter out interfaces
like "vnet0" that would fail if we try to send something on them.
+ + Don't check CDP checksums (not really a fix but it appears that
+ Cisco checksum have some difficult corner cases).
lldpd (0.5.0)
{
struct lldpd_chassis *chassis;
struct lldpd_port *port;
+#if 0
u_int16_t cksum;
+#endif
u_int8_t *software = NULL, *platform = NULL;
int software_len = 0, platform_len = 0, proto, version, nb, caps;
const unsigned char cdpaddr[] = CDP_MULTICAST_ADDR;
goto malformed;
}
+#if 0
/* Check checksum */
cksum = frame_checksum(pos, len_eth - 8,
#ifdef ENABLE_FDP
hardware->h_ifname, cksum);
goto malformed;
}
+#endif
/* Check version */
version = PEEK_UINT8;