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> 52 #define MSG_NOSIGNAL 0 56 #define totemip_nosigpipe(s) 59 #define TOTEMIP_ADDRLEN (sizeof(struct in6_addr)) 62 #define TOTEM_IP_ADDRESS 94 uint16_t port,
struct sockaddr_storage *saddr,
int *addrlen);
114 return (addr->
family == 0);
int totemip_localhost(int family, struct totem_ip_address *localhost)
void totemip_copy_endian_convert(struct totem_ip_address *addr1, const struct totem_ip_address *addr2)
The totem_ip_address struct.
const char * totemip_print(const struct totem_ip_address *addr)
unsigned char addr[TOTEMIP_ADDRLEN]
int totemip_parse(struct totem_ip_address *totemip, const char *addr, int family)
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)
struct totem_ip_if_address __attribute__
size_t totemip_udpip_header_size(int family)
void totemip_freeifaddrs(struct list_head *addrs)
int totemip_localhost_check(const struct totem_ip_address *addr)
int totemip_getifaddrs(struct list_head *addrs)
int totemip_totemip_to_sockaddr_convert(struct totem_ip_address *ip_addr, uint16_t port, struct sockaddr_storage *saddr, int *addrlen)
int totemip_sockaddr_to_totemip_convert(const struct sockaddr_storage *saddr, struct totem_ip_address *ip_addr)
int totemip_equal(const struct totem_ip_address *addr1, const struct totem_ip_address *addr2)