Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lldp/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,14 +413,16 @@ void rxProcessFrame(struct port *port, struct lldp_agent *agent)
continue;

err = np->ops->lldp_mod_rchange(port, agent, tlv);

if (!err)
if (err == TLV_OK){
tlv_stored = true;
break;
}
else if (err == TLV_ERR) {
frame_error++;
free_unpkd_tlv(tlv);
goto out;
}
}
}

if (!tlv_stored) {
Expand Down
2 changes: 1 addition & 1 deletion lldp_8021qaz.c
Comment thread
Hemenguelbindi marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ int ieee8021qaz_rchange(struct port *port, struct lldp_agent *agent,

l2_packet_get_remote_addr(port->l2, qaz_tlvs->remote_mac);
if (unpack_ieee8021qaz_tlvs(port, agent, tlv))
return TLV_OK;
return TLV_OK;
}

if (tlv->type == TYPE_0) {
Expand Down