]> The Tcpdump Group git mirrors - libpcap/commitdiff
Deprecate pcap_compile_nopcap().
authorDenis Ovsienko <[email protected]>
Tue, 14 Jun 2022 11:42:06 +0000 (12:42 +0100)
committerDenis Ovsienko <[email protected]>
Tue, 14 Jun 2022 11:42:06 +0000 (12:42 +0100)
As discussed on the mailing list in August 2020.

pcap/pcap.h

index 7b06b413d663631032be5dbd21ba6b23bc28f266..546a3bfd38a6562b54d72f3767ccad703df023ff 100644 (file)
@@ -663,7 +663,8 @@ PCAP_API int        pcap_compile(pcap_t *, struct bpf_program *, const char *, int,
 
 PCAP_AVAILABLE_0_5
 PCAP_API int   pcap_compile_nopcap(int, int, struct bpf_program *,
-           const char *, int, bpf_u_int32);
+           const char *, int, bpf_u_int32)
+PCAP_DEPRECATED(pcap_compile_nopcap, "use pcap_open_dead(), pcap_compile() and pcap_close()");
 
 /* XXX - this took two arguments in 0.4 and 0.5 */
 PCAP_AVAILABLE_0_6