Skip to content

Commit

Permalink
Change mentions of WinPcap to Npcap in Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Aug 23, 2018
1 parent a8aa3b1 commit ff5f2b9
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Examples-pcap/UDPdump/udpdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ int main()

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down
4 changes: 2 additions & 2 deletions Examples-pcap/basic_dump/basic_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int main()

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down Expand Up @@ -96,7 +96,7 @@ int main()
errbuf // error buffer
)) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down
4 changes: 2 additions & 2 deletions Examples-pcap/basic_dump_ex/basic_dump_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main()

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand All @@ -98,7 +98,7 @@ int main()
errbuf // error buffer
)) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down
4 changes: 2 additions & 2 deletions Examples-pcap/pktdump_ex/pktdump_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int main(int argc, char **argv)
}
#endif

printf("pktdump_ex: prints the packets of the network using WinPcap.\n");
printf("pktdump_ex: prints the packets of the network using Npcap.\n");
printf(" Usage: pktdump_ex [-s source]\n\n"
" Examples:\n"
" pktdump_ex -s file.acp\n"
Expand Down Expand Up @@ -115,7 +115,7 @@ int main(int argc, char **argv)

if (i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down
4 changes: 2 additions & 2 deletions Examples-pcap/savedump/savedump.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main(int argc, char **argv)

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down Expand Up @@ -105,7 +105,7 @@ int main(int argc, char **argv)
errbuf // error buffer
)) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down
2 changes: 1 addition & 1 deletion Examples-pcap/sendpack/sendpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main(int argc, char **argv)
errbuf // error buffer
)) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", argv[1]);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", argv[1]);
return 2;
}

Expand Down
2 changes: 1 addition & 1 deletion Examples/NETMETER/netmeter.rc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ BEGIN
DEFPUSHBUTTON "OK",IDOK,92,133,50,14,WS_GROUP
LTEXT "Shows the diagram of a 10Mbit Ethernet network's load in:",
IDC_STATIC,7,58,209,11
LTEXT "This program is based on WinPcap",IDC_STATIC,7,114,111,
LTEXT "This program uses Npcap",IDC_STATIC,7,114,111,
8
LTEXT "Each interval on the horizontal axis is approximately 5 seconds",
IDC_STATIC,8,100,196,8
Expand Down
4 changes: 2 additions & 2 deletions Examples/UDPdump/udpdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct bpf_program fcode;

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down Expand Up @@ -153,7 +153,7 @@ struct bpf_program fcode;
errbuf // error buffer
) ) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down
6 changes: 3 additions & 3 deletions Examples/UserLevelBridge/UserBridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int main()

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down Expand Up @@ -201,7 +201,7 @@ int main()
errbuf // error buffer
)) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->description);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->description);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down Expand Up @@ -233,7 +233,7 @@ int main()
errbuf // error buffer
)) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->description);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->description);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down
4 changes: 2 additions & 2 deletions Examples/misc/basic_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ char errbuf[PCAP_ERRBUF_SIZE];

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down Expand Up @@ -67,7 +67,7 @@ char errbuf[PCAP_ERRBUF_SIZE];
errbuf // error buffer
) ) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down
6 changes: 3 additions & 3 deletions Examples/misc/basic_dump_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ time_t local_tv_sec;

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down Expand Up @@ -64,7 +64,7 @@ time_t local_tv_sec;
errbuf // error buffer
) ) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down Expand Up @@ -96,4 +96,4 @@ time_t local_tv_sec;
}

return 0;
}
}
4 changes: 2 additions & 2 deletions Examples/misc/savedump.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pcap_dumper_t *dumpfile;

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand Down Expand Up @@ -76,7 +76,7 @@ pcap_dumper_t *dumpfile;
errbuf // error buffer
) ) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down
2 changes: 1 addition & 1 deletion Examples/misc/sendpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int i;
errbuf // error buffer
) ) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", argv[1]);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", argv[1]);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion Examples/pktdump_ex/pktdump_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const u_char *pkt_data;
exit(1);
}

printf("pktdump_ex: prints the packets of the network using WinPcap.\n");
printf("pktdump_ex: prints the packets of the network using Npcap.\n");
printf(" Usage: pktdump_ex [-s source]\n\n"
" Examples:\n"
" pktdump_ex -s file://c:/temp/file.acp\n"
Expand Down
6 changes: 3 additions & 3 deletions Examples/smp_1/smp_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct pcap_pkthdr old;
}

printf("SMP_1\n");
printf("\nThis program tests the WinPcap kernel driver on SMP machines.\n");
printf("\nThis program tests the Npcap kernel driver on SMP machines.\n");
printf("The program tests that timestamps on the captured packets are consistent,\n");
printf("and that the caplen is equal to the packet length.\n");
printf("If there is an error, it will print out a message saying \"Inconsistent XXX\"\n");
Expand All @@ -99,7 +99,7 @@ struct pcap_pkthdr old;

if(i==0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}

Expand All @@ -120,7 +120,7 @@ struct pcap_pkthdr old;
/* Open the device */
if ( (fp= pcap_open(d->name, 65536, PCAP_OPENFLAG_PROMISCUOUS, 1000, NULL, errbuf) ) == NULL)
{
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name);
fprintf(stderr,"\nUnable to open the adapter. %s is not supported by Npcap\n", d->name);
/* Free the device list */
pcap_freealldevs(alldevs);
return -1;
Expand Down

0 comments on commit ff5f2b9

Please sign in to comment.