diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-04 11:01:56 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-04 11:01:56 -0700 |
commit | 94cabd50c3010fa74f79296a4df561d52e68d800 (patch) | |
tree | 771bbc3f7fdef5f781994b403d12c7887ebd4b71 /pcap-int.h | |
parent | e6635880c81d45e86d2ddb961c20a8e47e7ab7ee (diff) |
Pass a pointer to the length to the OID get/set routines.
An OID get request may return less data than requested; pass a pointer
to the length to pcap_oid_get_request(), so that it can supply the
amount of data actually supplied. It also appears that a set request
may copy less data than supplied, so do the same for
pcap_oid_set_request().
Diffstat (limited to 'pcap-int.h')
-rw-r--r-- | pcap-int.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -134,8 +134,8 @@ typedef int (*setbuff_op_t)(pcap_t *, int); typedef int (*setmode_op_t)(pcap_t *, int); typedef int (*setmintocopy_op_t)(pcap_t *, int); typedef HANDLE (*getevent_op_t)(pcap_t *); -typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t); -typedef int (*oid_set_request_op_t)(pcap_t *, bpf_u_int32, const void *, size_t); +typedef int (*oid_get_request_op_t)(pcap_t *, bpf_u_int32, void *, size_t *); +typedef int (*oid_set_request_op_t)(pcap_t *, bpf_u_int32, const void *, size_t *); typedef u_int (*sendqueue_transmit_op_t)(pcap_t *, pcap_send_queue *, int); typedef int (*setuserbuffer_op_t)(pcap_t *, int); typedef int (*live_dump_op_t)(pcap_t *, char *, int, int); |