10#ifndef LRTR_IPV4_PRIVATE_H
11#define LRTR_IPV4_PRIVATE_H
target_byte_order
Target byte order for conversion.
Definition convert_byte_order_private.h:18
void lrtr_ipv4_addr_convert_byte_order(const uint32_t src, uint32_t *dest, const enum target_byte_order tbo)
[{
int lrtr_ipv4_addr_to_str(const struct lrtr_ipv4_addr *ip, char *str, const unsigned int len)
Converts an ipv4_addr struct to its string representation.
int lrtr_ipv4_str_to_addr(const char *str, struct lrtr_ipv4_addr *ip)
Converts ab IPv4 address from string to ipv4_addr struct.
struct lrtr_ipv4_addr lrtr_ipv4_get_bits(const struct lrtr_ipv4_addr *val, const uint8_t from, const uint8_t number)
Extracts number bits from the passed ipv4_addr,.
bool lrtr_ipv4_addr_equal(const struct lrtr_ipv4_addr *a, const struct lrtr_ipv4_addr *b)
Compares two ipv4_addr structs.
uint32_t len
Definition rtr_pdus.h:4
Struct storing an IPv4 address in host byte order.
Definition ipv4.h:19