diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-01-18 20:39:03 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-01-18 20:39:03 -0800 |
commit | ad7c6f503c0c77b35ee6bd42e68f2c657ebae5ba (patch) | |
tree | b63dc8f533b3a194fa390a03b19f19abdbaed21c /fad-gifc.c | |
parent | 5c85fdf69d14b7c95cba3c69c7964583293be6ae (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |