Lines Matching refs:oc
104 struct option_cache *oc;
200 oc = lookup_option (&dhcp_universe, packet -> options,
202 if (!oc)
211 &global_scope, oc, MDL))
246 if ((oc = lookup_option (&dhcp_universe, packet -> options,
248 if (!oc -> expression)
249 ms_nulltp = oc->flags & OPTION_HAD_NULLS;
467 struct option_cache *oc;
477 oc = lookup_option (&dhcp_universe, packet -> options,
480 if (oc &&
484 &global_scope, oc, MDL)) {
490 oc = (struct option_cache *)0;
513 oc = lookup_option (&dhcp_universe, packet -> options,
516 if (oc &&
520 &global_scope, oc, MDL)) {
787 struct option_cache *oc;
796 if ((oc = lookup_option (&dhcp_universe, packet -> options,
804 oc = lookup_option (&dhcp_universe, packet -> options,
807 if (oc &&
811 &global_scope, oc, MDL)) {
948 struct option_cache *oc;
952 if (!(oc = lookup_option (&dhcp_universe, packet -> options,
960 &global_scope, oc, MDL))
1030 oc = lookup_option (&server_universe, options, SV_DECLINES);
1031 if (!oc ||
1035 &lease -> scope, oc, MDL)) {
1097 struct option_cache *oc;
1187 if ((oc = lookup_option(&agent_universe, packet->options,
1189 oc = lookup_option(&dhcp_universe, packet->options,
1193 if (oc && evaluate_option_cache(&d1, packet, NULL, NULL,
1195 &global_scope, oc, MDL)) {
1210 if (oc->data.len)
1211 data_string_copy(&noc->data, &oc->data, MDL);
1212 if (oc->expression)
1214 oc->expression, MDL);
1215 if (oc->option)
1216 option_reference(&(noc->option), oc->option,
1320 oc = lookup_option(&dhcp_universe, packet->options,
1323 if (oc &&
1326 &global_scope, oc, MDL)) {
1483 oc = lookup_option (&server_universe, options, SV_FILENAME);
1484 if (oc &&
1488 &global_scope, oc, MDL)) {
1503 oc = lookup_option (&server_universe, options, SV_SERVER_NAME);
1504 if (oc &&
1508 &global_scope, oc, MDL)) {
1525 if ((oc = lookup_option (&dhcp_universe, packet -> options,
1527 if (!oc->expression)
1528 nulltp = oc->flags & OPTION_HAD_NULLS;
1533 oc = (struct option_cache *)0;
1534 if (option_cache_allocate (&oc, MDL)) {
1535 if (make_const_data (&oc -> expression,
1537 option_code_hash_lookup(&oc->option,
1540 save_option (&dhcp_universe, options, oc);
1542 option_cache_dereference (&oc, MDL);
1551 oc = (struct option_cache *)0;
1552 if (option_cache_allocate (&oc, MDL)) {
1553 if (make_const_data (&oc -> expression,
1557 option_code_hash_lookup(&oc->option,
1560 save_option (&dhcp_universe, options, oc);
1562 option_cache_dereference (&oc, MDL);
1569 if ((oc = lookup_option (&server_universe, options, i)) &&
1573 &global_scope, oc, MDL)) {
1598 oc = lookup_option (&dhcp_universe, options,
1605 if (!oc)
1606 oc = lookup_option (&dhcp_universe, packet -> options,
1609 if (oc)
1613 &global_scope, oc, MDL);
1623 if ((oc =
1628 &global_scope, oc, MDL)) {
1798 struct option_cache *oc = (struct option_cache *)0;
1807 if (!option_cache_allocate (&oc, MDL)) {
1812 if (!make_const_data (&oc -> expression, &nak, sizeof nak,
1815 option_cache_dereference (&oc, MDL);
1820 option_code_hash_lookup(&oc->option, dhcp_universe.code_hash,
1822 save_option (&dhcp_universe, options, oc);
1823 option_cache_dereference (&oc, MDL);
1830 if (!option_cache_allocate (&oc, MDL)) {
1835 if (!make_const_data (&oc -> expression,
1839 option_cache_dereference (&oc, MDL);
1844 option_code_hash_lookup(&oc->option, dhcp_universe.code_hash,
1846 save_option (&dhcp_universe, options, oc);
1847 option_cache_dereference (&oc, MDL);
2038 struct option_cache *oc;
2042 oc = lookup_option(&server_universe, in_options, SV_ECHO_CLIENT_ID);
2043 if (oc && evaluate_boolean_option_cache(&ignorep, packet, lease,
2047 oc, MDL)) {
2055 oc = lookup_option(&dhcp_universe, packet->options, opcode);
2057 if (oc && evaluate_option_cache(&client_id,
2061 oc, MDL)) {
2063 oc = NULL;
2064 if (option_cache_allocate(&oc, MDL)) {
2065 if (make_const_data(&oc->expression,
2069 option_code_hash_lookup(&oc->option,
2075 out_options, oc);
2077 option_cache_dereference(&oc, MDL);
2192 struct option_cache *oc;
2293 (oc = lookup_option (&server_universe, state -> options,
2300 oc, MDL)) {
2346 (oc = lookup_option (&server_universe, state -> options,
2353 oc, MDL))) {
2398 (oc = lookup_option (&server_universe, state -> options,
2403 &lease -> scope, oc, MDL)) {
2431 oc = lookup_option (&dhcp_universe, packet -> options,
2433 if (oc &&
2437 &lease -> scope, oc, MDL)) {
2492 (oc = lookup_option (&server_universe, state -> options,
2499 &lease -> scope, oc, MDL)) {
2510 (oc = lookup_option (&server_universe, state -> options,
2517 &lease -> scope, oc, MDL)) {
2527 oc = lookup_option (&server_universe, state -> options,
2529 if (oc &&
2535 &lease -> scope, oc, MDL)) {
2617 oc = lookup_option (&server_universe, state -> options, SV_FILENAME);
2618 if (oc)
2622 &lease -> scope, oc, MDL);
2625 oc = lookup_option (&server_universe, state -> options,
2627 if (oc)
2631 &lease -> scope, oc, MDL);
2660 if ((oc = lookup_option (&server_universe, state -> options,
2666 &lease -> scope, oc, MDL)) {
2674 if ((oc = lookup_option (&dhcp_universe, packet -> options,
2680 &lease -> scope, oc, MDL);
2712 (oc = lookup_option(&server_universe,
2718 oc, MDL)) {
2735 if ((oc = lookup_option (&server_universe, state -> options,
2741 &lease -> scope, oc, MDL)) {
2758 if ((oc = lookup_option (&server_universe, state -> options,
2764 &lease -> scope, oc, MDL)) {
2777 (oc = lookup_option(&server_universe, state->options,
2781 &lease->scope, oc, MDL)) {
2980 if ((oc = lookup_option (&server_universe, state -> options,
2986 &lease -> scope, oc, MDL)) {
2993 if ((oc = lookup_option (&server_universe, state -> options,
2999 &lease -> scope, oc, MDL)) {
3015 oc = lookup_option(&server_universe, state->options,
3017 if ((oc == NULL) ||
3020 &lease->scope, oc, MDL)) {
3023 oc = lookup_option (&dhcp_universe, packet -> options,
3025 if (oc &&
3028 &lease->scope, oc, MDL)) {
3077 oc = lookup_option(&dhcp_universe, packet->options,
3079 if (oc != NULL &&
3081 NULL, <->scope, oc, MDL)) {
3100 oc = lookup_option (&server_universe, state -> options,
3102 if (!oc ||
3107 &lease -> scope, oc, MDL)) {
3119 oc = lookup_option (&dhcp_universe, packet -> options, DHO_HOST_NAME);
3120 if (oc)
3125 &global_scope, oc, MDL);
3129 if (oc && s1 &&
3137 } else if (oc && s1) {
3182 (!(oc = lookup_option (&server_universe, state -> options,
3188 < -> scope, oc, MDL))) {
3268 if ((oc = lookup_option (&server_universe, state -> options,
3273 &lease -> scope, oc, MDL))
3278 oc = lookup_option (&dhcp_universe, packet -> options,
3280 if (oc &&
3284 &lease -> scope, oc, MDL)) {
3289 oc = lookup_option (&dhcp_universe, state -> options,
3291 if (oc &&
3295 &lease -> scope, oc, MDL)) {
3305 if ((oc = lookup_option (&dhcp_universe, packet -> options,
3311 if (oc -> data.len)
3313 &oc -> data, MDL);
3314 if (oc -> expression)
3316 oc -> expression, MDL);
3317 if (oc -> option)
3318 option_reference(&(noc->option), oc->option,
3330 oc = (struct option_cache *)0;
3331 if (option_cache_allocate (&oc, MDL)) {
3332 if (make_const_data (&oc -> expression,
3334 option_code_hash_lookup(&oc->option,
3338 state -> options, oc);
3340 option_cache_dereference (&oc, MDL);
3353 oc = (struct option_cache *)0;
3354 if (option_cache_allocate (&oc, MDL)) {
3355 if (make_const_data(&oc->expression, state->expiry,
3357 option_code_hash_lookup(&oc->option,
3361 state -> options, oc);
3363 option_cache_dereference (&oc, MDL);
3371 if ((oc = lookup_option(&dhcp_universe, state->options,
3375 &lease->scope, oc, MDL)) {
3388 if ((oc = lookup_option(&dhcp_universe, state->options,
3392 &lease->scope, oc, MDL)) {
3412 if ((oc =
3418 &lease -> scope, oc, MDL)) {
3431 oc = (struct option_cache *)0;
3432 if (option_cache_allocate (&oc, MDL)) {
3433 if (make_const_data (&oc -> expression,
3437 option_code_hash_lookup(&oc->option,
3441 state -> options, oc);
3443 option_cache_dereference (&oc, MDL);
3473 oc = (struct option_cache *)0;
3474 if (option_cache_allocate (&oc, MDL)) {
3475 if (make_const_data (&oc -> expression,
3480 option_code_hash_lookup(&oc->option,
3484 state -> options, oc);
3486 option_cache_dereference (&oc, MDL);
3501 oc = lookup_option (&dhcp_universe, state -> options, i);
3502 if (!oc) {
3503 oc = (struct option_cache *)0;
3504 if (option_cache_allocate (&oc, MDL)) {
3505 if (make_const_data (&oc -> expression,
3509 option_code_hash_lookup(&oc->option,
3513 state -> options, oc);
3515 option_cache_dereference (&oc, MDL);
3523 if ((oc = lookup_option (&server_universe, state -> options, i)) &&
3527 &lease -> scope, oc, MDL)) {
3551 oc = lookup_option (&dhcp_universe, state -> options,
3554 if (!oc)
3555 oc = lookup_option (&dhcp_universe, packet -> options,
3557 if (oc)
3561 &lease -> scope, oc, MDL);
3619 struct option_cache *oc = NULL;
3632 oc = lookup_option (&server_universe, state -> options, SV_PING_CHECKS);
3633 if (oc &&
3636 &lease->scope, oc, MDL))) {
3646 oc = lookup_option (&server_universe, state->options,
3648 if (oc &&
3651 &lease->scope, oc, MDL))) {
3671 oc = lookup_option (&server_universe, state->options, SV_PING_TIMEOUT);
3672 if (oc &&
3675 &lease->scope, oc, MDL))) {
3683 oc = lookup_option (&server_universe, state->options, SV_PING_TIMEOUT_MS);
3684 if (oc &&
3687 &lease->scope, oc, MDL))) {
4193 struct option_cache *oc;
4222 oc = lookup_option (&dhcp_universe, packet -> options,
4225 if (oc &&
4230 &global_scope, oc, MDL)) {
4241 oc = lookup_option (&dhcp_universe, packet -> options,
4244 if (oc &&
4249 &global_scope, oc, MDL)) {
5214 struct option_cache *oc;
5225 if ((oc = lookup_option(&agent_universe, packet->options,
5227 oc = lookup_option(&dhcp_universe, packet->options,
5234 if (oc) {
5238 &global_scope, oc, MDL)) {
5337 struct option_cache *oc;
5350 if ((oc = lookup_option(&agent_universe, packet->options,
5352 oc = lookup_option(&dhcp_universe, packet->options,
5357 if (!oc && !packet -> raw -> giaddr.s_addr) {
5370 if (oc) {
5376 &global_scope, oc, MDL)) {
5441 struct option_cache *oc = NULL;
5451 oc = lookup_option(&dhcp_universe, options, option_num);
5452 if (oc != NULL) {
5455 &global_scope, oc, MDL)) {
5472 oc = NULL;
5485 (option_cache_allocate(&oc, MDL))) {
5486 if (make_const_data(&oc->expression,
5489 option_code_hash_lookup(&oc->option,
5492 save_option(&dhcp_universe, out_options, oc);
5494 option_cache_dereference(&oc, MDL);
5693 struct option_cache *oc = NULL;
5694 if (option_cache_allocate (&oc, MDL)) {
5695 if (make_const_data(&oc -> expression,
5700 option_code_hash_lookup(&oc->option,
5703 save_option(&dhcp_universe, options, oc);
5705 option_cache_dereference(&oc, MDL);
5779 struct option_cache* oc = NULL;
5784 if ((oc = lookup_option(&server_universe, state->options,
5788 &new_lease->scope, oc, MDL))) {