@@ -2727,45 +2727,45 @@ pub const net_device_flags_IFF_PORTSEL: net_device_flags = 8192;
2727
2727
pub const net_device_flags_IFF_AUTOMEDIA: net_device_flags = 16384 ;
2728
2728
pub const net_device_flags_IFF_DYNAMIC: net_device_flags = 32768 ;
2729
2729
/**
2730
- ** enum net_device_flags - &struct net_device flags
2731
- **
2732
- ** These are the &struct net_device flags, they can be set by drivers, the
2733
- ** kernel and some can be triggered by userspace. Userspace can query and
2734
- ** set these flags using userspace utilities but there is also a sysfs
2735
- ** entry available for all dev flags which can be queried and set. These flags
2736
- ** are shared for all types of net_devices. The sysfs entries are available
2737
- ** via /sys/class/net/<dev>/flags. Flags which can be toggled through sysfs
2738
- ** are annotated below, note that only a few flags can be toggled and some
2739
- ** other flags are always preserved from the original net_device flags
2740
- ** even if you try to set them via sysfs. Flags which are always preserved
2741
- ** are kept under the flag grouping @IFF_VOLATILE. Flags which are __volatile__
2742
- ** are annotated below as such.
2743
- **
2744
- ** You should have a pretty good reason to be extending these flags.
2745
- **
2746
- ** @IFF_UP: interface is up. Can be toggled through sysfs.
2747
- ** @IFF_BROADCAST: broadcast address valid. Volatile.
2748
- ** @IFF_DEBUG: turn on debugging. Can be toggled through sysfs.
2749
- ** @IFF_LOOPBACK: is a loopback net. Volatile.
2750
- ** @IFF_POINTOPOINT: interface is has p-p link. Volatile.
2751
- ** @IFF_NOTRAILERS: avoid use of trailers. Can be toggled through sysfs.
2752
- ** Volatile.
2753
- ** @IFF_RUNNING: interface RFC2863 OPER_UP. Volatile.
2754
- ** @IFF_NOARP: no ARP protocol. Can be toggled through sysfs. Volatile.
2755
- ** @IFF_PROMISC: receive all packets. Can be toggled through sysfs.
2756
- ** @IFF_ALLMULTI: receive all multicast packets. Can be toggled through
2757
- ** sysfs.
2758
- ** @IFF_MASTER: master of a load balancer. Volatile.
2759
- ** @IFF_SLAVE: slave of a load balancer. Volatile.
2760
- ** @IFF_MULTICAST: Supports multicast. Can be toggled through sysfs.
2761
- ** @IFF_PORTSEL: can set media type. Can be toggled through sysfs.
2762
- ** @IFF_AUTOMEDIA: auto media select active. Can be toggled through sysfs.
2763
- ** @IFF_DYNAMIC: dialup device with changing addresses. Can be toggled
2764
- ** through sysfs.
2765
- ** @IFF_LOWER_UP: driver signals L1 up. Volatile.
2766
- ** @IFF_DORMANT: driver signals dormant. Volatile.
2767
- ** @IFF_ECHO: echo sent packets. Volatile.
2768
- ** /
2730
+ * enum net_device_flags - &struct net_device flags
2731
+ *
2732
+ * These are the &struct net_device flags, they can be set by drivers, the
2733
+ * kernel and some can be triggered by userspace. Userspace can query and
2734
+ * set these flags using userspace utilities but there is also a sysfs
2735
+ * entry available for all dev flags which can be queried and set. These flags
2736
+ * are shared for all types of net_devices. The sysfs entries are available
2737
+ * via /sys/class/net/<dev>/flags. Flags which can be toggled through sysfs
2738
+ * are annotated below, note that only a few flags can be toggled and some
2739
+ * other flags are always preserved from the original net_device flags
2740
+ * even if you try to set them via sysfs. Flags which are always preserved
2741
+ * are kept under the flag grouping @IFF_VOLATILE. Flags which are __volatile__
2742
+ * are annotated below as such.
2743
+ *
2744
+ * You should have a pretty good reason to be extending these flags.
2745
+ *
2746
+ * @IFF_UP: interface is up. Can be toggled through sysfs.
2747
+ * @IFF_BROADCAST: broadcast address valid. Volatile.
2748
+ * @IFF_DEBUG: turn on debugging. Can be toggled through sysfs.
2749
+ * @IFF_LOOPBACK: is a loopback net. Volatile.
2750
+ * @IFF_POINTOPOINT: interface is has p-p link. Volatile.
2751
+ * @IFF_NOTRAILERS: avoid use of trailers. Can be toggled through sysfs.
2752
+ * Volatile.
2753
+ * @IFF_RUNNING: interface RFC2863 OPER_UP. Volatile.
2754
+ * @IFF_NOARP: no ARP protocol. Can be toggled through sysfs. Volatile.
2755
+ * @IFF_PROMISC: receive all packets. Can be toggled through sysfs.
2756
+ * @IFF_ALLMULTI: receive all multicast packets. Can be toggled through
2757
+ * sysfs.
2758
+ * @IFF_MASTER: master of a load balancer. Volatile.
2759
+ * @IFF_SLAVE: slave of a load balancer. Volatile.
2760
+ * @IFF_MULTICAST: Supports multicast. Can be toggled through sysfs.
2761
+ * @IFF_PORTSEL: can set media type. Can be toggled through sysfs.
2762
+ * @IFF_AUTOMEDIA: auto media select active. Can be toggled through sysfs.
2763
+ * @IFF_DYNAMIC: dialup device with changing addresses. Can be toggled
2764
+ * through sysfs.
2765
+ * @IFF_LOWER_UP: driver signals L1 up. Volatile.
2766
+ * @IFF_DORMANT: driver signals dormant. Volatile.
2767
+ * @IFF_ECHO: echo sent packets. Volatile.
2768
+ */
2769
2769
pub type net_device_flags = :: std:: os:: raw:: c_uint ;
2770
2770
pub const IF_OPER_UNKNOWN : _bindgen_ty_4 = 0 ;
2771
2771
pub const IF_OPER_NOTPRESENT : _bindgen_ty_4 = 1 ;
0 commit comments