Skip to main content

Attribute

Enum Attribute 

Source
#[repr(u16)]
pub enum Attribute {
Show 61 variants BatadvAttrUnspec = 0, BatadvAttrVersion = 1, BatadvAttrAlgoName = 2, BatadvAttrMeshIfindex = 3, BatadvAttrMeshIfname = 4, BatadvAttrMeshAddress = 5, BatadvAttrHardIfindex = 6, BatadvAttrHardIfname = 7, BatadvAttrHardAddress = 8, BatadvAttrOrigAddress = 9, BatadvAttrTpMeterResult = 10, BatadvAttrTpMeterTestTime = 11, BatadvAttrTpMeterBytes = 12, BatadvAttrTpMeterCookie = 13, BatadvAttrPad = 14, BatadvAttrActive = 15, BatadvAttrTtAddress = 16, BatadvAttrTtTtvn = 17, BatadvAttrTtLastTtvn = 18, BatadvAttrTtCrc32 = 19, BatadvAttrTtVid = 20, BatadvAttrTtFlags = 21, BatadvAttrFlagBest = 22, BatadvAttrLastSeenMsecs = 23, BatadvAttrNeighAddress = 24, BatadvAttrTq = 25, BatadvAttrThroughput = 26, BatadvAttrBandwidthUp = 27, BatadvAttrBandwidthDown = 28, BatadvAttrRouter = 29, BatadvAttrBlaOwn = 30, BatadvAttrBlaAddress = 31, BatadvAttrBlaVid = 32, BatadvAttrBlaBackbone = 33, BatadvAttrBlaCrc = 34, BatadvAttrDatCacheIp4Address = 35, BatadvAttrDatCacheHwAddress = 36, BatadvAttrDatCacheVid = 37, BatadvAttrMcastFlags = 38, BatadvAttrMcastFlagsPriv = 39, BatadvAttrVlanId = 40, BatadvAttrAggregatedOgmsEnabled = 41, BatadvAttrApIsolationEnabled = 42, BatadvAttrIsolationMark = 43, BatadvAttrIsolationMask = 44, BatadvAttrBondingEnabled = 45, BatadvAttrBridgeLoopAvoidanceEnabled = 46, BatadvAttrDistributedArpTableEnabled = 47, BatadvAttrFragmentationEnabled = 48, BatadvAttrGwBandwidthDown = 49, BatadvAttrGwBandwidthUp = 50, BatadvAttrGwMode = 51, BatadvAttrGwSelClass = 52, BatadvAttrHopPenalty = 53, BatadvAttrLogLevel = 54, BatadvAttrMulticastForceFloodEnabled = 55, BatadvAttrNetworkCodingEnabled = 56, BatadvAttrOrigInterval = 57, BatadvAttrElpInterval = 58, BatadvAttrThroughputOverride = 59, BatadvAttrMulticastFanout = 60,
}
Expand description

BATMAN-adv Netlink attributes (from linux/uapi/batman_adv.h).

These attributes are used when communicating with the kernel via the BATMAN-adv generic netlink interface. They represent various settings, metrics, and state information for mesh interfaces, translation tables, neighbors, gateways, and protocol features.

Variants§

§

BatadvAttrUnspec = 0

Unspecified / placeholder attribute.

§

BatadvAttrVersion = 1

BATMAN-adv protocol version.

§

BatadvAttrAlgoName = 2

Name of the routing algorithm in use.

§

BatadvAttrMeshIfindex = 3

Mesh interface index.

§

BatadvAttrMeshIfname = 4

Mesh interface name.

§

BatadvAttrMeshAddress = 5

MAC address of the mesh interface.

§

BatadvAttrHardIfindex = 6

Hard interface index.

§

BatadvAttrHardIfname = 7

Hard interface name.

§

BatadvAttrHardAddress = 8

MAC address of the hard interface.

§

BatadvAttrOrigAddress = 9

Originator (source) MAC address.

§

BatadvAttrTpMeterResult = 10

Throughput meter result.

§

BatadvAttrTpMeterTestTime = 11

Throughput test duration in seconds.

§

BatadvAttrTpMeterBytes = 12

Number of bytes transferred in throughput test.

§

BatadvAttrTpMeterCookie = 13

Throughput meter cookie.

§

BatadvAttrPad = 14

Padding attribute (unused).

§

BatadvAttrActive = 15

Interface active state.

§

BatadvAttrTtAddress = 16

Translation table client MAC address.

§

BatadvAttrTtTtvn = 17

Translation table TTVN.

§

BatadvAttrTtLastTtvn = 18

Last TTVN in translation table.

§

BatadvAttrTtCrc32 = 19

CRC32 for translation table entry.

§

BatadvAttrTtVid = 20

VLAN ID for translation table entry.

§

BatadvAttrTtFlags = 21

Flags for translation table entry (see ClientFlags).

§

BatadvAttrFlagBest = 22

Marks the “best” client in the translation table.

§

BatadvAttrLastSeenMsecs = 23

Last seen timestamp in milliseconds.

§

BatadvAttrNeighAddress = 24

Neighbor MAC address.

§

BatadvAttrTq = 25

Transmission quality (TQ) metric.

§

BatadvAttrThroughput = 26

Throughput in bytes per second (optional, BATMAN_V).

§

BatadvAttrBandwidthUp = 27

Gateway bandwidth upstream (kbit/s).

§

BatadvAttrBandwidthDown = 28

Gateway bandwidth downstream (kbit/s).

§

BatadvAttrRouter = 29

Gateway MAC address for router.

§

BatadvAttrBlaOwn = 30

Backbone link advertisement (BLA) own attribute.

§

BatadvAttrBlaAddress = 31

BLA MAC address.

§

BatadvAttrBlaVid = 32

BLA VLAN ID.

§

BatadvAttrBlaBackbone = 33

BLA backbone flag.

§

BatadvAttrBlaCrc = 34

BLA CRC.

§

BatadvAttrDatCacheIp4Address = 35

DAT IPv4 address.

§

BatadvAttrDatCacheHwAddress = 36

DAT hardware (MAC) address.

§

BatadvAttrDatCacheVid = 37

DAT VLAN ID.

§

BatadvAttrMcastFlags = 38

Multicast flags.

§

BatadvAttrMcastFlagsPriv = 39

Private multicast flags.

§

BatadvAttrVlanId = 40

VLAN ID.

§

BatadvAttrAggregatedOgmsEnabled = 41

OGMs aggregation enabled.

§

BatadvAttrApIsolationEnabled = 42

AP isolation enabled.

§

BatadvAttrIsolationMark = 43

Isolation mark.

§

BatadvAttrIsolationMask = 44

Isolation mask.

§

BatadvAttrBondingEnabled = 45

Bonding enabled flag.

§

BatadvAttrBridgeLoopAvoidanceEnabled = 46

Bridge loop avoidance enabled flag.

§

BatadvAttrDistributedArpTableEnabled = 47

Distributed ARP table enabled flag.

§

BatadvAttrFragmentationEnabled = 48

Fragmentation enabled flag.

§

BatadvAttrGwBandwidthDown = 49

Gateway bandwidth downstream.

§

BatadvAttrGwBandwidthUp = 50

Gateway bandwidth upstream.

§

BatadvAttrGwMode = 51

Gateway mode (off/client/server).

§

BatadvAttrGwSelClass = 52

Gateway selection class.

§

BatadvAttrHopPenalty = 53

Hop penalty.

§

BatadvAttrLogLevel = 54

Log level.

§

BatadvAttrMulticastForceFloodEnabled = 55

Force multicast flooding enabled.

§

BatadvAttrNetworkCodingEnabled = 56

Network coding enabled.

§

BatadvAttrOrigInterval = 57

Originator interval.

§

BatadvAttrElpInterval = 58

ELP interval.

§

BatadvAttrThroughputOverride = 59

Throughput override.

§

BatadvAttrMulticastFanout = 60

Multicast fanout.

Trait Implementations§

Source§

impl Clone for Attribute

Source§

fn clone(&self) -> Attribute

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Attribute

Source§

impl Debug for Attribute

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Attribute

Source§

impl From<Attribute> for u16

Source§

fn from(a: Attribute) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Attribute

Source§

fn eq(&self, other: &Attribute) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Attribute

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more