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