Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-geonw.h
1 /* packet-geonw.h
2  * Routines for GeoNetworking and BTP-A/B dissection
3  * Coyright 2018, C. Guerber <cguerber@yahoo.com>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 
13 #ifndef __PACKET_GEONW_H__
14 #define __PACKET_GEONW_H__
15 
16 #define SN_MAX 0xffff
17 
18 typedef struct geonwheader
19 {
20  guint8 gnw_ver; /* Version */
21  guint8 gnw_lt; /* Life time */
22  guint8 gnw_rhl; /* Remaining Hop Limit */
23  guint8 gnw_proto; /* Next header */
24  guint8 gnw_htype; /* Header type */
25  guint8 gnw_tc; /* Traffic class */
26  guint8 gnw_flags; /* Flags */
27  guint8 gnw_mhl; /* Remaining Hop Limit */
28  guint16 gnw_len; /* Payload length */
29  guint32 gnw_sn; /* Sequence number or MAX+1 */
30  guint32 gnw_tst; /* TimeStamp */
31  address gnw_src; /* source address */
32  address gnw_dst; /* destination address */
33  gint32 gnw_lat; /* Latitude */
34  gint32 gnw_lon; /* Longitude */
35 } geonwheader;
36 
37 typedef struct btpaheader
38 {
39  address gnw_src; /* source address */
40  address gnw_dst; /* destination address */
41  guint16 btp_psrc; /* Source port */
42  guint16 btp_pdst; /* Destination port */
43 } btpaheader;
44 
45 typedef struct btpbheader
46 {
47  address gnw_src; /* source address */
48  address gnw_dst; /* destination address */
49  guint16 btp_pdst; /* Destination port */
50  guint16 btp_idst; /* Destination info */
51 } btpbheader;
52 
53 #endif /* __PACKET_GEONW_H__ */
54 
55 /*
56  * Editor modelines - https://www.wireshark.org/tools/modelines.html
57  *
58  * Local variables:
59  * c-basic-offset: 4
60  * tab-width: 8
61  * indent-tabs-mode: nil
62  * End:
63  *
64  * vi: set shiftwidth=4 tabstop=8 expandtab:
65  * :indentSize=4:tabSize=8:noTabs=true:
66  */
Definition: address.h:56
Definition: packet-geonw.h:38
Definition: packet-geonw.h:46
Definition: packet-geonw.h:19