]> The Tcpdump Group git mirrors - libpcap/commitdiff
get_if_flags() need to be global.
authorGuy Harris <[email protected]>
Mon, 30 Apr 2018 17:51:51 +0000 (10:51 -0700)
committerGuy Harris <[email protected]>
Mon, 30 Apr 2018 17:51:51 +0000 (10:51 -0700)
It's called from find_or_add_dev().

(It really should be passed via a function pointer.)

pcap-npf.c

index 3b9e0f4bbd30e4593aa691b937a1cc934a03a3a4..67656250e600c91e36768bb183fca9b52a45d61b 100644 (file)
@@ -1431,7 +1431,7 @@ pcap_add_if_npf(pcap_if_list_t *devlistp, char *name, bpf_u_int32 flags,
        return (res);
 }
 
        return (res);
 }
 
-static int
+int
 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
 {
        char *name_copy;
 get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
 {
        char *name_copy;