epan/dissectors/pidl/regen.sh
[wireshark-sm.git] / extcap / dpauxmon_user.h
blob645e4b8b0ac6240b6c1eeafb3a1c6ff30799c3f7
1 /** @file
3 * Copyright 2018, Dirk Eibach, Guntermann & Drunck GmbH <dirk.eibach@gdsys.cc>
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
8 #ifndef DPAUXMON_USER_H_
9 #define DPAUXMON_USER_H_
11 #include <linux/types.h>
14 * Generic Netlink Interface for DisplayPort AUX channel monitoring
18 * enum dpauxmon_cmd - supported dpauxmon netlink commands
20 * @__DPAUXMON_CMD_UNSPEC: unspecified command to catch errors
22 * @DPAUXMON_CMD_START: start monitoring on %DPAUXMON_ATTR_IFINDEX
23 * @DPAUXMON_CMD_STOP: stop monitoring on %DPAUXMON_ATTR_IFINDEX
24 * @DPAUXMON_CMD_DATA: captured data from %DPAUXMON_ATTR_IFINDEX
26 enum dpauxmon_cmd {
27 __DPAUXMON_CMD_UNSPEC,
28 DPAUXMON_CMD_START,
29 DPAUXMON_CMD_STOP,
30 DPAUXMON_CMD_DATA,
32 /* keep last */
33 __DPAUXMON_CMD_MAX,
34 DPAUXMON_CMD_MAX = __DPAUXMON_CMD_MAX - 1,
38 * enum dpauxmon_attr - dpauxmon netlink attributes
40 * @__DPAUXMON_ATTR_UNSPEC: unspecified attribute to catch errors
42 * @DPAUXMON_ATTR_IFINDEX: index of dpauxmon unit to operate on
43 * @DPAUXMON_ATTR_DATA: dpauxmon data payload
44 * @DPAUXMON_ATTR_FROM_SOURCE: data payload is sent from source
45 * @DPAUXMON_ATTR_TIMESTAMP: data payload is sent from source
47 enum dpauxmon_attr {
48 __DPAUXMON_ATTR_UNSPEC,
49 DPAUXMON_ATTR_IFINDEX, /* NLA_U32 */
50 DPAUXMON_ATTR_DATA, /* NLA_BINARY */
51 DPAUXMON_ATTR_FROM_SOURCE, /* NLA_FLAG */
52 DPAUXMON_ATTR_TIMESTAMP, /* NLA_MSECS */
54 /* keep last */
55 __DPAUXMON_ATTR_AFTER_LAST,
56 DPAUXMON_ATTR_MAX = __DPAUXMON_ATTR_AFTER_LAST - 1
59 #endif