Lines Matching refs:oid_data_arg
203 PACKET_OID_DATA *oid_data_arg; in oid_get_request() local
212 oid_data_arg = malloc(sizeof (PACKET_OID_DATA) + *lenp); in oid_get_request()
213 if (oid_data_arg == NULL) { in oid_get_request()
222 oid_data_arg->Oid = oid; in oid_get_request()
223 oid_data_arg->Length = (ULONG)(*lenp); /* XXX - check for ridiculously large value? */ in oid_get_request()
224 if (!PacketRequest(adapter, FALSE, oid_data_arg)) { in oid_get_request()
227 free(oid_data_arg); in oid_get_request()
234 *lenp = oid_data_arg->Length; in oid_get_request()
239 memcpy(data, oid_data_arg->Data, *lenp); in oid_get_request()
240 free(oid_data_arg); in oid_get_request()
403 PACKET_OID_DATA *oid_data_arg; in pcap_oid_set_request_npf() local
412 oid_data_arg = malloc(sizeof (PACKET_OID_DATA) + *lenp); in pcap_oid_set_request_npf()
413 if (oid_data_arg == NULL) { in pcap_oid_set_request_npf()
419 oid_data_arg->Oid = oid; in pcap_oid_set_request_npf()
420 oid_data_arg->Length = (ULONG)(*lenp); /* XXX - check for ridiculously large value? */ in pcap_oid_set_request_npf()
421 memcpy(oid_data_arg->Data, data, *lenp); in pcap_oid_set_request_npf()
422 if (!PacketRequest(pw->adapter, TRUE, oid_data_arg)) { in pcap_oid_set_request_npf()
425 free(oid_data_arg); in pcap_oid_set_request_npf()
432 *lenp = oid_data_arg->Length; in pcap_oid_set_request_npf()
437 free(oid_data_arg); in pcap_oid_set_request_npf()