RTRlib
|
Go to the source code of this file.
Data Structures | |
struct | lrtr_ip_addr |
The lrtr_ip_addr struct stores a IPv4 or IPv6 address in host byte order. More... | |
Enumerations | |
enum | lrtr_ip_version { LRTR_IPV4 , LRTR_IPV6 } |
Version of the IP protocol. More... | |
Functions | |
int | lrtr_ip_addr_to_str (const struct lrtr_ip_addr *ip, char *str, const unsigned int len) |
Converts the passed lrtr_ip_addr struct to string representation. | |
int | lrtr_ip_str_to_addr (const char *str, struct lrtr_ip_addr *ip) |
Converts the passed IP address in string representation to an lrtr_ip_addr. | |
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. | |