net: lldp: Move optional End TLV to send function

In a case we have optional TLVs we need to send End TLV in the very
end.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2018-08-27 12:31:29 +03:00 committed by Anas Nashif
commit a9090c9538
2 changed files with 11 additions and 5 deletions

View file

@ -141,11 +141,6 @@ struct net_lldpdu {
struct net_lldp_chassis_tlv chassis_id; /* Mandatory TLV */
struct net_lldp_port_tlv port_id; /* Mandatory TLV */
struct net_lldp_time_to_live_tlv ttl; /* Mandatory TLV */
#if defined(CONFIG_NET_LLDP_END_LLDPDU_TLV_ENABLED)
/** Optional End of LLDPDU TLV. Must be set to 0x0000 always. */
const uint16_t end_lldpdu_tlv;
#endif /* CONFIG_NET_LLDP_END_LLDPDU_TLV_ENABLED */
} __packed;
/**