Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-bpsec.h
1/* packet-bpv7.h
2 * Definitions for Bundle Protocol Version 7 Security (BPSec) dissection
3 * References:
4 * RFC 9172: https://www.rfc-editor.org/rfc/rfc9172.html
5 *
6 * Copyright 2019-2021, Brian Sipos <[email protected]>
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <[email protected]>
10 * Copyright 1998 Gerald Combs
11 *
12 * SPDX-License-Identifier: LGPL-2.1-or-later
13 */
14#ifndef PACKET_BPSEC_H
15#define PACKET_BPSEC_H
16
17#include <ws_symbol_export.h>
18#include <epan/tvbuff.h>
19#include "packet-bpv7.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*
26 * BPSec per-context parameter types and result types are registered with the
27 * dissector table "bpsec.param" and "bpsec.result" respectively.
28 * Both use bpsec_id_t* table keys, to identify both the context and the type
29 * code points.
30 */
31
35typedef enum {
37 BPSEC_ASB_HAS_PARAMS = 0x01,
38} BpsecAsbFlag;
39
41typedef struct {
43 int64_t context_id;
45 int64_t type_id;
47
54
57WS_DLL_PUBLIC
58bpsec_id_t * bpsec_id_new(wmem_allocator_t *alloc, int64_t context_id, int64_t type_id);
59
62WS_DLL_PUBLIC
63void bpsec_id_free(wmem_allocator_t *alloc, void *ptr);
64
67WS_DLL_PUBLIC
68gboolean bpsec_id_equal(const void *a, const void *b);
69
72WS_DLL_PUBLIC
73unsigned bpsec_id_hash(const void *key);
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* PACKET_BPSEC_H */
Definition wmem_allocator.h:27
Definition packet-bpv7.h:370
Definition packet-bpsec.h:48
const bp_dissector_data_t * bp
Pointer to containing block/bundle context.
Definition packet-bpsec.h:52
bpsec_id_t id
Specific type being dissected.
Definition packet-bpsec.h:50
Parameter/Result dissector lookup.
Definition packet-bpsec.h:41
int64_t type_id
Parameter/Result ID.
Definition packet-bpsec.h:45
int64_t context_id
Security context ID.
Definition packet-bpsec.h:43