blob: cd558fb4c1f1619c599fe501128e23502d8cd6d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef __UAPI_LINUX_NETLINK_WRAPPER_H
#define __UAPI_LINUX_NETLINK_WRAPPER_H 1
#if !defined(__KERNEL__) && !defined(HAVE_NLA_BITFIELD32)
#include <linux/types.h>
/* Generic 32 bitflags attribute content sent to the kernel.
*
* The value is a bitmap that defines the values being set
* The selector is a bitmask that defines which value is legit
*
* Examples:
* value = 0x0, and selector = 0x1
* implies we are selecting bit 1 and we want to set its value to 0.
*
* value = 0x2, and selector = 0x2
* implies we are selecting bit 2 and we want to set its value to 1.
*
*/
struct nla_bitfield32 {
__u32 value;
__u32 selector;
};
#endif /* !__KERNEL__ && !HAVE_NLA_BITFIELD32 */
#include_next <linux/netlink.h>
#endif /* __UAPI_LINUX_NETLINK_WRAPPER_H */
|