diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-10 17:35:11 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-10 17:35:11 -0800 |
commit | b8da832f6c7acfecf10c67df3acb5d49676127c5 (patch) | |
tree | 8b38278037dd0053229a99c1bb152e20e52d8c62 /fad-glifc.c | |
parent | 1e51e8220c9bea84878f8f6c15fb228a5e83deab (diff) |
Don't exclude interfaces that aren't up.
On some platforms, you can capture on those interfaces, which might be
useful if you want to start a capture before the interface is up, so
that the capture starts capturing as soon as it's up.
Those interfaces will not appear in the interface list on platforms
where you can't open them for capturing, and they'll now be sorted after
the interfaces that *are* up, so there's not much harm in including
them.
Diffstat (limited to 'fad-glifc.c')
-rw-r--r-- | fad-glifc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fad-glifc.c b/fad-glifc.c index 00eccb5a..1a820ad9 100644 --- a/fad-glifc.c +++ b/fad-glifc.c @@ -203,8 +203,7 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) #endif /* - * Get the flags for this interface, and skip it if it's - * not up. + * Get the flags for this interface. */ strncpy(ifrflags.lifr_name, ifrp->lifr_name, sizeof(ifrflags.lifr_name)); @@ -219,8 +218,6 @@ pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) ret = -1; break; } - if (!(ifrflags.lifr_flags & IFF_UP)) - continue; /* * Get the netmask for this address on this interface. |