Skip to content

Commit

Permalink
Update to the new style, wherein each capture type has its own
Browse files Browse the repository at this point in the history
pcap_create() routine, and pcap_activate() calls through the activate_op
pointer in a pcap_t.
  • Loading branch information
Guy Harris committed Feb 14, 2009
1 parent 0359240 commit 4380c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcap-null.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4380c64

Please sign in to comment.