Lines Matching refs:ex
166 #define WILD_AF(ex) ((ex)->e_wild & 0x01) argument
167 #define WILD_SOCKTYPE(ex) ((ex)->e_wild & 0x02) argument
168 #define WILD_PROTOCOL(ex) ((ex)->e_wild & 0x04) argument
591 const struct explore *ex; in android_getaddrinfofornetcontext() local
636 for (ex = explore; ex->e_af >= 0; ex++) { in android_getaddrinfofornetcontext()
637 if (pai->ai_family != ex->e_af) in android_getaddrinfofornetcontext()
639 if (ex->e_socktype == ANY) in android_getaddrinfofornetcontext()
641 if (ex->e_protocol == ANY) in android_getaddrinfofornetcontext()
643 if (pai->ai_socktype == ex->e_socktype in android_getaddrinfofornetcontext()
644 && pai->ai_protocol != ex->e_protocol) { in android_getaddrinfofornetcontext()
680 for (ex = explore; ex->e_af >= 0; ex++) { in android_getaddrinfofornetcontext()
684 if (ex->e_af == PF_UNSPEC) in android_getaddrinfofornetcontext()
687 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex))) in android_getaddrinfofornetcontext()
689 if (!MATCH(pai->ai_socktype, ex->e_socktype, WILD_SOCKTYPE(ex))) in android_getaddrinfofornetcontext()
691 if (!MATCH(pai->ai_protocol, ex->e_protocol, WILD_PROTOCOL(ex))) in android_getaddrinfofornetcontext()
695 pai->ai_family = ex->e_af; in android_getaddrinfofornetcontext()
696 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) in android_getaddrinfofornetcontext()
697 pai->ai_socktype = ex->e_socktype; in android_getaddrinfofornetcontext()
698 if (pai->ai_protocol == ANY && ex->e_protocol != ANY) in android_getaddrinfofornetcontext()
699 pai->ai_protocol = ex->e_protocol; in android_getaddrinfofornetcontext()
740 for (ex = explore; ex->e_af >= 0; ex++) { in android_getaddrinfofornetcontext()
744 if (pai->ai_family != ex->e_af) in android_getaddrinfofornetcontext()
747 if (!MATCH(pai->ai_socktype, ex->e_socktype, in android_getaddrinfofornetcontext()
748 WILD_SOCKTYPE(ex))) { in android_getaddrinfofornetcontext()
751 if (!MATCH(pai->ai_protocol, ex->e_protocol, in android_getaddrinfofornetcontext()
752 WILD_PROTOCOL(ex))) { in android_getaddrinfofornetcontext()
756 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) in android_getaddrinfofornetcontext()
757 pai->ai_socktype = ex->e_socktype; in android_getaddrinfofornetcontext()
758 if (pai->ai_protocol == ANY && ex->e_protocol != ANY) in android_getaddrinfofornetcontext()
759 pai->ai_protocol = ex->e_protocol; in android_getaddrinfofornetcontext()