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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// This file is part of linux-support. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT. No part of linux-support, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2020 The developers of linux-support. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT.
/// Interface is up.
///
/// Can be toggled through sysfs.
pub const IFF_UP: u32 = 1 << 0;
/// Broadcast address is valid.
///
/// Is volatile.
pub const IFF_BROADCAST: u32 = 1 << 1;
/// Turn on debugging.
///
/// Can be toggled through sysfs.
pub const IFF_DEBUG: u32 = 1 << 2;
/// Is a loopback net device.
///
/// Is volatile.
pub const IFF_LOOPBACK: u32 = 1 << 3;
/// Interface is a point-to-point (P2P) link.
///
/// Is volatile.
pub const IFF_POINTOPOINT: u32 = 1 << 4;
/// Avoid use of trailers.
///
/// Can be toggled through sysfs.
/// Is volatile.
pub const IFF_NOTRAILERS: u32 = 1 << 5;
/// Interface has RFC 2863 operational status `OPER_UP`.
///
/// Is volatile.
pub const IFF_RUNNING: u32 = 1 << 6;
/// No ARP protocol.
///
/// Can be toggled through sysfs.
/// Is volatile.
pub const IFF_NOARP: u32 = 1 << 7;
/// Receive all packets.
///
/// Can be toggled through sysfs.
pub const IFF_PROMISC: u32 = 1 << 8;
/// Receive all multicast packets.
///
/// Can be toggled through sysfs.
pub const IFF_ALLMULTI: u32 = 1 << 9;
/// Master of a load balancer.
///
/// Is volatile.
pub const IFF_MASTER: u32 = 1 << 10;
/// Slave of a load balancer.
///
/// Is volatile.
pub const IFF_SLAVE: u32 = 1 << 11;
/// Means that this media uses special encapsulation for multicast frames.
///
/// Apparently, all `IFF_POINTOPOINT` and `IFF_BROADCAST` devices are able to use multicast too.
///
/// Can be toggled through sysfs.
pub const IFF_MULTICAST: u32 = 1 << 12;
/// Can set media type.
///
/// Can be toggled through sysfs.
pub const IFF_PORTSEL: u32 = 1 << 13;
/// Auto media select active.
///
/// Can be toggled through sysfs.
pub const IFF_AUTOMEDIA: u32 = 1 << 14;
/// Dial-up device with changing addresses.
///
/// Can be toggled through sysfs.
pub const IFF_DYNAMIC: u32 = 1 << 15;
/// Driver signals L1 up.
///
/// Is volatile.
pub const IFF_LOWER_UP: u32 = 1 << 16;
/// Driver signals dormant.
///
/// Is volatile.
pub const IFF_DORMANT: u32 = 1 << 17;
/// Echo sent packets.
///
/// Is volatile.
pub const IFF_ECHO: u32 = 1 << 18;
/// Volatile (combination of flags).
pub const IFF_VOLATILE: u32 = IFF_LOOPBACK | IFF_POINTOPOINT | IFF_BROADCAST | IFF_ECHO | IFF_MASTER | IFF_SLAVE | IFF_RUNNING | IFF_LOWER_UP | IFF_DORMANT;