package
2.0.2
Repository: https://github.com/jsimonetti/rtnetlink.git
Documentation: pkg.go.dev

# Constants

LACPDU frames acts as “speak when spoken to”.
LACPDU frames are sent along the configured links periodically with the rate configured with BondLacpRate This is the default value.
The active aggregator is chosen by largest aggregate bandwidth.
The active aggregator is chosen by the largest number of ports (slaves) Reselection rules are the same with BOND_AD_SELECT_BANDWIDTH.
The active aggregator is chosen by largest aggregate bandwidth Reselection of the active aggregator occurs only when all slaves of the active aggregator are down or the active aggregator has no slaves This is the default value.
Consider the slave up only when all of the arp_ip_targets are reachable.
Consider the slave up only when any of the arp_ip_targets is reachable.
Validation is performed only for the active slave.
Validation is performed for all slaves.
Validation is performed only for backup slaves.
Filtering is applied to all slaves.
Filtering is applied to all slaves, validation is performed only for the active slave.
Filtering is applied to all slaves, validation is performed only for backup slaves.
No validation or filtering is performed.
The “active” fail_over_mac policy indicates that the MAC address of the bond should always be the MAC address of the currently active slave.
The “follow” fail_over_mac policy causes the MAC address of the bond to be selected normally (normally the MAC address of the first slave added to the bond) However, the second and subsequent slaves are not set to this MAC address while they are in a backup role; a slave is programmed with the bond’s MAC address at failover time (and the formerly active slave receives the newly active slave’s MAC address).
This setting disables fail_over_mac, and causes bonding to set all slaves of an active-backup bond to the same MAC address at enslavement time.
Request partner to transmit LACPDUs every 1 second.
Request partner to transmit LACPDUs every 30 seconds This is the default value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IEEE 802.3ad Dynamic link aggregation.
Active-backup policy: Only one slave in the bond is active.
Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special switch support.
Round-robin policy: Transmit packets in sequential order from the first available slave through the last This is the default value.
Adaptive transmit load balancing: channel bonding that does not require any special switch support Outgoing traffic is configured by TlbDynamicLb field Incoming traffic is received by the current slave.
XOR policy: Transmit based on the selected transmit hash policy.
Broadcast policy: transmits everything on all slave interfaces.
No description provided by the author
The primary slave becomes the active slave whenever it comes back up, this is the default value.
The primary slave becomes the active slave when it comes back up, if the speed and duplex of the primary slave is better than the speed and duplex of the current active slave.
The primary slave becomes the active slave only if the current active slave fails and the primary slave is up.
No description provided by the author
No description provided by the author
This policy uses the same formula as layer2+3 but it relies on skb_flow_dissect to obtain the header fields which might result in the use of inner headers if an encapsulation protocol is used.
This policy uses the same formula as layer3+4 but it relies on skb_flow_dissect to obtain the header fields which might result in the use of inner headers if an encapsulation protocol is used.
Uses XOR of hardware MAC addresses and packet type ID field to generate the hash.
This policy uses a combination of layer2 and layer3 protocol information to generate the hash Uses XOR of hardware MAC addresses and IP addresses to generate the hash.
This policy uses upper layer protocol information, when available, to generate the hash This allows for traffic to a particular network peer to span multiple slaves, although a single connection will not span multiple slaves.
This policy uses a very rudimentary vlan ID and source mac hash to load-balance traffic per-vlan, with failover should one leg fail.
Netkit operates on layer2.
Netkit operates on layer3, this is the default mode.
Default policy to drops packets.
Default policy to forwards packets.

# Structs

Bond implements LinkDriver for the bond driver.
BondAdInfo specifies the 802.3ad aggregation information.
BondSlave implements LinkSlaveDriver interface for bond driver.
Netkit implements LinkDriverVerifier for the netkit driver.
Veth implements LinkDriverVerifier for the veth driver.

# Type aliases

BondAdLacpActive specifies whether to send LACPDU frames periodically.
BondAdSelect specifies the 802.3ad aggregation selection logic to use.
BondArpAllTargets specifies the quantity of arp_ip_targets that must be reachable in order for the ARP monitor to consider a slave as being up.
BondArpValidate specifies whether or not ARP probes and replies should be validated in any mode that supports arp monitoring, or whether non-ARP traffic should be filtered (disregarded) for link monitoring purposes.
BondFailOverMac specifies whether active-backup mode should set all slaves to the same MAC address at enslavement (the traditional behavior), or, when enabled, perform special handling of the bond’s MAC address in accordance with the selected policy.
Option specifying the rate in which we’ll ask our link partner to transmit LACPDU packets in 802.3ad mode.
BondMode specifies one of the bonding policies.
Specifies the reselection policy for the primary slave.
BondSlaveMiiStatus MII link monitoring frequency status.
BondSlaveState specifies bond slave state.
BondXmitHashPolicy specifies the transmit hash policy to use for slave selection in balance-xor, 802.3ad, and tlb modes.
NetkitMode specifies netkit operation mode.
NetkitPolicy specifies default packet policy when no eBPF program is attached.