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