2017-05-06 09:35:23 +00:00
|
|
|
/* packet-socketcan.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2017-05-06 09:35:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PACKET_SOCKETCAN_H__
|
|
|
|
#define __PACKET_SOCKETCAN_H__
|
|
|
|
|
|
|
|
/* Structure that gets passed between dissectors. */
|
|
|
|
struct can_identifier
|
|
|
|
{
|
|
|
|
guint32 id;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct can_identifier can_identifier_t;
|
|
|
|
|
2018-01-23 02:33:14 +00:00
|
|
|
#define CAN_EFF_MASK 0x1FFFFFFF /* extended frame format (EFF) has a 29 bit identifier */
|
|
|
|
#define CAN_SFF_MASK 0x000007FF /* standard frame format (SFF) has a 11 bit identifier */
|
|
|
|
|
2017-05-06 09:35:23 +00:00
|
|
|
#endif /* __PACKET_SOCKETCAN_H__ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 8
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
* :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
*/
|