]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-tc.c
pcap_create_interface() needs the interface name on Linux.
[libpcap] / pcap-tc.c
index 60e67ca325873130b4f54198f29acffd1ff9c8cb..768dbd7c5f810ad0b465349fcb57dd706e4d13e8 100644 (file)
--- a/pcap-tc.c
+++ b/pcap-tc.c
@@ -758,7 +758,7 @@ TcCreate(const char *device, char *ebuf, int *is_ours)
        /* OK, it's probably ours. */
        *is_ours = 1;
 
-       p = pcap_create_common(device, ebuf, sizeof (struct pcap_tc));
+       p = pcap_create_common(ebuf, sizeof (struct pcap_tc));
        if (p == NULL)
                return NULL;