aboutsummaryrefslogtreecommitdiff
path: root/fad-gifc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-01-18 20:39:03 -0800
committerGuy Harris <guy@alum.mit.edu>2017-01-18 20:39:03 -0800
commitad7c6f503c0c77b35ee6bd42e68f2c657ebae5ba (patch)
treeb63dc8f533b3a194fa390a03b19f19abdbaed21c /fad-gifc.c
parent5c85fdf69d14b7c95cba3c69c7964583293be6ae (diff)
Pass IFF_ flags to add_addr_to_iflist().
It's only used on UN*Xes, so it's only used on systems that have IFF_ flags; have add_addr_to_iflist() do the mapping to PCAP_IF_ flags. That restores the workaround for systems lacking IFF_LOOPBACK and the "don't even try" for systems lacking IFF_UP or IFF_RUNNING.
Diffstat (limited to 'fad-gifc.c')
-rw-r--r--fad-gifc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fad-gifc.c b/fad-gifc.c
index d431ba16..4079fc2f 100644
--- a/fad-gifc.c
+++ b/fad-gifc.c
@@ -401,7 +401,7 @@ pcap_findalldevs_interfaces(pcap_if_list_t *devlistp, char *errbuf,
* Add information for this address to the list.
*/
if (add_addr_to_iflist(devlistp, ifrp->ifr_name,
- if_flags_to_pcap_flags(ifrp->ifr_name, ifrflags.ifr_flags),
+ ifrflags.ifr_flags,
&ifrp->ifr_addr, SA_LEN(&ifrp->ifr_addr),
netmask, netmask_size, broadaddr, broadaddr_size,
dstaddr, dstaddr_size, errbuf) < 0) {