RTRlib
 All Data Structures Functions Typedefs Enumerations Enumerator Groups Pages
ipv6.h
1 /*
2  * This file is part of RTRlib.
3  *
4  * This file is subject to the terms and conditions of the MIT license.
5  * See the file LICENSE in the top level directory for more details.
6  *
7  * Website: http://rtrlib.realmv6.org/
8 */
9 
10 #ifndef LRTR_IPV6_H
11 #define LRTR_IPV6_H
12 #include <sys/types.h>
13 #include <stdbool.h>
14 #include <stdint.h>
15 
16 
22  uint32_t addr[4];
23 };
24 
32 bool lrtr_ipv6_addr_equal(const struct lrtr_ipv6_addr *a, const struct lrtr_ipv6_addr *b);
33 
42 struct lrtr_ipv6_addr lrtr_ipv6_get_bits(const struct lrtr_ipv6_addr *val, const uint8_t first_bit, const uint8_t quantity);
43 
51 int lrtr_ipv6_addr_to_str(const struct lrtr_ipv6_addr *ip_addr, char *b, const unsigned int len);
52 
60 int lrtr_ipv6_str_to_addr(const char *a, struct lrtr_ipv6_addr *ip);
61 
69 void lrtr_ipv6_addr_to_host_byte_order(const uint32_t *src, uint32_t *dest);
70 
71 #endif
void lrtr_ipv6_addr_to_host_byte_order(const uint32_t *src, uint32_t *dest)
Definition: ipv6.c:199
Struct holding an IPv6 address in host byte order.
Definition: ipv6.h:21