Wireshark
4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
epan
dissectors
packet-geonw.h
1
/* packet-geonw.h
2
* Routines for GeoNetworking and BTP-A/B dissection
3
* Coyright 2018, C. Guerber <
[email protected]
>
4
*
5
* Wireshark - Network traffic analyzer
6
* By Gerald Combs <
[email protected]
>
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
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
;
36
37
typedef
struct
btpaheader
38
{
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
;
44
45
typedef
struct
btpbheader
46
{
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
;
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
*/
_address
Definition
address.h:56
btpaheader
Definition
packet-geonw.h:38
btpbheader
Definition
packet-geonw.h:46
geonwheader
Definition
packet-geonw.h:19
Generated by
1.9.8