summaryrefslogtreecommitdiff
path: root/include/libnet
diff options
context:
space:
mode:
authorValery Ivanov <ivalery111@gmail.com>2021-05-08 13:55:34 +0300
committerValery Ivanov <ivalery111@gmail.com>2021-05-08 13:55:34 +0300
commit99902ca28e4c04697414451187298be3f70debb5 (patch)
tree2d8e375070e49c22075957bdae188640954bbbc7 /include/libnet
parent1aab3f56d237076f8cf515c6809847f30e09ec67 (diff)
downloadlibnet-99902ca28e4c04697414451187298be3f70debb5.tar.gz
feat(functions): add libnet_build_lldp_org_spec function
Diffstat (limited to 'include/libnet')
-rw-r--r--include/libnet/libnet-functions.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libnet/libnet-functions.h b/include/libnet/libnet-functions.h
index 867ab0d..8381ce2 100644
--- a/include/libnet/libnet-functions.h
+++ b/include/libnet/libnet-functions.h
@@ -786,6 +786,19 @@ LIBNET_API
libnet_ptag_t libnet_build_lldp_end(libnet_t *l, libnet_ptag_t ptag);
/**
+ * Builds a LLDP Organization Specific TLV.
+ * @param value the TLV information string
+ * @param value_s length of value argument
+ * @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_org_spec(const uint8_t *const value,
+const uint16_t value_s, 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)