Struct nc::types::bpf_fib_lookup_t
source · #[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_t
§dport: be16_t
§tot_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_t
§src: bpf_fib_lookup_addr_t
§dest: 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_t
§smac: [u8; 6]
ETH_ALEN
dmac: [u8; 6]
ETH_ALEN
Auto Trait Implementations§
impl Freeze for bpf_fib_lookup_t
impl RefUnwindSafe for bpf_fib_lookup_t
impl Send for bpf_fib_lookup_t
impl Sync for bpf_fib_lookup_t
impl Unpin for bpf_fib_lookup_t
impl UnwindSafe for bpf_fib_lookup_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more