diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-04-30 12:17:05 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-04-30 12:17:05 -0700 |
commit | 09e1fab80ae086004f86db67d751dcc803c04cea (patch) | |
tree | 69c3324b2022fe26b8c6138895cc6aaed993cc27 /pcap-linux.c | |
parent | f365114e859b1204620b5e2503325b2842e07370 (diff) |
find_or_add_if() needs to be passed get_if_flags() as well.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 6dcd9782..8a18d72e 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -336,6 +336,7 @@ struct pcap_linux { /* * Prototypes for internal functions and methods. */ +static int get_if_flags(const char *, bpf_u_int32 *, char *); static int is_wifi(int, const char *); static void map_arphrd_to_dlt(pcap_t *, int, int, const char *, int); #ifdef HAVE_PF_PACKET_SOCKETS @@ -2364,7 +2365,7 @@ add_linux_if(pcap_if_list_t *devlistp, const char *ifname, int fd, char *errbuf) * not already in the list. */ if (find_or_add_if(devlistp, name, ifrflags.ifr_flags, - errbuf) == NULL) { + get_if_flags, errbuf) == NULL) { /* * Failure. */ |