Lines Matching defs:ex
163 #define WILD_AF(ex) ((ex)->e_wild & 0x01)
164 #define WILD_SOCKTYPE(ex) ((ex)->e_wild & 0x02)
165 #define WILD_PROTOCOL(ex) ((ex)->e_wild & 0x04)
383 const struct explore *ex;
435 for (ex = explore; ex->e_af >= 0; ex++) {
436 if (!MATCH_FAMILY(pai->ai_family, ex->e_af,
437 WILD_AF(ex)))
439 if (!MATCH(pai->ai_socktype, ex->e_socktype,
440 WILD_SOCKTYPE(ex)))
442 if (!MATCH(pai->ai_protocol, ex->e_protocol,
443 WILD_PROTOCOL(ex)))
450 if (ex->e_af < 0)
560 for (ex = explore; ex->e_af >= 0; ex++) {
563 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex)))
565 if (!MATCH(pai->ai_socktype, ex->e_socktype,
566 WILD_SOCKTYPE(ex)))
568 if (!MATCH(pai->ai_protocol, ex->e_protocol,
569 WILD_PROTOCOL(ex)))
573 pai->ai_family = ex->e_af;
574 if (pai->ai_socktype == ANY && ex->e_socktype != ANY)
575 pai->ai_socktype = ex->e_socktype;
576 if (pai->ai_protocol == ANY && ex->e_protocol != ANY)
577 pai->ai_protocol = ex->e_protocol;