POKE_BYTES(platform, strlen(platform)) &&
POKE_END_CDP_TLV))
goto toobig;
- POKE_SAVE(end);
+ (void)POKE_SAVE(end);
/* Compute len and checksum */
POKE_RESTORE(pos_len_eh);
}
tlv_type = PEEK_UINT16;
tlv_len = PEEK_UINT16 - 4;
- PEEK_SAVE(tlv);
+ (void)PEEK_SAVE(tlv);
if ((tlv_len < 0) || (length < tlv_len)) {
log_warnx("cdp", "incorrect size in CDP/FDP TLV header for frame "
"received on %s",
CHECK_TLV_SIZE(4, "Address");
addresses_len = tlv_len - 4;
for (nb = PEEK_UINT32; nb > 0; nb--) {
- PEEK_SAVE(pos_address);
+ (void)PEEK_SAVE(pos_address);
/* We first try to get the real length of the packet */
if (addresses_len < 2) {
log_warn("cdp", "too short address subframe "
goto malformed;
}
PEEK_DISCARD(address_len);
- PEEK_SAVE(pos_next_address);
+ (void)PEEK_SAVE(pos_next_address);
/* Next, we go back and try to extract
IPv4 address */
PEEK_RESTORE(pos_address);
break;
case CDP_TLV_SOFTWARE:
software_len = tlv_len;
- PEEK_SAVE(software);
+ (void)PEEK_SAVE(software);
break;
case CDP_TLV_PLATFORM:
platform_len = tlv_len;
- PEEK_SAVE(platform);
+ (void)PEEK_SAVE(platform);
break;
#ifdef ENABLE_DOT1
case CDP_TLV_NATIVEVLAN:
goto malformed;
}
- PEEK_SAVE(pos_edp); /* Save the start of EDP packet */
+ (void)PEEK_SAVE(pos_edp); /* Save the start of EDP packet */
if (PEEK_UINT8 != 1) {
log_warnx("edp", "incorrect EDP version for frame received on %s",
hardware->h_ifname);
}
tlv_type = PEEK_UINT8;
tlv_len = PEEK_UINT16 - 4;
- PEEK_SAVE(tlv);
+ (void)PEEK_SAVE(tlv);
if ((tlv_len < 0) || (tlv_len > length)) {
log_debug("edp", "incorrect size in EDP TLV header for frame "
"received on %s",
tlv_size = PEEK_UINT16;
tlv_type = tlv_size >> 9;
tlv_size = tlv_size & 0x1ff;
- PEEK_SAVE(tlv);
+ (void)PEEK_SAVE(tlv);
if (length < tlv_size) {
log_warnx("lldp", "frame too short for tlv received on %s",
hardware->h_ifname);
}
POKE_RESTORE(pos_pid); /* Modify LLC PID */
- POKE_UINT16(LLC_PID_SONMP_FLATNET);
+ (void)POKE_UINT16(LLC_PID_SONMP_FLATNET);
POKE_RESTORE(packet); /* Go to the beginning */
PEEK_DISCARD(ETH_ALEN - 1); /* Modify the last byte of the MAC address */
- POKE_UINT8(1);
+ (void)POKE_UINT8(1);
if (hardware->h_ops->send(global, hardware,
(char *)packet, end - packet) == -1) {