diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-09-07 14:50:16 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-09-07 22:54:17 +0000 |
commit | 5a06361582fa3cb87ffa2b0802fc17c979d66564 (patch) | |
tree | 8423bf2d400afa00824258031622f2e017e46760 /epan/dissectors/packet-systemd-journal.c | |
parent | 4c9cbcd5ac6ea0ed5d42a21b7dbe56b1c8fb89e6 (diff) |
systemd_journal: Add more fields.
Add more unofficial fields.
Change-Id: If402d98ef2d51913a798c18e9bb22ad23f8a1dd3
Reviewed-on: https://code.wireshark.org/review/29478
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-systemd-journal.c')
-rw-r--r-- | epan/dissectors/packet-systemd-journal.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/epan/dissectors/packet-systemd-journal.c b/epan/dissectors/packet-systemd-journal.c index 9a5f990ace..96ac543c9f 100644 --- a/epan/dissectors/packet-systemd-journal.c +++ b/epan/dissectors/packet-systemd-journal.c @@ -1,4 +1,4 @@ -/* packet-systemd-journal-export.c +/* packet-systemd-journal.c * Routines for systemd journal export (application/vnd.fdo.journal) dissection * Copyright 2018, Gerald Combs <gerald@wireshark.org> * @@ -16,6 +16,7 @@ * Registered MIME type: application/vnd.fdo.journal * * To do: + * - Rename systemd_journal to sdjournal? It's easier to type. * - Add an extcap module. * - Add errno strings. * - Pretty-print _CAP_EFFECTIVE @@ -136,6 +137,9 @@ static int hf_sj_userspace_usec = -1; static int hf_sj_session_id = -1; static int hf_sj_user_id = -1; static int hf_sj_leader = -1; +static int hf_sj_job_type = -1; +static int hf_sj_job_result = -1; +static int hf_sj_user_invocation_id = -1; // Metadata. static int hf_sj_binary_data_len = -1; @@ -261,6 +265,9 @@ static void init_jf_to_hf_map(void) { { hf_sj_session_id, "SESSION_ID" }, { hf_sj_user_id, "USER_ID" }, { hf_sj_leader, "LEADER" }, + { hf_sj_job_type, "JOB_TYPE" }, + { hf_sj_job_result, "JOB_RESULT" }, + { hf_sj_user_invocation_id, "USER_INVOCATION_ID" }, { 0, NULL } }; jf_to_hf = (journal_field_hf_map*) g_memdup(jhmap, sizeof(jhmap)); @@ -747,6 +754,18 @@ proto_register_systemd_journal(void) { "Leader", "systemd_journal.leader", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, + { &hf_sj_job_type, + { "Job type", "systemd_journal.job_type", + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } + }, + { &hf_sj_job_result, + { "Job result", "systemd_journal.job_result", + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } + }, + { &hf_sj_user_invocation_id, + { "User invocation ID", "systemd_journal.user_invocation_id", + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } + }, { &hf_sj_binary_data_len, { "Binary data length", "systemd_journal.binary_data_len", |