Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-i2c.h
1/* packet-i2c.h
2 * Shared types for I2C dissectors
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef __PACKET_I2C_H__
12#define __PACKET_I2C_H__
13
14#include <epan/packet.h>
15
16/*
17 * Packet-scoped metadata for one I2C message.
18 *
19 * The source container owns the capture-specific details. The returned
20 * metadata is packet-scoped and must not be retained after the current
21 * packet's dissection.
22 */
23typedef struct {
24 uint8_t bus;
26
27const i2c_message_data *i2c_message_data_get(packet_info *pinfo);
28
29#endif /* __PACKET_I2C_H__ */
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet-i2c.h:23