Lines Matching refs:ex
162 #define WILD_AF(ex) ((ex)->e_wild & 0x01)
163 #define WILD_SOCKTYPE(ex) ((ex)->e_wild & 0x02)
164 #define WILD_PROTOCOL(ex) ((ex)->e_wild & 0x04)
463 const struct explore *ex;
513 for (ex = explore; ex->e_af >= 0; ex++) {
514 if (pai->ai_family != ex->e_af)
516 if (ex->e_socktype == ANY)
518 if (ex->e_protocol == ANY)
520 if (pai->ai_socktype == ex->e_socktype
521 && pai->ai_protocol != ex->e_protocol) {
560 for (ex = explore; ex->e_af >= 0; ex++) {
564 if ((((uint64_t)1 << ex->e_af) & mask) == 0)
568 if (ex->e_af == PF_UNSPEC)
571 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex)))
573 if (!MATCH(pai->ai_socktype, ex->e_socktype, WILD_SOCKTYPE(ex)))
575 if (!MATCH(pai->ai_protocol, ex->e_protocol, WILD_PROTOCOL(ex)))
578 pai->ai_family = ex->e_af;
579 if (pai->ai_socktype == ANY && ex->e_socktype != ANY)
580 pai->ai_socktype = ex->e_socktype;
581 if (pai->ai_protocol == ANY && ex->e_protocol != ANY)
582 pai->ai_protocol = ex->e_protocol;
618 for (ex = explore; ex->e_af >= 0; ex++) {
624 if (ex->e_af != PF_UNSPEC &&
625 (((uint64_t)1 << ex->e_af) & mask) == 0)
629 if (pai->ai_family != ex->e_af)
632 if (!MATCH(pai->ai_socktype, ex->e_socktype,
633 WILD_SOCKTYPE(ex))) {
636 if (!MATCH(pai->ai_protocol, ex->e_protocol,
637 WILD_PROTOCOL(ex))) {
641 if (pai->ai_socktype == ANY && ex->e_socktype != ANY)
642 pai->ai_socktype = ex->e_socktype;
643 if (pai->ai_protocol == ANY && ex->e_protocol != ANY)
644 pai->ai_protocol = ex->e_protocol;