10#ifndef LRTR_IP_PRIVATE_H
11#define LRTR_IP_PRIVATE_H
bool lrtr_ip_addr_equal(const struct lrtr_ip_addr a, const struct lrtr_ip_addr b)
Checks if two lrtr_ip_addr structs are equal.
bool lrtr_ip_str_cmp(const struct lrtr_ip_addr *addr1, const char *addr2)
Compares addr1 in the lrtr_ip_addr struct with addr2 in string representation.
bool lrtr_ip_addr_is_zero(const struct lrtr_ip_addr)
Detects if the lrtr_ip_addr only contains 0 bits.
struct lrtr_ip_addr lrtr_ip_addr_get_bits(const struct lrtr_ip_addr *val, const uint8_t from, const uint8_t number)
Extracts number bits from the passed lrtr_ip_addr, starting at bit number from.
The lrtr_ip_addr struct stores a IPv4 or IPv6 address in host byte order.
Definition ip.h:38