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__
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 */
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 */
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 */
53 #endif /* __PACKET_GEONW_H__ */
56 * Editor modelines - https://www.wireshark.org/tools/modelines.html
61 * indent-tabs-mode: nil
64 * vi: set shiftwidth=4 tabstop=8 expandtab:
65 * :indentSize=4:tabSize=8:noTabs=true: