diff options
author | Valery Ivanov <ivalery111@gmail.com> | 2021-05-08 13:42:38 +0300 |
---|---|---|
committer | Valery Ivanov <ivalery111@gmail.com> | 2021-05-08 13:42:38 +0300 |
commit | 2b052ff08a8d20bdc77462b3b7d383d376345090 (patch) | |
tree | 606151f91ef68691fe82006826b5dd8b2e83b8c4 /include/libnet/libnet-functions.h | |
parent | 41e9ea7aaf0ff6cb40bb44ff831c49efc0b9991e (diff) | |
download | libnet-2b052ff08a8d20bdc77462b3b7d383d376345090.tar.gz |
feat(functions): add libnet_build_lldp_end function
Diffstat (limited to 'include/libnet/libnet-functions.h')
-rw-r--r-- | include/libnet/libnet-functions.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libnet/libnet-functions.h b/include/libnet/libnet-functions.h index 28ec4eb..867ab0d 100644 --- a/include/libnet/libnet-functions.h +++ b/include/libnet/libnet-functions.h @@ -774,6 +774,18 @@ libnet_ptag_t libnet_build_lldp_ttl(const uint16_t ttl, libnet_t *l, libnet_ptag_t ptag); /** + * Builds a LLDP End of LLDPDU TLV. + * The End of LLDPDU TLV used to mark the end of the TLV sequence in LLDPDU. + * Is a 2 octet all-zero TLV + * @param l pointer to a libnet context + * @param ptag protocol tag to modify an existing header, 0 to build a new one + * @return protocol tag value on success + * @retval -1 on error + */ +LIBNET_API +libnet_ptag_t libnet_build_lldp_end(libnet_t *l, libnet_ptag_t ptag); + +/** * Builds an IP version 4 RFC 792 Internet Control Message Protocol (ICMP) * echo request/reply header * @param type type of ICMP packet (should be ICMP_ECHOREPLY or ICMP_ECHO) |