summaryrefslogtreecommitdiff
path: root/pcap/pcap.h
diff options
context:
space:
mode:
Diffstat (limited to 'pcap/pcap.h')
-rw-r--r--pcap/pcap.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/pcap/pcap.h b/pcap/pcap.h
index 39b12d25..6c65dc30 100644
--- a/pcap/pcap.h
+++ b/pcap/pcap.h
@@ -1042,6 +1042,23 @@ PCAP_API int pcap_remoteact_list(char *hostlist, char sep, int size,
PCAP_API int pcap_remoteact_close(const char *host, char *errbuf);
PCAP_API void pcap_remoteact_cleanup(void);
+enum pcap_option_name { /* never renumber this */
+ PON_TSTAMP_PRECISION = 1, /* int */
+ PON_IO_READ_PLUGIN = 2, /* char * */
+ PON_IO_WRITE_PLUGIN = 3, /* char * */
+};
+typedef struct pcap_options pcap_options;
+PCAP_API pcap_options *pcap_alloc_option(void);
+PCAP_API void pcap_free_option(pcap_options *po);
+PCAP_API int pcap_set_option_string(pcap_options *po,
+ enum pcap_option_name pon, const char *value);
+PCAP_API int pcap_set_option_int(pcap_options *po,
+ enum pcap_option_name pon, const int value);
+PCAP_API const char *pcap_get_option_string(pcap_options *po, enum pcap_option_name pon);
+PCAP_API int pcap_get_option_int(pcap_options *po, enum pcap_option_name pon);
+
+
+
#ifdef __cplusplus
}
#endif