]>
git.proxmox.com Git - mirror_ifupdown2.git/blob - ifupdown2/ifupdown/iff.py
3 # Copyright 2014-2017 Cumulus Networks, Inc. All rights reserved.
5 # Author: Scott Feldman, sfeldma@cumulusnetworks.com
8 # from /usr/include/linux/if.h
11 # Standard interface flags (netdevice->flags).
13 IFF_UP
= 0x1 # interface is up
14 IFF_BROADCAST
= 0x2 # broadcast address valid
15 IFF_DEBUG
= 0x4 # turn on debugging
16 IFF_LOOPBACK
= 0x8 # is a loopback net
17 IFF_POINTOPOINT
= 0x10 # interface is has p-p link
18 IFF_NOTRAILERS
= 0x20 # avoid use of trailers
19 IFF_RUNNING
= 0x40 # interface RFC2863 OPER_UP
20 IFF_NOARP
= 0x80 # no ARP protocol
21 IFF_PROMISC
= 0x100 # receive all packets
22 IFF_ALLMULTI
= 0x200 # receive all multicast packets
24 IFF_MASTER
= 0x400 # master of a load balancer
25 IFF_SLAVE
= 0x800 # slave of a load balancer
27 IFF_MULTICAST
= 0x1000 # Supports multicast
29 IFF_PORTSEL
= 0x2000 # can set media type
30 IFF_AUTOMEDIA
= 0x4000 # auto media select active
31 IFF_DYNAMIC
= 0x8000 # dialup device with changing addresses
33 IFF_LOWER_UP
= 0x10000 # driver signals L1 up
34 IFF_DORMANT
= 0x20000 # driver signals dormant
36 IFF_ECHO
= 0x40000 # echo sent packets