Lines Matching defs:ex
154 #define WILD_AF(ex) ((ex)->e_wild & 0x01)
155 #define WILD_SOCKTYPE(ex) ((ex)->e_wild & 0x02)
156 #define WILD_PROTOCOL(ex) ((ex)->e_wild & 0x04)
330 const struct explore *ex;
384 for (ex = explore; ex->e_af >= 0; ex++) {
385 if (pai->ai_family != ex->e_af)
387 if (ex->e_socktype == ANY)
389 if (ex->e_protocol == ANY)
391 if (pai->ai_socktype == ex->e_socktype &&
392 pai->ai_protocol != ex->e_protocol) {
449 for (ex = explore; ex->e_af >= 0; ex++) {
452 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex)))
454 if (!MATCH(pai->ai_socktype, ex->e_socktype, WILD_SOCKTYPE(ex)))
456 if (!MATCH(pai->ai_protocol, ex->e_protocol, WILD_PROTOCOL(ex)))
460 pai->ai_family = ex->e_af;
461 if (pai->ai_socktype == ANY && ex->e_socktype != ANY)
462 pai->ai_socktype = ex->e_socktype;
463 if (pai->ai_protocol == ANY && ex->e_protocol != ANY)
464 pai->ai_protocol = ex->e_protocol;
532 for (ex = explore; ex->e_af >= 0; ex++) {
536 pai->ai_family = ex->e_af;
538 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex)))
540 if (!MATCH(pai->ai_socktype, ex->e_socktype,
541 WILD_SOCKTYPE(ex))) {
544 if (!MATCH(pai->ai_protocol, ex->e_protocol,
545 WILD_PROTOCOL(ex))) {
560 pai->ai_family = ex->e_af;
561 if (pai->ai_socktype == ANY && ex->e_socktype != ANY)
562 pai->ai_socktype = ex->e_socktype;
563 if (pai->ai_protocol == ANY && ex->e_protocol != ANY)
564 pai->ai_protocol = ex->e_protocol;