12 #include "rtrlib/lib/ipv4.h"
13 #include "rtrlib/lib/ipv6.h"
46 bool ip_addr_is_zero(
const struct ip_addr);
56 struct ip_addr ip_addr_get_bits(const struct
ip_addr *val,
const uint8_t from,
const uint8_t number);
68 bool ip_addr_equal(
const struct ip_addr a,
const struct ip_addr b);
int ip_str_to_addr(const char *str, struct ip_addr *ip)
Definition: ip.c:56
The ip_addr struct stores a IPv4 or IPv6 address in host byte order.
Definition: ip.h:32
int ip_addr_to_str(const struct ip_addr *ip, char *str, const unsigned int len)
Definition: ip.c:49
Struct storing an IPv4 address in host byte order.
Definition: ipv4.h:19
Struct holding an IPv6 address in host byte order.
Definition: ipv6.h:21
bool ip_str_cmp(const struct ip_addr *addr1, const char *addr2)
Definition: ip.c:66