Lines Matching refs:attributes

135 #define IS_PRIVATE(d)	(((d)->attributes & DNS_DISPATCHATTR_PRIVATE) != 0)
235 unsigned int attributes;
321 unsigned int attributes,
1190 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) {
1361 rev->attributes = ev->attributes;
1594 if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) != 0)
1603 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0 &&
2258 unsigned int attributes, unsigned int mask,
2267 attributes &= ~(DNS_DISPATCHATTR_PRIVATE|DNS_DISPATCHATTR_EXCLUSIVE);
2274 && ATTRMATCH(disp->attributes, attributes, mask)
2401 disp->attributes = 0;
2505 unsigned int attributes, dns_dispatch_t **dispp)
2515 REQUIRE((attributes & DNS_DISPATCHATTR_TCP) != 0);
2516 REQUIRE((attributes & DNS_DISPATCHATTR_UDP) == 0);
2518 attributes |= DNS_DISPATCHATTR_PRIVATE; /* XXXMLG */
2561 disp->attributes = attributes;
2597 unsigned int attributes, unsigned int mask,
2612 REQUIRE((attributes & DNS_DISPATCHATTR_TCP) == 0);
2621 if ((attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) {
2629 result = dispatch_find(mgr, localaddr, attributes, mask, &disp);
2636 if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) == 0 &&
2637 (attributes & DNS_DISPATCHATTR_NOLISTEN) != 0)
2639 disp->attributes |= DNS_DISPATCHATTR_NOLISTEN;
2658 maxrequests, attributes, &disp);
2788 unsigned int attributes,
2804 if ((attributes & DNS_DISPATCHATTR_EXCLUSIVE) == 0) {
2845 if ((attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0)
2869 attributes &= ~DNS_DISPATCHATTR_TCP;
2870 attributes |= DNS_DISPATCHATTR_UDP;
2871 disp->attributes = attributes;
2977 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0)
2992 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0 &&
3034 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0) {
3105 if (((disp->attributes & DNS_DISPATCHATTR_UDP) != 0) ||
3106 ((disp->attributes & DNS_DISPATCHATTR_CONNECTED) != 0)) {
3134 if ((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) != 0)
3146 REQUIRE((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) == 0);
3160 disp->attributes |= DNS_DISPATCHATTR_CONNECTED;
3386 return (disp->attributes);
3391 unsigned int attributes, unsigned int mask)
3395 REQUIRE((attributes & DNS_DISPATCHATTR_EXCLUSIVE) == 0);
3397 REQUIRE((disp->attributes & DNS_DISPATCHATTR_EXCLUSIVE) == 0 ||
3398 (attributes & DNS_DISPATCHATTR_NOLISTEN) == 0);
3401 * Should check for valid attributes here!
3407 if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) != 0 &&
3408 (attributes & DNS_DISPATCHATTR_NOLISTEN) == 0) {
3409 disp->attributes &= ~DNS_DISPATCHATTR_NOLISTEN;
3411 } else if ((disp->attributes & DNS_DISPATCHATTR_NOLISTEN)
3413 (attributes & DNS_DISPATCHATTR_NOLISTEN) != 0) {
3414 disp->attributes |= DNS_DISPATCHATTR_NOLISTEN;
3421 disp->attributes &= ~mask;
3422 disp->attributes |= (attributes & mask);
3432 REQUIRE((disp->attributes & DNS_DISPATCHATTR_NOLISTEN) != 0);
3458 newsevent->attributes = sevent->attributes;