Skip to content

Commit

Permalink
pcap: mark the microseconds/nanoseconds field as unsigned.
Browse files Browse the repository at this point in the history
If you're tempted to stuff a negative number in there, srsly, don't do
that.
  • Loading branch information
guyharris committed Mar 1, 2024
1 parent 89cfeb0 commit 9c1016a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions draft-ietf-opsawg-pcap.md
Expand Up @@ -230,8 +230,9 @@ Timestamp (Seconds) and Timestamp (Microseconds or nanoseconds):
: seconds and fraction of a seconds values of a timestamp.
: The seconds value is a 32-bit unsigned integer that represents the
number of seconds that have elapsed since 1970-01-01 00:00:00 UTC, and
the microseconds or nanoseconds value represents the number of
microseconds or nanoseconds that have elapsed since that seconds.
the microseconds or nanoseconds value is a 32-bit unsigned value that
represents the number of microseconds or nanoseconds that have elapsed
since that seconds.
: The Magic Number field in the File Header of a file indicates
whether the values of the Timestamp (Microseconds or nanoseconds) fields
of packets in that file are in units of microseconds or nanoseconds.
Expand Down

0 comments on commit 9c1016a

Please sign in to comment.