X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/7d97bb23a7ecd40bde41385236b9dd5db167afc4..d6fd84ee114bf038587a860236176bdc7cf397a3:/pcap-int.h diff --git a/pcap-int.h b/pcap-int.h index c46c5a51..9a46019c 100644 --- a/pcap-int.h +++ b/pcap-int.h @@ -474,11 +474,15 @@ int add_addr_to_if(pcap_if_list_t *, const char *, bpf_u_int32, * "pcap_open_offline_common()" allocates and fills in a pcap_t, for use * by pcap_open_offline routines. * + * "pcap_adjust_snapshot()" adjusts the snapshot to be non-zero and + * fit within an int. + * * "sf_cleanup()" closes the file handle associated with a pcap_t, if * appropriate, and frees all data common to all modules for handling * savefile types. */ pcap_t *pcap_open_offline_common(char *ebuf, size_t size); +bpf_u_int32 pcap_adjust_snapshot(bpf_u_int32 linktype, bpf_u_int32 snaplen); void sf_cleanup(pcap_t *p); /*