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

extras: allow options in journal export block #122

Open
wants to merge 2 commits 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
21 changes: 21 additions & 0 deletions draft-richardson-opsawg-pcapng-extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ Journal Export Block.
/ variable length, padded to 32 bits /
/ /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
n / /
/ Options (variable) /
/ /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Block Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~~~~
Expand All @@ -159,6 +163,23 @@ The systemd Journal Export Block has the following fields:
(trailing newline) as described in the Journal Export Format
specification

If the block contains options, there MUST be at least one byte of
zero padding present to mark the end of the journal entry. This
only makes a difference if the journal entry is a multiple of four
octets long, in this case 4 bytes of zero padding MUST be appended.
Blocks without options do not contain any zero padding if the journal
entry is a multiple of 4 octets long, therefore readers MUST NOT
rely on the presence of a zero byte to terminate the entry.

* Options: optionally, a list of options (formatted according to
the rules defined in {{I-D.tuexen-opsawg-pcapng}}, section "Options")
can be present.


The options defined in {{I-D.tuexen-opsawg-pcapng}}, section "Options"
(opt_endofopt, opt_comment, opt_custom, ...) are valid within this block.
There are currently no additional options definied for Journal Export
Blocks.


## Alternative Packet Blocks (experimental)
Expand Down
Loading