aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_socket_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/odp_socket_common.h')
-rw-r--r--platform/linux-generic/include/odp_socket_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_socket_common.h b/platform/linux-generic/include/odp_socket_common.h
index afce0f55d..0a9704076 100644
--- a/platform/linux-generic/include/odp_socket_common.h
+++ b/platform/linux-generic/include/odp_socket_common.h
@@ -12,6 +12,8 @@
extern "C" {
#endif
+#include <odp/api/packet_io.h>
+
#include <string.h>
#include <linux/if_ether.h>
@@ -57,6 +59,11 @@ int promisc_mode_get_fd(int fd, const char *name);
*/
int link_status_fd(int fd, const char *name);
+/**
+ * Read link information from a packet socket
+ */
+int link_info_fd(int fd, const char *name, odp_pktio_link_info_t *info);
+
#ifdef __cplusplus
}
#endif