1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 12:19:02 +00:00

Add intf_get_index to libdnet-stripped.

This function gets an interface from an internal interface number, such
as a sockaddr_in6.sin6_scope_id.
This commit is contained in:
david
2011-08-30 17:01:50 +00:00
parent c5afa5b57b
commit 12f4742f0f
3 changed files with 49 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ typedef int (*intf_handler)(const struct intf_entry *entry, void *arg);
__BEGIN_DECLS
intf_t *intf_open(void);
int intf_get(intf_t *i, struct intf_entry *entry);
int intf_get_index(intf_t *intf, struct intf_entry *entry, int af, unsigned int index);
int intf_get_src(intf_t *i, struct intf_entry *entry, struct addr *src);
int intf_get_dst(intf_t *i, struct intf_entry *entry, struct addr *dst);
int intf_get_pcap_devname(const char *intf_name, char *pcapdev, int pcapdevlen);