tcp_addr
union tcp_addr *p = arg;
union tcp_addr *ips, size_t ips_nr,
union tcp_addr *p;
p = (union tcp_addr *)&ips[0];
static void gen_test_ips(union tcp_addr *ips, size_t ips_nr, bool use_rand)
p = (union tcp_addr *)&ips[rand() % ips_nr];
p = (union tcp_addr *)&ips[i % ips_nr];
union tcp_addr net = {};
static void bench_connect_srv(int lsk, union tcp_addr *ips, size_t ips_nr)
test_ips = malloc(nr_keys[i] * sizeof(union tcp_addr));
static void client_addr_setup(int sk, union tcp_addr taddr)
union tcp_addr *ips, size_t ips_nr, bool rand_order)
union tcp_addr *p;
p = (union tcp_addr *)&ips[0];
p = (union tcp_addr *)&ips[rand() % ips_nr];
p = (union tcp_addr *)&ips[i % ips_nr];
if (!memcmp(&ips[i], &ips[j], sizeof(union tcp_addr))) {
static void test_add_routes(union tcp_addr *ips, size_t ips_nr)
union tcp_addr *p = (union tcp_addr *)&ips[i];
static void server_apply_keys(int lsk, union tcp_addr *ips, size_t ips_nr)
union tcp_addr *p = (union tcp_addr *)&ips[i];
static union tcp_addr *test_ips;
union tcp_addr in_addr, uint8_t prefix,
union tcp_addr wrong_addr, network_addr;
const char *pwd, union tcp_addr addr, uint8_t prefix,
union tcp_addr wrong_addr, network_addr, addr_any = {};
union tcp_addr addr, uint8_t prefix,
union tcp_addr wrong_addr;
union tcp_addr in_addr, uint8_t prefix,
union tcp_addr in_addr, uint8_t prefix,
union tcp_addr in_addr, uint8_t prefix,
static int prepare_sk(union tcp_addr *addr, uint8_t sndid, uint8_t rcvid)
union tcp_addr addr, uint8_t vrf,
static int prepare_lsk(union tcp_addr *addr, uint8_t sndid, uint8_t rcvid)
union tcp_addr *addr = &wrong_addr;
union tcp_addr addr1, union tcp_addr addr2,
union tcp_addr taddr1, taddr2;
static inline union tcp_addr gen_tcp_addr(union tcp_addr net, size_t n)
union tcp_addr ret = net;
const union tcp_addr *src,
extern __thread union tcp_addr this_ip_addr;
extern __thread union tcp_addr this_ip_dest;
union tcp_addr addr, uint8_t prefix);
union tcp_addr src, union tcp_addr dst);
union tcp_addr src, union tcp_addr dst,
static inline int test_listen_socket(const union tcp_addr taddr,
static inline int _test_connect_socket(int sk, const union tcp_addr taddr,
static inline int test_connect_socket(int sk, const union tcp_addr taddr,
static inline int test_set_md5(int sk, const union tcp_addr in_addr,
const char *alg, union tcp_addr taddr,
union tcp_addr in_addr, uint8_t prefix, uint8_t vrf,
union tcp_addr in_addr, uint8_t prefix,
union tcp_addr in_addr, uint8_t prefix,
static inline int test_skpair_connect_poll(int sk, const union tcp_addr taddr,
const union tcp_addr daddr,
union tcp_addr in_addr, uint8_t prefix,
union tcp_addr src, union tcp_addr dst,
union tcp_addr src, union tcp_addr dst,
union tcp_addr src, union tcp_addr dst,
union tcp_addr src, union tcp_addr dst,
union tcp_addr src, union tcp_addr dst,
union tcp_addr src;
union tcp_addr dst;
union tcp_addr *dst, unsigned int *port)
union tcp_addr src;
union tcp_addr dst;
union tcp_addr src, union tcp_addr dst,
union tcp_addr addr_any = {};
int family, union tcp_addr addr, uint8_t prefix)
union tcp_addr addr, uint8_t prefix)
union tcp_addr src, union tcp_addr dst, uint8_t vrf)
union tcp_addr src, union tcp_addr dst, uint8_t vrf)
union tcp_addr src, union tcp_addr dst)
union tcp_addr addr, union tcp_addr dest)
__thread union tcp_addr this_ip_addr;
__thread union tcp_addr this_ip_dest;
union tcp_addr my_ip;
union tcp_addr dest_ip;
union tcp_addr addr1, union tcp_addr addr2,
static union tcp_addr local_addr;
const union tcp_addr daddr, unsigned int dport,
union tcp_addr net = {};
union tcp_addr key_peer;
static union tcp_addr tcp_md5_client;
union tcp_addr network_dup;
static union tcp_addr client2;
static union tcp_addr client3;
union tcp_addr addr_any = {};
union tcp_addr addr_any = {};
static int client_bind(int sk, union tcp_addr bind_addr)
union tcp_addr *md5_addr, uint8_t md5_prefix,
union tcp_addr *ao_addr, uint8_t ao_prefix,
fault_t inj, int needs_tcp_md5, union tcp_addr *bind_addr)
static int try_add_key_vrf(int sk, union tcp_addr in_addr, uint8_t prefix,
union tcp_addr md5_addr, uint8_t md5_prefix, int md5_vrf,
union tcp_addr ao_addr, uint8_t ao_prefix,
union tcp_addr *md5_addr, uint8_t md5_prefix,
union tcp_addr *ao_addr, uint8_t ao_prefix,
union tcp_addr md5_addr, uint8_t md5_prefix,
union tcp_addr ao_addr, uint8_t ao_prefix,
union tcp_addr md5_addr, uint8_t md5_prefix,
union tcp_addr ao_addr, uint8_t ao_prefix,
static void client_add_ip(union tcp_addr *client, const char *ip)
union tcp_addr addr_any = {};