Merge pull request #6151 from speakinghedge/6150-LLDP-messages-containing-padding-are-dropped
accept LLDP messages containing padding
This commit is contained in:
@@ -249,10 +249,9 @@ int lldp_neighbor_parse(sd_lldp_neighbor *n) {
|
||||
log_lldp("End marker TLV not zero-sized, ignoring datagram.");
|
||||
return -EBADMSG;
|
||||
}
|
||||
if (left != 0) {
|
||||
log_lldp("Trailing garbage in datagram, ignoring datagram.");
|
||||
return -EBADMSG;
|
||||
}
|
||||
|
||||
/* Note that after processing the SD_LLDP_TYPE_END left could still be > 0
|
||||
* as the message may contain padding (see IEEE 802.1AB-2016, sec. 8.5.12) */
|
||||
|
||||
goto end_marker;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user