]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-netmap.c
Fix building without protochain support. (GH #852)
[libpcap] / pcap-netmap.c
index 3613a756a5b81c45d20af11255a5e97448a41006..27d36e5bb6d31b678e875887a5e9941f5540090c 100644 (file)
@@ -286,7 +286,7 @@ pcap_netmap_create(const char *device, char *ebuf, int *is_ours)
        *is_ours = (!strncmp(device, "netmap:", 7) || !strncmp(device, "vale", 4));
        if (! *is_ours)
                return NULL;
-       p = pcap_create_common(ebuf, sizeof (struct pcap_netmap));
+       p = PCAP_CREATE_COMMON(ebuf, struct pcap_netmap);
        if (p == NULL)
                return (NULL);
        p->activate_op = pcap_netmap_activate;