Skip to content

Commit

Permalink
extras: allow options in journal export block
Browse files Browse the repository at this point in the history
Can't currently put options on captured log messages...
(Also adding a nanosecond timestamp in the next commit.)
  • Loading branch information
eqvinox committed Jul 23, 2023
1 parent 6dbff11 commit 74a19d9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 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,24 @@ 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.


TBD: fix cross-reference (section_opt)

* Options: optionally, a list of options (formatted according to
the rules defined in Xsection_optX) can be present.


The options defined in Xsection_optX are valid within this block.
There are currently no additional options definied for Journal Export
Blocks.


## Alternative Packet Blocks (experimental)
Expand Down

0 comments on commit 74a19d9

Please sign in to comment.