Go to the documentation of this file.
20 #ifndef NET_GNRC_IPV6_NIB_FT_H
21 #define NET_GNRC_IPV6_NIB_FT_H
ipv6_addr_t dst
destination or prefix
uint16_t iface
interface to gnrc_ipv6_nib_ft_t::next_hop
Forwarding table entry view on NIB.
Data type to represent an IPv6 address.
Definitions for IPv6 addresses.
void gnrc_ipv6_nib_ft_print(const gnrc_ipv6_nib_ft_t *fte)
Prints a forwarding table entry.
uint8_t dst_len
prefix-length in bits of gnrc_ipv6_nib_ft_t::dst
uint8_t primary
!= 0 if gnrc_ipv6_nib_ft_t::dst is preferred default route
General definitions for network packets and their helper functions.
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.
int gnrc_ipv6_nib_ft_add(const ipv6_addr_t *dst, unsigned dst_len, const ipv6_addr_t *next_hop, unsigned iface, uint16_t lifetime)
Adds a new route to the forwarding table.
void gnrc_ipv6_nib_ft_del(const ipv6_addr_t *dst, unsigned dst_len)
Deletes a route from forwarding table.
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.
Type to represent parts (either headers or payload) of a packet, called snips.
ipv6_addr_t next_hop
next hop to gnrc_ipv6_nib_ft_t::dst