Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add if_tsoffset_ns option to IDB #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions draft-ietf-opsawg-pcapng.md
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,7 @@ the following options are valid within this block:
| if_txspeed | 16 | 8 | no |
| if_rxspeed | 17 | 8 | no |
| if_iana_tzname | 18 | variable | no |
| if_tsoffset_ns | 19 | 4 | no |
{: #optionsifb title='Interface Description Block Options'}


Expand Down Expand Up @@ -1150,9 +1151,11 @@ if_tsoffset:
: The
if_tsoffset option is a 64-bit signed integer value that
specifies an offset (in seconds) that must be added to the
timestamp of each packet to obtain the absolute timestamp of
a packet. If the option is not present, an offset of 0 is assumed
(i.e., timestamps in blocks are absolute timestamps).
timestamp of each packet (in addition to 'if_tsoffset_ns')
to obtain the absolute timestamp of a packet.
If the option is not present, an offset of 0 is assumed.
If both this and 'if_tsoffset_ns' are not present, the
timestamps in blocks are assumed to be absolute timestamps.

This offset is not intended to be used as an offset between local
time and UTC; for this purpose, the if_iana_tzname option SHOULD be
Expand Down Expand Up @@ -1218,6 +1221,24 @@ Examples: "Africa/Nairobi", "Asia/Kolkata", "America/Sao_Paulo",
"Europe/Berlin".


{: indent='8'}
if_tsoffset_ns:
: The
if_tsoffset_ns option is a 32-bit signed integer value that
specifies an offset (in nanoseconds) that must be added to the
timestamp of each packet (in addition to 'if_tsoffset')
to obtain the absolute timestamp of a packet.
If the option is not present, an offset of 0 is assumed.
If both this and 'if_tsoffset' are not present, the
timestamps in blocks are assumed to be absolute timestamps.
The value of this option MUST be greater than -1,000,000,000
and less than 1,000,000,000.

{: vspace='0'}

Example: '1234'.


## Enhanced Packet Block {#section_epb}

An Enhanced Packet Block (EPB) is the standard container for
Expand Down