diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-06-07 03:06:21 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-06-07 03:07:16 +0200 |
commit | 6f633aa1891f631b11ca5b23ea92c7311d0f0adf (patch) | |
tree | b729fbeb0e5fc134caa733bf643ac4794c75638b /libglouglou/utils.c | |
parent | libglouglou: missing var declaration (diff) | |
download | glouglou-6f633aa1891f631b11ca5b23ea92c7311d0f0adf.tar.xz glouglou-6f633aa1891f631b11ca5b23ea92c7311d0f0adf.zip |
libggnet: traceroute sends packets in TCP and ICMP
Diffstat (limited to 'libglouglou/utils.c')
-rw-r--r-- | libglouglou/utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libglouglou/utils.c b/libglouglou/utils.c index 2f5f710..a7ceffd 100644 --- a/libglouglou/utils.c +++ b/libglouglou/utils.c @@ -205,14 +205,12 @@ get_iface(char *ip) { struct addr dst; struct intf_entry entry; intf_t *intf; - char *iface; intf = intf_open(); addr_aton(ip, &dst); if (intf_get_dst(intf, &entry, &dst) < 0) return NULL; - iface = addr_ntoa(&entry.intf_addr); intf_close(intf); - return iface; + return strdup(entry.intf_name); } |