aboutsummaryrefslogtreecommitdiff
path: root/pcap_inject.3pcap
diff options
context:
space:
mode:
authorPhilip Paeps <philip@FreeBSD.org>2019-10-06 04:26:37 +0000
committerPhilip Paeps <philip@FreeBSD.org>2019-10-06 04:26:37 +0000
commit30a580a870fabfea51e4b970c488e58bd1515ce4 (patch)
treecf18fcdc7c1818418ee5fc375ca4ba2094583a41 /pcap_inject.3pcap
parentd109bf9e4b609b5a0626b433e56db4a47dc530bb (diff)
downloadsrc-30a580a870fabfea51e4b970c488e58bd1515ce4.tar.gz
src-30a580a870fabfea51e4b970c488e58bd1515ce4.zip
Import libpcap 1.9.1vendor/libpcap/1.9.1
Notes
Notes: svn path=/vendor/libpcap/dist/; revision=353141 svn path=/vendor/libpcap/1.9.1/; revision=353142; tag=vendor/libpcap/1.9.1
Diffstat (limited to 'pcap_inject.3pcap')
-rw-r--r--pcap_inject.3pcap22
1 files changed, 14 insertions, 8 deletions
diff --git a/pcap_inject.3pcap b/pcap_inject.3pcap
index ff9792d20966..92a92638849b 100644
--- a/pcap_inject.3pcap
+++ b/pcap_inject.3pcap
@@ -17,7 +17,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH PCAP_INJECT 3PCAP "3 January 2014"
+.TH PCAP_INJECT 3PCAP "25 July 2018"
.SH NAME
pcap_inject, pcap_sendpacket \- transmit a packet
.SH SYNOPSIS
@@ -42,7 +42,7 @@ is the number of bytes in the packet.
Note that, even if you successfully open the network interface, you
might not have permission to send packets on it, or it might not support
sending packets; as
-.I pcap_open_live()
+.B pcap_open_live(3PCAP)
doesn't have a flag to indicate whether to open for capturing, sending,
or capturing and sending, you cannot request an open that supports
sending and be notified at open time whether sending will be possible.
@@ -72,17 +72,23 @@ comes from OpenBSD;
comes from WinPcap. Both are provided for compatibility.)
.SH RETURN VALUE
.B pcap_inject()
-returns the number of bytes written on success and \-1 on failure.
+returns the number of bytes written on success and
+.B PCAP_ERROR
+on failure.
.PP
.B pcap_sendpacket()
-returns 0 on success and \-1 on failure.
+returns 0 on success and
+.B PCAP_ERROR
+on failure.
.PP
-If \-1 is returned,
-.B pcap_geterr()
+If
+.B PCAP_ERROR
+is returned,
+.B pcap_geterr(3PCAP)
or
-.B pcap_perror()
+.B pcap_perror(3PCAP)
may be called with
.I p
as an argument to fetch or display the error text.
.SH SEE ALSO
-pcap(3PCAP), pcap_geterr(3PCAP)
+pcap(3PCAP)