diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-mgcp.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-mgcp.h')
-rw-r--r-- | epan/dissectors/packet-mgcp.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mgcp.h b/epan/dissectors/packet-mgcp.h new file mode 100644 index 00000000..04a3ba3e --- /dev/null +++ b/epan/dissectors/packet-mgcp.h @@ -0,0 +1,62 @@ +/* packet-mgcp.h + * Routines for mgcp packet disassembly + * RFC 2705 + * + * Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu> + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1999 Gerald Combs + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + + /* A simple MGCP type that is occasionally handy */ +typedef enum _mgcp_type +{ + MGCP_REQUEST, + MGCP_RESPONSE, + MGCP_OTHERS +} mgcp_type_t; + +/* Container for tapping relevant data */ +typedef struct _mgcp_info_t +{ + mgcp_type_t mgcp_type; + char code[5]; + guint32 transid; + nstime_t req_time; + gboolean is_duplicate; + gboolean request_available; + guint32 req_num; /* frame number request seen */ + gchar *endpointId; + gchar *observedEvents; + guint32 rspcode; + gchar *signalReq; + gboolean hasDigitMap; +} mgcp_info_t; + +/* Item of request list */ +typedef struct _mgcp_call_t +{ + guint32 transid; + char code[5]; + guint32 req_num; /* frame number request seen */ + guint32 rsp_num; /* frame number response seen */ + guint32 rspcode; + nstime_t req_time; + gboolean responded; +} mgcp_call_t; + +/* + * Editor modelines - https://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: t + * End: + * + * vi: set shiftwidth=8 tabstop=8 noexpandtab: + * :indentSize=8:tabSize=8:noTabs=false: + */ |