Skip to content

Commit

Permalink
Have a less nerdy error message for "output only isn't supported here".
Browse files Browse the repository at this point in the history
  • Loading branch information
guyharris committed Nov 8, 2019
1 parent cd71247 commit 0f2aa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcap-bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3307,7 +3307,7 @@ pcap_setdirection_bpf(pcap_t *p, pcap_direction_t d)
*/
if (d == PCAP_D_OUT) {
snprintf(p->errbuf, sizeof(p->errbuf),
"Setting direction to PCAP_D_OUT is not supported on BPF");
"Setting direction to \"outgoing only\" is not supported on this operating system");
return -1;
}

Expand Down

0 comments on commit 0f2aa02

Please sign in to comment.