10 #ifndef LRTR_IP_PUBLIC_H
11 #define LRTR_IP_PUBLIC_H
13 #include "rtrlib/lib/ipv4.h"
14 #include "rtrlib/lib/ipv6.h"
lrtr_ip_version
Version of the IP protocol.
Definition: ip.h:25
@ LRTR_IPV6
Definition: ip.h:30
int lrtr_ip_str_to_addr(const char *str, struct lrtr_ip_addr *ip)
bool lrtr_ip_str_cmp(const struct lrtr_ip_addr *addr1, const char *addr2)
Struct holding an IPv6 address in host byte order.
Definition: ipv6.h:18
@ LRTR_IPV4
Definition: ip.h:27
The lrtr_ip_addr struct stores a IPv4 or IPv6 address in host byte order.
Definition: ip.h:38
int lrtr_ip_addr_to_str(const struct lrtr_ip_addr *ip, char *str, const unsigned int len)
Struct storing an IPv4 address in host byte order.
Definition: ipv4.h:19
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.