dect
/
libpcap
Archived
13
0
Fork 0

Update to the new style, wherein each capture type has its own

pcap_create() routine, and pcap_activate() calls through the activate_op
pointer in a pcap_t.
This commit is contained in:
Guy Harris 2009-02-14 14:13:52 -08:00
parent 0359240b1c
commit 4380c64a7d
1 changed files with 2 additions and 2 deletions

View File

@ -40,9 +40,9 @@ static const char rcsid[] _U_ =
static char nosup[] = "live packet capture not supported on this system";
pcap_t *
pcap_activate(pcap_t *p)
pcap_create(const char *device, char *ebuf)
{
(void)strlcpy(p->errbuf, nosup, PCAP_ERRBUF_SIZE);
(void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
return (NULL);
}