Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-socketcan.h
1 /* packet-socketcan.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __PACKET_SOCKETCAN_H__
11 #define __PACKET_SOCKETCAN_H__
12 
13 /* Structure that gets passed between dissectors. */
15 {
16  guint32 id;
17 };
18 
19 typedef struct can_identifier can_identifier_t;
20 
21 #define CAN_EFF_MASK 0x1FFFFFFF /* extended frame format (EFF) has a 29 bit identifier */
22 #define CAN_SFF_MASK 0x000007FF /* standard frame format (SFF) has a 11 bit identifier */
23 
24 #endif /* __PACKET_SOCKETCAN_H__ */
25 
26 /*
27  * Editor modelines - http://www.wireshark.org/tools/modelines.html
28  *
29  * Local variables:
30  * c-basic-offset: 8
31  * tab-width: 8
32  * indent-tabs-mode: t
33  * End:
34  *
35  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
36  * :indentSize=8:tabSize=8:noTabs=false:
37  */
Definition: packet-socketcan.h:14