]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-netfilter-linux.c
CI: Call print_so_deps() on rpcapd in remote enabled build
[libpcap] / pcap-netfilter-linux.c
index cd3ca5f834ed88901ff0417e669e06b34128e032..90296be71b781dc9a3be4dcf31b9876275a5a960 100644 (file)
@@ -729,9 +729,7 @@ netfilter_create(const char *device, char *ebuf, int *is_ours)
        pcap_t *p;
 
        /* Does this look like an netfilter device? */
-       cp = strrchr(device, '/');
-       if (cp == NULL)
-               cp = device;
+       cp = device;
 
        /* Does it begin with NFLOG_IFACE or NFQUEUE_IFACE? */
        if (strncmp(cp, NFLOG_IFACE, sizeof NFLOG_IFACE - 1) == 0)