Skip to content

Commit 8ed0757

Browse files
committed
pcap-savefile(5): Format hex constants. [skip ci]
1 parent bf563e1 commit 8ed0757

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

pcap-savefile.manfile.in

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,30 @@ The per-file header length is 24 octets.
5555
.PP
5656
All fields in the per-file header are in the byte order of the host
5757
writing the file. Normally, the first field in the per-file header is a
58-
4-byte magic number, with the value 0xa1b2c3d4. The magic number, when
58+
4-byte magic number, with the value
59+
.BR 0xa1b2c3d4 .
60+
The magic number, when
5961
read by a host with the same byte order as the host that wrote the file,
60-
will have the value 0xa1b2c3d4, and, when read by a host with the
62+
will have the value
63+
.BR 0xa1b2c3d4 ,
64+
and, when read by a host with the
6165
opposite byte order as the host that wrote the file, will have the value
62-
0xd4c3b2a1. That allows software reading the file to determine whether
66+
.BR 0xd4c3b2a1 .
67+
That allows software reading the file to determine whether
6368
the byte order of the host that wrote the file is the same as the byte
6469
order of the host on which the file is being read, and thus whether the
6570
values in the per-file and per-packet headers need to be byte-swapped.
6671
.PP
67-
If the magic number has the value 0xa1b23c4d (with the two nibbles of
72+
If the magic number has the value
73+
.B 0xa1b23c4d
74+
(with the two nibbles of
6875
the two lower-order bytes of the magic number swapped), which would be
69-
read as 0xa1b23c4d by a host with the same byte order as the host that
70-
wrote the file and as 0x4d3cb2a1 by a host with the opposite byte order
76+
read as
77+
.B 0xa1b23c4d
78+
by a host with the same byte order as the host that
79+
wrote the file and as
80+
.B 0x4d3cb2a1
81+
by a host with the opposite byte order
7182
as the host that wrote the file, the file format is the same as for
7283
regular files, except that the time stamps for packets are given in
7384
seconds and nanoseconds rather than seconds and microseconds.

0 commit comments

Comments
 (0)