37#ifndef TOTEMIP_H_DEFINED
38#define TOTEMIP_H_DEFINED
41#include <sys/socket.h>
42#include <netinet/in.h>
56#define totemip_nosigpipe(s)
59#define TOTEMIP_ADDRLEN (sizeof(struct in6_addr))
62#define TOTEM_IP_ADDRESS
90 const struct sockaddr *sa);
102 uint16_t port,
struct sockaddr_storage *saddr,
int *addrlen);
122 return (
addr->family == 0);
The totem_ip_address struct.
unsigned char addr[TOTEMIP_ADDRLEN]
struct totem_ip_address mask_addr
struct totem_ip_address ip_addr
const char * totemip_sa_print(const struct sockaddr *sa)
int totemip_sockaddr_to_totemip_convert(const struct sockaddr_storage *saddr, struct totem_ip_address *ip_addr)
int totemip_localhost_check(const struct totem_ip_address *addr)
enum totem_ip_version_enum __attribute__
int totemip_parse(struct totem_ip_address *totemip, const char *addr, enum totem_ip_version_enum ip_version)
int totemip_sa_equal(const struct totem_ip_address *totem_ip, const struct sockaddr *sa)
void totemip_freeifaddrs(struct qb_list_head *addrs)
int totemip_iface_check(struct totem_ip_address *bindnet, struct totem_ip_address *boundto, int *interface_up, int *interface_num, int mask_high_bit)
unsigned char addr[TOTEMIP_ADDRLEN]
int totemip_getifaddrs(struct qb_list_head *addrs)
int totemip_equal(const struct totem_ip_address *addr1, const struct totem_ip_address *addr2)
#define totemip_nosigpipe(s)
void totemip_copy(struct totem_ip_address *addr1, const struct totem_ip_address *addr2)
size_t totemip_udpip_header_size(int family)
int totemip_compare(const void *a, const void *b)
int totemip_totemip_to_sockaddr_convert(struct totem_ip_address *ip_addr, uint16_t port, struct sockaddr_storage *saddr, int *addrlen)
const char * totemip_print(const struct totem_ip_address *addr)
int totemip_localhost(int family, struct totem_ip_address *localhost)
int totemip_is_mcast(struct totem_ip_address *addr)