20#ifndef NET_GNRC_IPV6_NIB_FT_H
21#define NET_GNRC_IPV6_NIB_FT_H
int gnrc_ipv6_nib_ft_get(const ipv6_addr_t *dst, gnrc_pktsnip_t *pkt, gnrc_ipv6_nib_ft_t *fte)
Gets the best matching forwarding table entry to a destination.
void gnrc_ipv6_nib_ft_del(const ipv6_addr_t *dst, unsigned dst_len)
Deletes a route from forwarding table.
int gnrc_ipv6_nib_ft_add(const ipv6_addr_t *dst, unsigned dst_len, const ipv6_addr_t *next_hop, unsigned iface, uint32_t lifetime)
Adds a new route to the forwarding table.
void gnrc_ipv6_nib_ft_print(const gnrc_ipv6_nib_ft_t *fte)
Prints a forwarding table entry.
bool gnrc_ipv6_nib_ft_iter(const ipv6_addr_t *next_hop, unsigned iface, void **state, gnrc_ipv6_nib_ft_t *fte)
Iterates over all forwarding table entries in the NIB.
Definitions for IPv6 addresses.
General definitions for network packets and their helper functions.
Forwarding table entry view on NIB.
ipv6_addr_t next_hop
next hop to gnrc_ipv6_nib_ft_t::dst
ipv6_addr_t dst
destination or prefix
uint8_t dst_len
prefix-length in bits of gnrc_ipv6_nib_ft_t::dst
uint16_t iface
interface to gnrc_ipv6_nib_ft_t::next_hop
uint8_t primary
!= 0 if gnrc_ipv6_nib_ft_t::dst is preferred default route
Type to represent parts (either headers or payload) of a packet, called snips.
Data type to represent an IPv6 address.