1 # Copyright (C) 2017 Nippon Telegraph and Telephone Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Constants defined in netdevice(7)
20 IFF_UP = 1 << 0 # Interface is running.
21 IFF_BROADCAST = 1 << 1 # Valid broadcast address set.
22 IFF_DEBUG = 1 << 2 # Internal debugging flag.
23 IFF_LOOPBACK = 1 << 3 # Interface is a loopback interface.
24 IFF_POINTOPOINT = 1 << 4 # Interface is a point-to-point link.
25 IFF_NOTRAILERS = 1 << 5 # Avoid use of trailers.
26 IFF_RUNNING = 1 << 6 # Resources allocated.
27 IFF_NOARP = 1 << 7 # No arp protocol, L2 destination address not set.
28 IFF_PROMISC = 1 << 8 # Interface is in promiscuous mode.
29 IFF_ALLMULTI = 1 << 9 # Receive all multicast packets.
30 IFF_MASTER = 1 << 10 # Master of a load balancing bundle.
31 IFF_SLAVE = 1 << 11 # Slave of a load balancing bundle.
32 IFF_MULTICAST = 1 << 12 # Supports multicast.
33 IFF_PORTSEL = 1 << 13 # Is able to select media type via ifmap.
34 IFF_AUTOMEDIA = 1 << 14 # Auto media selection active.
35 IFF_DYNAMIC = 1 << 15 # The addresses are lost when the interface goes down.
37 IFF_LOWER_UP = 1 << 16 # Driver signals L1 up. (since Linux 2.6.17)
38 IFF_DORMANT = 1 << 17 # Driver signals dormant. (since Linux 2.6.17)
39 IFF_ECHO = 1 << 18 # Echo sent packets. (since Linux 2.6.25)
41 # Private interface flags
42 # from linux/netdevice.h
43 IFF_802_1Q_VLAN = 1 << 0 # 802.1Q VLAN device.
44 IFF_EBRIDGE = 1 << 1 # Ethernet bridging device.
45 IFF_BONDING = 1 << 2 # bonding master or slave.
46 IFF_ISATAP = 1 << 3 # ISATAP interface (RFC4214).
47 IFF_WAN_HDLC = 1 << 4 # WAN HDLC device.
48 IFF_XMIT_DST_RELEASE = 1 << 5 # dev_hard_start_xmit() is allowed to release skb->dst.
49 IFF_DONT_BRIDGE = 1 << 6 # disallow bridging this ether dev.
50 IFF_DISABLE_NETPOLL = 1 << 7 # disable netpoll at run-time.
51 IFF_MACVLAN_PORT = 1 << 8 # device used as macvlan port.
52 IFF_BRIDGE_PORT = 1 << 9 # device used as bridge port.
53 IFF_OVS_DATAPATH = 1 << 10 # device used as Open vSwitch datapath port.
54 IFF_TX_SKB_SHARING = 1 << 11 # The interface supports sharing skbs on transmit.
55 IFF_UNICAST_FLT = 1 << 12 # Supports unicast filtering.
56 IFF_TEAM_PORT = 1 << 13 # device used as team port.
57 IFF_SUPP_NOFCS = 1 << 14 # device supports sending custom FCS.
58 IFF_LIVE_ADDR_CHANGE = 1 << 15 # device supports hardware address change when it's running.
59 IFF_MACVLAN = 1 << 16 # Macvlan device.
60 IFF_XMIT_DST_RELEASE_PERM = 1 << 17 # IFF_XMIT_DST_RELEASE not taking into account underlying stacked devices.
61 IFF_IPVLAN_MASTER = 1 << 18 # IPvlan master device.
62 IFF_IPVLAN_SLAVE = 1 << 19 # IPvlan slave device.
63 IFF_L3MDEV_MASTER = 1 << 20 # device is an L3 master device.
64 IFF_NO_QUEUE = 1 << 21 # device can run without qdisc attached.
65 IFF_OPENVSWITCH = 1 << 22 # device is a Open vSwitch master.
66 IFF_L3MDEV_SLAVE = 1 << 23 # device is enslaved to an L3 master device.
67 IFF_TEAM = 1 << 24 # device is a team device.
68 IFF_RXFH_CONFIGURED = 1 << 25 # device has had Rx Flow indirection table configured.
69 IFF_PHONY_HEADROOM = 1 << 26 # the headroom value is controlled by an external entity. (i.e. the master device for bridged veth)
70 IFF_MACSEC = 1 << 27 # device is a MACsec device.