Struct nc::types::bpf_fib_lookup_t[][src]

#[repr(C)]
pub struct bpf_fib_lookup_t {
Show 13 fields pub family: u8, pub l4_protocol: u8, pub sport: be16_t, pub dport: be16_t, pub tot_len: u16, pub ifindex: u32, pub inputs: bpf_fib_lookup_inputs_t, pub src: bpf_fib_lookup_addr_t, pub dest: bpf_fib_lookup_addr_t, pub h_vlan_proto: be16_t, pub h_vlan_tci: be16_t, pub smac: [u8; 6], pub dmac: [u8; 6],
}

Fields

family: u8

input: network family for lookup (AF_INET, AF_INET6) output: network family of egress nexthop

l4_protocol: u8

set if lookup is to consider L4 data - e.g., FIB rules

sport: be16_tdport: be16_ttot_len: u16

total length of packet from network header - used for MTU check

ifindex: u32

input: L3 device index for lookup output: device index from FIB lookup

inputs: bpf_fib_lookup_inputs_tsrc: bpf_fib_lookup_addr_tdest: bpf_fib_lookup_addr_t

input to bpf_fib_lookup, ipv{4,6}_dst is destination address in network header. output: bpf_fib_lookup sets to gateway address if FIB lookup returns gateway route

h_vlan_proto: be16_t

output

h_vlan_tci: be16_tsmac: [u8; 6]

ETH_ALEN

dmac: [u8; 6]

ETH_ALEN

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.