Options
All
  • Public
  • Public/Protected
  • All
Menu

These are the &struct net_device flags, they can be set by drivers, the kernel and some can be triggered by userspace. Userspace can query and set these flags using userspace utilities but there is also a sysfs entry available for all dev flags which can be queried and set. These flags are shared for all types of net_devices. The sysfs entries are available via /sys/class/net//flags. Flags which can be toggled through sysfs are annotated below, note that only a few flags can be toggled and some other flags are always preserved from the original net_device flags even if you try to set them via sysfs. Flags which are always preserved are kept under the flag grouping @IFF_VOLATILE. Flags which are volatile are annotated below as such.

You should have a pretty good reason to be extending these flags.

Hierarchy

  • DeviceFlags

Index

Properties

__unknown?: number
allmulti?: true

receive all multicast packets. Can be toggled through sysfs.

automedia?: true

auto media select active. Can be toggled through sysfs.

broadcast?: true

broadcast address valid. Volatile.

debug?: true

turn on debugging. Can be toggled through sysfs.

dormant?: true

driver signals dormant. Volatile.

dynamic?: true

dialup device with changing addresses. Can be toggled through sysfs.

echo?: true

echo sent packets. Volatile.

loopback?: true

is a loopback net. Volatile.

lowerUp?: true

driver signals L1 up. Volatile.

master?: true

master of a load balancer. Volatile.

multicast?: true

Supports multicast. Can be toggled through sysfs.

noarp?: true

no ARP protocol. Can be toggled through sysfs. Volatile.

notrailers?: true

avoid use of trailers. Can be toggled through sysfs. Volatile.

pointopoint?: true

interface is has p-p link. Volatile.

portsel?: true

can set media type. Can be toggled through sysfs.

promisc?: true

receive all packets. Can be toggled through sysfs.

running?: true

interface RFC2863 OPER_UP. Volatile.

slave?: true

slave of a load balancer. Volatile.

up?: true

interface is up. Can be toggled through sysfs.

Generated using TypeDoc