Lines Matching refs:oid_data_arg
147 PACKET_OID_DATA *oid_data_arg; in oid_get_request() local
156 oid_data_arg = malloc(sizeof (PACKET_OID_DATA) + *lenp); in oid_get_request()
157 if (oid_data_arg == NULL) { in oid_get_request()
166 oid_data_arg->Oid = oid; in oid_get_request()
167 oid_data_arg->Length = (ULONG)(*lenp); /* XXX - check for ridiculously large value? */ in oid_get_request()
168 if (!PacketRequest(adapter, FALSE, oid_data_arg)) { in oid_get_request()
174 free(oid_data_arg); in oid_get_request()
181 *lenp = oid_data_arg->Length; in oid_get_request()
186 memcpy(data, oid_data_arg->Data, *lenp); in oid_get_request()
187 free(oid_data_arg); in oid_get_request()
349 PACKET_OID_DATA *oid_data_arg; in pcap_oid_set_request_npf() local
359 oid_data_arg = malloc(sizeof (PACKET_OID_DATA) + *lenp); in pcap_oid_set_request_npf()
360 if (oid_data_arg == NULL) { in pcap_oid_set_request_npf()
366 oid_data_arg->Oid = oid; in pcap_oid_set_request_npf()
367 oid_data_arg->Length = (ULONG)(*lenp); /* XXX - check for ridiculously large value? */ in pcap_oid_set_request_npf()
368 memcpy(oid_data_arg->Data, data, *lenp); in pcap_oid_set_request_npf()
369 if (!PacketRequest(pw->adapter, TRUE, oid_data_arg)) { in pcap_oid_set_request_npf()
373 free(oid_data_arg); in pcap_oid_set_request_npf()
380 *lenp = oid_data_arg->Length; in pcap_oid_set_request_npf()
385 free(oid_data_arg); in pcap_oid_set_request_npf()