]> git.proxmox.com Git - mirror_ifupdown2.git/blame - ifupdown2/ifupdown/iff.py
Merge branch 'master' of https://github.com/CumulusNetworks/ifupdown2
[mirror_ifupdown2.git] / ifupdown2 / ifupdown / iff.py
CommitLineData
f82758bf
RP
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
13IFF_UP = 0x1 # interface is up
14IFF_BROADCAST = 0x2 # broadcast address valid
15IFF_DEBUG = 0x4 # turn on debugging
16IFF_LOOPBACK = 0x8 # is a loopback net
17IFF_POINTOPOINT = 0x10 # interface is has p-p link
18IFF_NOTRAILERS = 0x20 # avoid use of trailers
19IFF_RUNNING = 0x40 # interface RFC2863 OPER_UP
20IFF_NOARP = 0x80 # no ARP protocol
21IFF_PROMISC = 0x100 # receive all packets
22IFF_ALLMULTI = 0x200 # receive all multicast packets
23
24IFF_MASTER = 0x400 # master of a load balancer
25IFF_SLAVE = 0x800 # slave of a load balancer
26
27IFF_MULTICAST = 0x1000 # Supports multicast
28
29IFF_PORTSEL = 0x2000 # can set media type
30IFF_AUTOMEDIA = 0x4000 # auto media select active
31IFF_DYNAMIC = 0x8000 # dialup device with changing addresses
32
33IFF_LOWER_UP = 0x10000 # driver signals L1 up
34IFF_DORMANT = 0x20000 # driver signals dormant
35
36IFF_ECHO = 0x40000 # echo sent packets