summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2023-03-05 11:33:57 +0000
committerDenis Ovsienko <denis@ovsienko.info>2023-03-05 11:33:57 +0000
commit6598b08835011ac4df3af9b390d7f6a5424395ba (patch)
tree02afbb3e1b77d93f9190678a8dbdccc1820f4100
parent364655a0c7bfb800056cb0c97d23fd60344c1646 (diff)
downloadlibpcap-6598b08835011ac4df3af9b390d7f6a5424395ba.tar.gz
man: Address more C types formatting issues. [skip ci]
-rw-r--r--pcap.3pcap.in24
-rw-r--r--pcap_create.3pcap2
-rw-r--r--pcap_lookupnet.3pcap2
-rw-r--r--pcap_open_live.3pcap2
-rw-r--r--pcap_open_offline.3pcap.in2
5 files changed, 16 insertions, 16 deletions
diff --git a/pcap.3pcap.in b/pcap.3pcap.in
index e98932d8..6336c3a8 100644
--- a/pcap.3pcap.in
+++ b/pcap.3pcap.in
@@ -598,35 +598,35 @@ The callback for
and
.BR pcap_loop ()
is supplied a pointer to a
-.IR "struct pcap_pkthdr" ,
+.BR "struct pcap_pkthdr" ,
which includes the following members:
.RS
.TP
.B ts
a
-.I struct timeval
+.B struct timeval
containing the time when the packet was captured
.TP
.B caplen
a
-.I bpf_u_int32
+.B bpf_u_int32
giving the number of bytes of the packet that are available from the
capture
.TP
.B len
a
-.I bpf_u_int32
+.B bpf_u_int32
giving the length of the packet, in bytes (which might be more than the
number of bytes available from the capture, if the length of the packet
is larger than the maximum number of bytes to capture).
.RE
.PP
The callback is also supplied a
-.I const u_char
+.B const u_char
pointer to the first
.B caplen
(as given in the
-.I struct pcap_pkthdr
+.B struct pcap_pkthdr
mentioned above)
bytes of data from the packet. This won't necessarily be the entire
packet; to capture the entire packet, you will have to provide a value
@@ -641,10 +641,10 @@ performed will limit the amount of packet data available.
.PP
.BR pcap_next ()
is passed an argument that points to a
-.I struct pcap_pkthdr
+.B struct pcap_pkthdr
structure, and fills it in with the time stamp and length values for the
packet. It returns a
-.I const u_char
+.B const u_char *
to the first
.B caplen
bytes of the packet on success, and
@@ -653,11 +653,11 @@ on error.
.PP
.BR pcap_next_ex ()
is passed two pointer arguments, one of which points to a
-.IR struct pcap_pkthdr *
-and one of which points to a
-.IR "const u_char" *.
+.B struct pcap_pkthdr *
+and the other points to a
+.BR "const u_char *" .
It sets the first pointer to point to a
-.I struct pcap_pkthdr
+.B struct pcap_pkthdr
structure with the time stamp and length values for the packet, and sets
the second pointer to point to the first
.B caplen
diff --git a/pcap_create.3pcap b/pcap_create.3pcap
index bd42d733..515529f3 100644
--- a/pcap_create.3pcap
+++ b/pcap_create.3pcap
@@ -55,7 +55,7 @@ on the handle before activating it.
.SH RETURN VALUE
.BR pcap_create ()
returns a
-.I pcap_t *
+.B pcap_t *
on success and
.B NULL
on failure.
diff --git a/pcap_lookupnet.3pcap b/pcap_lookupnet.3pcap
index c12fa55e..595c8827 100644
--- a/pcap_lookupnet.3pcap
+++ b/pcap_lookupnet.3pcap
@@ -47,7 +47,7 @@ Both
and
.I maskp
are
-.I bpf_u_int32
+.B bpf_u_int32
pointers.
.SH RETURN VALUE
.BR pcap_lookupnet ()
diff --git a/pcap_open_live.3pcap b/pcap_open_live.3pcap
index b8c17299..44a7172c 100644
--- a/pcap_open_live.3pcap
+++ b/pcap_open_live.3pcap
@@ -66,7 +66,7 @@ for an explanation of the packet buffer timeout.)
.SH RETURN VALUE
.BR pcap_open_live ()
returns a
-.I pcap_t *
+.B pcap_t *
on success and
.B NULL
on failure.
diff --git a/pcap_open_offline.3pcap.in b/pcap_open_offline.3pcap.in
index e48bf25e..7e010324 100644
--- a/pcap_open_offline.3pcap.in
+++ b/pcap_open_offline.3pcap.in
@@ -93,7 +93,7 @@ Note that on Windows, that stream should be opened in binary mode.
and
.BR pcap_fopen_offline_with_tstamp_precision ()
return a
-.I pcap_t *
+.B pcap_t *
on success and
.B NULL
on failure.