aboutsummaryrefslogtreecommitdiff
path: root/sf-pcap.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2022-08-27 18:45:15 -0700
committerGuy Harris <gharris@sonic.net>2022-08-27 19:05:44 -0700
commit30e32f0a0d984e4f328d967e33c8f55206590adb (patch)
tree0d73121760566e40541db4d8eb97c2f5e3ff601b /sf-pcap.c
parent29faf77d5f98fa19e224d8fb7d6303c2aa18476e (diff)
Give a more detailed explanation of the use of 0xa1b2c3d4 by rpcap. [skip ci]
0xa1b2c3d4 is used in the rpcap protocol - and, yes, I chose it because it was already being used as a byte-order indication - but it doesn't indicate any time between microsecond-time-resolution pcap format and rpcap; any future changes to rpcap to support higher-resolution time stamps, or pcapng-like capabilities, won't involve a change to the byte-order indication value.
Diffstat (limited to 'sf-pcap.c')
-rw-r--r--sf-pcap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sf-pcap.c b/sf-pcap.c
index f1e45a90..a8509962 100644
--- a/sf-pcap.c
+++ b/sf-pcap.c
@@ -71,7 +71,10 @@
/*
* Standard libpcap format.
- * rpcapd can too use this number in its network protocol to tell endianness.
+ *
+ * The same value is used in the rpcap protocol as an indication of
+ * the server byte order, to let the client know whether it needs to
+ * byte-swap some host-byte-order metadata.
*/
#define TCPDUMP_MAGIC 0xa1b2c3d4