aboutsummaryrefslogtreecommitdiff
path: root/pcap-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-04 11:01:56 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-04 11:01:56 -0700
commit94cabd50c3010fa74f79296a4df561d52e68d800 (patch)
tree771bbc3f7fdef5f781994b403d12c7887ebd4b71 /pcap-int.h
parente6635880c81d45e86d2ddb961c20a8e47e7ab7ee (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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-int.h b/pcap-int.h
index 30a8f1b9..1f5c1528 100644
--- a/pcap-int.h
+++ b/pcap-int.h
@@ -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);