Home
last modified time | relevance | path

Searched refs:MDL (Results 1 – 25 of 85) sorted by relevance

1234

/netbsd-src/external/mpl/dhcp/dist/server/tests/
H A Dmdb6_unittest.c64 if (iasubopt_allocate(&iaaddr, MDL) != ISC_R_SUCCESS) { in ATF_TC_BODY()
65 atf_tc_fail("ERROR: iasubopt_allocate() %s:%d", MDL); in ATF_TC_BODY()
68 atf_tc_fail("ERROR: bad state %s:%d", MDL); in ATF_TC_BODY()
72 iaaddr->active_index, MDL); in ATF_TC_BODY()
76 iaaddr->inactive_index, MDL); in ATF_TC_BODY()
78 if (iasubopt_reference(&iaaddr_copy, iaaddr, MDL) != ISC_R_SUCCESS) { in ATF_TC_BODY()
79 atf_tc_fail("ERROR: iasubopt_reference() %s:%d", MDL); in ATF_TC_BODY()
81 if (iasubopt_dereference(&iaaddr, MDL) != ISC_R_SUCCESS) { in ATF_TC_BODY()
82 atf_tc_fail("ERROR: iasubopt_reference() %s:%d", MDL); in ATF_TC_BODY()
84 if (iasubopt_dereference(&iaaddr_copy, MDL) != ISC_R_SUCCESS) { in ATF_TC_BODY()
[all …]
H A Dhash_unittest.c91 if (!buffer_allocate(&host->client_identifier.buffer, real_len, MDL)) { in lease_set_clientid()
128 ATF_CHECK_MSG(host_allocate(&host1, MDL) == ISC_R_SUCCESS, in lease_hash_test_2hosts()
130 ATF_CHECK_MSG(host_allocate(&host2, MDL) == ISC_R_SUCCESS, in lease_hash_test_2hosts()
133 ATF_CHECK_MSG(host_new_hash(&host_uid_hash, HOST_HASH_SIZE, MDL) != 0, in lease_hash_test_2hosts()
137 clientid1_len, MDL) != 0, in lease_hash_test_2hosts()
141 clientid2_len, MDL) != 0, in lease_hash_test_2hosts()
158 clientid1_len, MDL) == 0, in lease_hash_test_2hosts()
164 clientid2_len, MDL) == 0, in lease_hash_test_2hosts()
170 host_hash_add(host_uid_hash, clientid1, clientid1_len, host1, MDL); in lease_hash_test_2hosts()
179 clientid1_len, MDL), in lease_hash_test_2hosts()
[all …]
/netbsd-src/external/mpl/dhcp/dist/server/
H A Dmdb.c87 class_reference (&collections -> classes, cd, MDL);
91 if (find_class(&c, cd->name, MDL) != ISC_R_NOTFOUND) {
92 class_dereference(&c, MDL);
100 class_reference (&c -> nic, cd, MDL);
143 executable_statement_reference (evp, esp, MDL); in find_uid_statement()
191 if (!host_new_hash(&host_uid_hash, HOST_HASH_SIZE, MDL)) { in change_host_uid()
203 MDL); in change_host_uid()
204 data_string_forget(&host->client_identifier, MDL); in change_host_uid()
212 if (!buffer_allocate(&host->client_identifier.buffer, len, MDL)) { in change_host_uid()
222 host->client_identifier.len, host, MDL); in change_host_uid()
[all …]
H A Ddhcp.c185 if (!find_lease_by_ip_addr (&lease, cip, MDL)) in dhcp()
211 &global_scope, oc, MDL)) in dhcp()
215 data_string_forget (&data, MDL); in dhcp()
218 data_string_forget (&data, MDL); in dhcp()
233 lease -> agent_options, MDL); in dhcp()
294 lease_dereference (&lease, MDL); in dhcp()
311 0, &peer_has_leases, (struct lease *)0, MDL);
393 lease_dereference (&lease, MDL);
442 binding_scope_dereference (&lease -> scope, MDL);
454 lease_dereference (&lease, MDL);
[all …]
H A Dconfpars.c58 trace_conf_stop, MDL); in parse_trace_setup()
61 trace_conf_stop, MDL); in parse_trace_setup()
157 dbuf = dmalloc (ulen + tflen + 1, MDL); in read_conf_file()
177 trace_write_packet (ttype, ulen + tflen + 1, dbuf, MDL); in read_conf_file()
191 dfree (dbuf, MDL); in read_conf_file()
215 trace_write_packet (ttype, len, data, MDL); in trace_conf_input()
288 lease_dereference (&lease, MDL); in lease_file_subparse()
475 status = shared_network_allocate (&share, MDL);
479 if (!clone_group (&share -> group, group, MDL))
482 share, MDL);
[all …]
H A Domapi.c304 if (!binding_scope_allocate (&lease -> scope, MDL)) in dhcp_lease_set_value()
373 if (!lease_copy(&lupdate, lease, MDL)) { in update_lease_flags()
391 lease_dereference(&lupdate, MDL); in update_lease_flags()
409 (int)lease -> binding_state, MDL); in dhcp_lease_get_value()
413 lease -> ip_addr.len, MDL); in dhcp_lease_get_value()
417 lease -> uid_len, MDL); in dhcp_lease_get_value()
421 (value, name, lease -> client_hostname, MDL); in dhcp_lease_get_value()
427 ((omapi_object_t *)lease -> host), MDL); in dhcp_lease_get_value()
431 lease -> subnet), MDL); in dhcp_lease_get_value()
435 lease -> pool), MDL); in dhcp_lease_get_value()
[all …]
H A Ddhcpleasequery.c98 lease_reference(retval, newest, MDL); in get_newest_lease()
205 find_subnet(&subnet, gip, MDL); in dhcpleasequery()
211 subnet_dereference(&subnet, MDL); in dhcpleasequery()
214 if (!option_state_allocate(&options, MDL)) { in dhcpleasequery()
244 options, &global_scope, oc, MDL); in dhcpleasequery()
249 option_state_dereference(&options, MDL); in dhcpleasequery()
271 find_lease_by_ip_addr(&lease, cip, MDL); in dhcpleasequery()
295 MDL)) { in dhcpleasequery()
302 find_lease_by_uid(&tmp_lease, uid.data, uid.len, MDL); in dhcpleasequery()
303 data_string_forget(&uid, MDL); in dhcpleasequery()
[all …]
H A Dddns.c76 ia_dereference(&ddns_cb->fixed6_ia, MDL); in destroy_ddns_cb()
139 ddns_cancel(old->ddns_cb, MDL); in ddns_updates()
144 ddns_cancel(old6->ddns_cb, MDL); in ddns_updates()
148 log_fatal("Impossible condition at %s:%d.", MDL); in ddns_updates()
155 ddns_cb = ddns_cb_alloc(MDL); in ddns_updates()
184 ia_reference(&ddns_cb->fixed6_ia, lease6->ia, MDL); in ddns_updates()
202 oc, MDL)) { in ddns_updates()
210 options, scope, oc, MDL)) in ddns_updates()
221 options, scope, oc, MDL)) in ddns_updates()
235 options, scope, oc, MDL)) { in ddns_updates()
[all …]
H A Dclass.c47 MDL)) in classification_setup()
53 MDL)) in classification_setup()
120 class -> submatch, MDL));
124 (const char *)data.data, data.len, MDL);
137 data_string_forget (&data, MDL);
140 class_dereference (&nc, MDL);
144 data_string_forget (&data, MDL);
152 status = class_allocate (&nc, MDL);
154 class -> group, MDL);
156 class, MDL);
[all …]
H A Dleasechain.c94 log_debug("LC empty check %s:%d", MDL); in lc_not_empty()
112 log_debug("LC Get first %s:%d", MDL); in lc_get_first_lease()
135 log_debug("LC Get next %s:%d", MDL); in lc_get_next()
306 log_debug("LC grow lease chain max was %zu, %s:%d", lc->total, MDL); in lc_grow_chain()
318 p = dmalloc(sizeof(struct lease *) * temp_size, MDL); in lc_grow_chain()
320 log_fatal("LC grow, unable to allocated memory %s:%d", MDL); in lc_grow_chain()
326 dfree(lc->list, MDL); in lc_grow_chain()
350 log_debug("LC link lcp %s:%d", MDL); in lc_link_lcp()
361 n, lc->nelem, MDL); in lc_link_lcp()
368 n, (lc->nelem-n), MDL); in lc_link_lcp()
[all …]
H A Ddhcpv6.c231 if (!buffer_allocate(&raw.buffer, cc, MDL)) { in dhcpv4o6_handler()
245 data_string_forget(&raw, MDL); in dhcpv4o6_handler()
396 data_string_forget(&server_duid, MDL); in set_server_duid()
398 data_string_copy(&server_duid, new_duid, MDL); in set_server_duid()
415 if (!option_state_allocate(&opt_state, MDL)) { in set_server_duid_from_option()
430 oc, MDL)) { in set_server_duid_from_option()
434 data_string_forget(&option_duid, MDL); in set_server_duid_from_option()
439 option_state_dereference(&opt_state, MDL); in set_server_duid_from_option()
504 generated_duid.len, MDL)) { in generate_new_server_duid()
517 generated_duid.len, MDL)) { in generate_new_server_duid()
[all …]
H A Ddhcpd.c153 result = omapi_generic_new (&listener, MDL); in omapi_listener_start()
169 omapi_object_dereference (&listener, MDL); in omapi_listener_start()
572 result = interface_allocate (&tmp, MDL); in main()
580 interfaces, MDL); in main()
581 interface_dereference (&interfaces, MDL); in main()
583 interface_reference (&interfaces, tmp, MDL); in main()
673 trace_init (set_time, MDL); in main()
675 result = trace_begin (traceoutfile, MDL); in main()
684 trace_seed_stop, MDL); in main()
808 if (!group_allocate (&root_group, MDL)) in main()
[all …]
H A Dmdb6.c296 (&tmp->on_star.on_expiry, MDL); in iasubopt_dereference()
300 (&tmp->on_star.on_commit, MDL); in iasubopt_dereference()
304 (&tmp->on_star.on_release, MDL); in iasubopt_dereference()
739 iasubopt_dereference(&iasubopt, MDL); in dereference_hash_entry()
751 iasubopt_dereference(&iasubopt, MDL); in dereference_heap_entry()
1046 data_string_copy(&ds, (struct data_string *)uid, MDL); in create_lease6()
1054 data_string_forget(&ds, MDL); in create_lease6()
1075 data_string_forget(&ds, MDL); in create_lease6()
1079 data_string_forget(&ds, MDL); in create_lease6()
1102 &tmp, sizeof(tmp), MDL) == 0)) { in create_lease6()
[all …]
H A Dbootp.c81 0, 0, (struct lease *)0, MDL);
84 host_reference(&hp, lease->host, MDL);
97 packet->raw->hlen, MDL);
101 host_reference(&host, h, MDL);
107 host_dereference(&hp, MDL);
110 host_reference(&hp, host, MDL);
111 host_dereference(&host, MDL);
158 option_state_allocate (&options, MDL);
188 &lease->scope, oc, MDL)) {
199 &lease->scope, oc, MDL)) {
[all …]
/netbsd-src/external/mpl/dhcp/dist/common/tests/
H A Dtest_alloc.c61 if (!buffer_allocate(&buf, 0, MDL)) { in ATF_TC_BODY()
64 if (!buffer_dereference(&buf, MDL)) { in ATF_TC_BODY()
75 if (!buffer_allocate(&buf, 100, MDL)) { in ATF_TC_BODY()
78 if (!buffer_dereference(&buf, MDL)) { in ATF_TC_BODY()
105 if (!buffer_allocate(&a, 100, MDL)) { in ATF_TC_BODY()
114 if (buffer_reference(NULL, a, MDL)) { in ATF_TC_BODY()
127 if (!buffer_reference(&b, a, MDL)) { in ATF_TC_BODY()
142 if (!buffer_dereference(&b, MDL)) { in ATF_TC_BODY()
145 if (!buffer_dereference(&a, MDL)) { in ATF_TC_BODY()
166 if (buffer_dereference(NULL, MDL)) { in ATF_TC_BODY()
[all …]
/netbsd-src/external/mpl/dhcp/dist/dhcpctl/
H A Ddhcpctl.c112 status = omapi_generic_new (connection, MDL); in dhcpctl_connect()
127 omapi_object_dereference (connection, MDL); in dhcpctl_connect()
137 omapi_object_dereference (connection, MDL); in dhcpctl_connect()
175 status = omapi_generic_new (connection, MDL); in dhcpctl_timed_connect()
199 omapi_object_dereference (connection, MDL); in dhcpctl_timed_connect()
335 omapi_typed_data_dereference (&tv -> value, MDL); in dhcpctl_get_value()
339 status = omapi_data_string_new (result, len, MDL); in dhcpctl_get_value()
341 omapi_typed_data_dereference (&tv -> value, MDL); in dhcpctl_get_value()
364 omapi_value_dereference (&tv, MDL); in dhcpctl_get_value()
388 omapi_data_string_dereference (&data, MDL); in dhcpctl_get_boolean()
[all …]
H A Dremote.c57 status = omapi_auth_key_new (&key, MDL); in dhcpctl_new_authenticator()
61 key -> name = dmalloc (strlen (name) + 1, MDL); in dhcpctl_new_authenticator()
63 omapi_auth_key_dereference (&key, MDL); in dhcpctl_new_authenticator()
73 sizeof (add), MDL); in dhcpctl_new_authenticator()
75 omapi_auth_key_dereference (&key, MDL); in dhcpctl_new_authenticator()
81 key -> algorithm = dmalloc (strlen (algorithm) + 1, MDL); in dhcpctl_new_authenticator()
83 omapi_auth_key_dereference (&key, MDL); in dhcpctl_new_authenticator()
89 status = omapi_data_string_new (&key -> key, secret_len, MDL); in dhcpctl_new_authenticator()
91 omapi_auth_key_dereference (&key, MDL); in dhcpctl_new_authenticator()
121 dhcpctl_remote_type, 0, MDL); in dhcpctl_new_object()
[all …]
/netbsd-src/external/mpl/dhcp/dist/omapip/
H A Dauth.c64 omapi_auth_key_hash_delete(auth_key_hash, a->name, 0, MDL); in omapi_auth_key_destroy()
67 dfree(a->name, MDL); in omapi_auth_key_destroy()
69 dfree(a->algorithm, MDL); in omapi_auth_key_destroy()
71 omapi_data_string_dereference(&a->key, MDL); in omapi_auth_key_destroy()
90 a -> name, 0, MDL); in omapi_auth_key_enter()
92 omapi_auth_key_dereference (&tk, MDL); in omapi_auth_key_enter()
97 tk -> name, 0, MDL); in omapi_auth_key_enter()
98 omapi_auth_key_dereference (&tk, MDL); in omapi_auth_key_enter()
102 KEY_HASH_SIZE, MDL)) in omapi_auth_key_enter()
122 omapi_auth_key_hash_add (auth_key_hash, a -> name, 0, a, MDL); in omapi_auth_key_enter()
[all …]
H A Ddispatch.c62 q = ((struct eventqueue *)dmalloc(sizeof(struct eventqueue), MDL)); in OMAPI_OBJECT_ALLOC()
87 dfree(q, MDL); /* Don't access q after this!*/ in unregister_eventhandler()
228 status = omapi_io_allocate (&obj, MDL); in omapi_register_io_object()
233 status = omapi_object_reference (&obj -> inner, h, MDL); in omapi_register_io_object()
235 omapi_io_dereference (&obj, MDL); in omapi_register_io_object()
240 (omapi_object_t *)obj, MDL); in omapi_register_io_object()
242 omapi_io_dereference (&obj, MDL); in omapi_register_io_object()
276 omapi_object_dereference(&h->outer, MDL); in omapi_register_io_object()
277 omapi_io_dereference (&obj, MDL); in omapi_register_io_object()
288 omapi_io_reference (&p -> next, obj, MDL); in omapi_register_io_object()
[all …]
H A Dmessage.c102 MDL); in omapi_message_set_value()
103 omapi_typed_data_reference (&m -> authenticator, value, MDL); in omapi_message_set_value()
110 omapi_object_dereference (&m -> object, MDL); in omapi_message_set_value()
111 omapi_object_reference (&m -> object, value -> u.object, MDL); in omapi_message_set_value()
118 omapi_object_dereference (&m -> notify_object, MDL); in omapi_message_set_value()
120 value -> u.object, MDL); in omapi_message_set_value()
183 MDL); in omapi_message_get_value()
187 m -> authenticator, MDL); in omapi_message_get_value()
192 name, (int)m -> authid, MDL); in omapi_message_get_value()
194 return omapi_make_int_value (value, name, (int)m -> op, MDL); in omapi_message_get_value()
[all …]
/netbsd-src/external/mpl/dhcp/dist/common/
H A Dparse.c177 s = (char *)dmalloc (len + 1, MDL);
183 dfree (s, MDL);
189 dfree (s, MDL);
221 if (!(s = (char *)dmalloc (strlen (val) + 1, MDL)))
241 if (!(s = (char *)dmalloc (len + ltid, MDL)))
253 dfree (c -> car, MDL);
254 dfree (c, MDL);
305 return make_const_data (expr, addr, len, 0, 1, MDL);
314 dfree(name, MDL);
317 dfree(name, MDL);
[all …]
H A Dtables.c1095 universes = dmalloc(i, MDL); in initialize_common_option_spaces()
1122 BYTE_NAME_HASH_SIZE, MDL) || in initialize_common_option_spaces()
1124 BYTE_CODE_HASH_SIZE, MDL)) in initialize_common_option_spaces()
1129 &dhcp_options[i], MDL); in initialize_common_option_spaces()
1132 &dhcp_options [i], MDL); in initialize_common_option_spaces()
1163 dhcp_universe.code_hash, &code, 0, MDL)) in initialize_common_option_spaces()
1164 log_fatal("Unable to find NWIP parent option (%s:%d).", MDL); in initialize_common_option_spaces()
1168 NWIP_HASH_SIZE, MDL) || in initialize_common_option_spaces()
1170 NWIP_HASH_SIZE, MDL)) in initialize_common_option_spaces()
1175 &nwip_options[i], MDL); in initialize_common_option_spaces()
[all …]
H A Doptions.c137 if (!buffer_allocate (&bp, length, MDL)) {
184 &code, 0, MDL)) {
192 option_dereference(&option, MDL);
199 buffer_dereference (&bp, MDL);
224 option_dereference(&option, MDL);
237 buffer_dereference(&bp, MDL);
239 option_dereference(&option, MDL);
248 MDL)) {
250 buffer_dereference(&bp, MDL);
252 option_dereference(&option, MDL);
[all...]
/netbsd-src/external/mpl/dhcp/dist/client/
H A Ddhc6.c204 dhcpv6_universe.code_hash, &code, 0, MDL)) in dhcpv6_client_assignments()
209 dhcpv6_universe.code_hash, &code, 0, MDL)) in dhcpv6_client_assignments()
214 &code, 0, MDL)) in dhcpv6_client_assignments()
219 &code, 0, MDL)) in dhcpv6_client_assignments()
224 &code, 0, MDL)) in dhcpv6_client_assignments()
229 &code, 0, MDL)) in dhcpv6_client_assignments()
235 &code, 0, MDL)) in dhcpv6_client_assignments()
240 &code, 0, MDL)) in dhcpv6_client_assignments()
245 &code, 0, MDL)) in dhcpv6_client_assignments()
284 log_fatal("Impossible condition at %s:%d.", MDL); in dhc6_rand()
[all …]
H A Dclparse.c85 dhcp_universe.code_hash, &code, 0, MDL); in read_client_conf()
90 dhcp_universe.code_hash, &code, 0, MDL); in read_client_conf()
95 dhcp_universe.code_hash, &code, 0, MDL); in read_client_conf()
100 dhcp_universe.code_hash, &code, 0, MDL); in read_client_conf()
105 dhcp_universe.code_hash, &code, 0, MDL); in read_client_conf()
110 dhcp_universe.code_hash, &code, 0, MDL); in read_client_conf()
115 dhcp_universe.code_hash, &code, 0, MDL); in read_client_conf()
120 dhcpv6_universe.code_hash, &code, 0, MDL); in read_client_conf()
125 dhcpv6_universe.code_hash, &code, 0, MDL); in read_client_conf()
141 &code, 0, MDL); in read_client_conf()
[all …]

1234