diff options
author | Gilles Espinasse <g.esp@free.fr> | 2013-03-30 11:34:03 +0100 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2013-04-09 15:14:45 -0700 |
commit | 1ee5e667835ed63ab021153162b6a045844cd317 (patch) | |
tree | 1b16095f8826074cff5e310510b8e3c0ec78f575 | |
parent | 6156c97ad50d41fd6a80675d5f746eada592e101 (diff) | |
download | libnet-1ee5e667835ed63ab021153162b6a045844cd317.tar.gz |
libnet: use LIBNET_*RESOLVE const in libnet_name2addr*
and fix tab vs space issue in that changed line
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
-rw-r--r-- | libnet/sample/icmp6_echoreq.c | 2 | ||||
-rw-r--r-- | libnet/sample/icmp6_unreach.c | 2 | ||||
-rw-r--r-- | libnet/sample/synflood.c | 2 | ||||
-rw-r--r-- | libnet/sample/synflood6_frag.c | 2 | ||||
-rw-r--r-- | libnet/src/libnet_if_addr.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/libnet/sample/icmp6_echoreq.c b/libnet/sample/icmp6_echoreq.c index 020a621..509b079 100644 --- a/libnet/sample/icmp6_echoreq.c +++ b/libnet/sample/icmp6_echoreq.c @@ -85,7 +85,7 @@ main(int argc, char **argv) } *cp++ = 0; dst_prt = (u_short)atoi(cp); - dst_ip = libnet_name2addr6(l, optarg, 1); + dst_ip = libnet_name2addr6(l, optarg, LIBNET_RESOLVE); if (strncmp((char*)&dst_ip,(char*)&in6addr_error,sizeof(in6addr_error))==0) { fprintf(stderr, "Bad IP6 address: %s\n", optarg); diff --git a/libnet/sample/icmp6_unreach.c b/libnet/sample/icmp6_unreach.c index aff6064..96f9883 100644 --- a/libnet/sample/icmp6_unreach.c +++ b/libnet/sample/icmp6_unreach.c @@ -85,7 +85,7 @@ main(int argc, char **argv) } *cp++ = 0; dst_prt = (u_short)atoi(cp); - dst_ip = libnet_name2addr6(l, optarg, 1); + dst_ip = libnet_name2addr6(l, optarg, LIBNET_RESOLVE); if (strncmp((char*)&dst_ip,(char*)&in6addr_error,sizeof(in6addr_error))==0) { fprintf(stderr, "Bad IP6 address: %s\n", optarg); diff --git a/libnet/sample/synflood.c b/libnet/sample/synflood.c index a785a80..96c07fc 100644 --- a/libnet/sample/synflood.c +++ b/libnet/sample/synflood.c @@ -92,7 +92,7 @@ main(int argc, char **argv) } *cp++ = 0; dst_prt = (u_short)atoi(cp); - if ((dst_ip = libnet_name2addr4(l, optarg, 1)) == -1) + if ((dst_ip = libnet_name2addr4(l, optarg, LIBNET_RESOLVE)) == -1) { fprintf(stderr, "Bad IP address: %s\n", optarg); exit(EXIT_FAILURE); diff --git a/libnet/sample/synflood6_frag.c b/libnet/sample/synflood6_frag.c index 0be38ab..3a09c9d 100644 --- a/libnet/sample/synflood6_frag.c +++ b/libnet/sample/synflood6_frag.c @@ -88,7 +88,7 @@ main(int argc, char **argv) } *cp++ = 0; dst_prt = (u_short)atoi(cp); - dst_ip = libnet_name2addr6(l, optarg, 1); + dst_ip = libnet_name2addr6(l, optarg, LIBNET_RESOLVE); if (strncmp((char*)&dst_ip, (char*)&in6addr_error,sizeof(in6addr_error))==0) { diff --git a/libnet/src/libnet_if_addr.c b/libnet/src/libnet_if_addr.c index ecaa1b6..54b69fd 100644 --- a/libnet/src/libnet_if_addr.c +++ b/libnet/src/libnet_if_addr.c @@ -390,7 +390,7 @@ libnet_select_device(libnet_t *l) al = address_list; if (l->device) { - addr = libnet_name2addr4(l, l->device, 0); + addr = libnet_name2addr4(l, l->device, LIBNET_DONT_RESOLVE); for (i = c; i; --i, ++address_list) { |