Lines Matching refs:attributes

109 #define IS_PRIVATE(d) (((d)->attributes & DNS_DISPATCHATTR_PRIVATE) != 0)
213 unsigned int attributes; member
314 unsigned int maxrequests, unsigned int attributes,
963 ev->attributes = 0; in allocate_sevent()
1099 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) { in udp_recv()
1276 rev->attributes = ev->attributes; in udp_recv()
1511 if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) != 0) { in startrecv()
1519 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0 && in startrecv()
2077 unsigned int attributes, unsigned int mask, in dispatch_find() argument
2085 attributes &= ~(DNS_DISPATCHATTR_PRIVATE | DNS_DISPATCHATTR_EXCLUSIVE); in dispatch_find()
2092 ATTRMATCH(disp->attributes, attributes, mask) && in dispatch_find()
2195 disp->attributes = 0; in dispatch_allocate()
2296 unsigned int attributes, dns_dispatch_t **dispp) { in dns_dispatch_createtcp() argument
2305 REQUIRE((attributes & DNS_DISPATCHATTR_TCP) != 0); in dns_dispatch_createtcp()
2306 REQUIRE((attributes & DNS_DISPATCHATTR_UDP) == 0); in dns_dispatch_createtcp()
2309 attributes |= DNS_DISPATCHATTR_PRIVATE; /* XXXMLG */ in dns_dispatch_createtcp()
2352 disp->attributes = attributes; in dns_dispatch_createtcp()
2403 unsigned int attributes, mask; in dns_dispatch_gettcp() local
2411 attributes = DNS_DISPATCHATTR_TCP | DNS_DISPATCHATTR_CONNECTED; in dns_dispatch_gettcp()
2420 ATTRMATCH(disp->attributes, attributes, mask) && in dns_dispatch_gettcp()
2453 attributes = DNS_DISPATCHATTR_TCP; in dns_dispatch_gettcp()
2459 ATTRMATCH(disp->attributes, attributes, mask) && in dns_dispatch_gettcp()
2481 unsigned int increment, unsigned int attributes, in dns_dispatch_getudp_dup() argument
2496 REQUIRE((attributes & DNS_DISPATCHATTR_TCP) == 0); in dns_dispatch_getudp_dup()
2506 if ((attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) { in dns_dispatch_getudp_dup()
2515 result = dispatch_find(mgr, localaddr, attributes, mask, &disp); in dns_dispatch_getudp_dup()
2523 if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) == in dns_dispatch_getudp_dup()
2525 (attributes & DNS_DISPATCHATTR_NOLISTEN) != 0) in dns_dispatch_getudp_dup()
2527 disp->attributes |= DNS_DISPATCHATTR_NOLISTEN; in dns_dispatch_getudp_dup()
2549 mgr, sockmgr, taskmgr, localaddr, maxrequests, attributes, in dns_dispatch_getudp_dup()
2568 unsigned int increment, unsigned int attributes, in dns_dispatch_getudp() argument
2572 buckets, increment, attributes, mask, in dns_dispatch_getudp()
2698 unsigned int maxrequests, unsigned int attributes, in dispatch_createudp() argument
2704 bool duponly = ((attributes & DNS_DISPATCHATTR_CANREUSE) == 0); in dispatch_createudp()
2707 attributes &= ~DNS_DISPATCHATTR_CANREUSE; in dispatch_createudp()
2719 if ((attributes & DNS_DISPATCHATTR_EXCLUSIVE) == 0) { in dispatch_createudp()
2767 if ((attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) { in dispatch_createudp()
2793 attributes &= ~DNS_DISPATCHATTR_TCP; in dispatch_createudp()
2794 attributes |= DNS_DISPATCHATTR_UDP; in dispatch_createudp()
2795 disp->attributes = attributes; in dispatch_createudp()
2903 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) { in dns_dispatch_addresponse()
2919 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0 && in dns_dispatch_addresponse()
2961 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) { in dns_dispatch_addresponse()
2994 if ((disp->attributes & DNS_DISPATCHATTR_FIXEDID) != 0) { in dns_dispatch_addresponse()
3040 if (((disp->attributes & DNS_DISPATCHATTR_UDP) != 0) || in dns_dispatch_addresponse()
3041 ((disp->attributes & DNS_DISPATCHATTR_CONNECTED) != 0)) in dns_dispatch_addresponse()
3078 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) { in dns_dispatch_addresponse()
3092 if ((disp->attributes & DNS_DISPATCHATTR_CONNECTED) == 0) { in dns_dispatch_starttcp()
3093 disp->attributes |= DNS_DISPATCHATTR_CONNECTED; in dns_dispatch_starttcp()
3376 return (disp->attributes); in dns_dispatch_getattributes()
3380 dns_dispatch_changeattributes(dns_dispatch_t *disp, unsigned int attributes, in dns_dispatch_changeattributes() argument
3384 REQUIRE((attributes & DNS_DISPATCHATTR_EXCLUSIVE) == 0); in dns_dispatch_changeattributes()
3386 REQUIRE((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) == 0 || in dns_dispatch_changeattributes()
3387 (attributes & DNS_DISPATCHATTR_NOLISTEN) == 0); in dns_dispatch_changeattributes()
3396 if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) != 0 && in dns_dispatch_changeattributes()
3397 (attributes & DNS_DISPATCHATTR_NOLISTEN) == 0) in dns_dispatch_changeattributes()
3399 disp->attributes &= ~DNS_DISPATCHATTR_NOLISTEN; in dns_dispatch_changeattributes()
3401 } else if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) == in dns_dispatch_changeattributes()
3403 (attributes & DNS_DISPATCHATTR_NOLISTEN) != 0) in dns_dispatch_changeattributes()
3405 disp->attributes |= DNS_DISPATCHATTR_NOLISTEN; in dns_dispatch_changeattributes()
3413 disp->attributes &= ~mask; in dns_dispatch_changeattributes()
3414 disp->attributes |= (attributes & mask); in dns_dispatch_changeattributes()
3426 if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) == 0) { in dns_dispatch_importrecv()
3450 newsevent->attributes = sevent->attributes; in dns_dispatch_importrecv()
3485 REQUIRE((source->attributes & DNS_DISPATCHATTR_UDP) != 0); in dns_dispatchset_create()
3509 source->maxrequests, source->attributes, in dns_dispatchset_create()