]> git.proxmox.com Git - mirror_ifupdown2.git/blob - ifupdown/iff.py
Addons/tunnel: fix typo in validvals (#31)
[mirror_ifupdown2.git] / ifupdown / iff.py
1 #!/usr/bin/env python
2 #
3 # Copyright 2014 Cumulus Networks, Inc. All rights reserved.
4 #
5 # Author: Scott Feldman, sfeldma@cumulusnetworks.com
6 #
7 #
8 # from /usr/include/linux/if.h
9 #
10
11 # Standard interface flags (netdevice->flags).
12
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
23
24 IFF_MASTER = 0x400 # master of a load balancer
25 IFF_SLAVE = 0x800 # slave of a load balancer
26
27 IFF_MULTICAST = 0x1000 # Supports multicast
28
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
32
33 IFF_LOWER_UP = 0x10000 # driver signals L1 up
34 IFF_DORMANT = 0x20000 # driver signals dormant
35
36 IFF_ECHO = 0x40000 # echo sent packets