From c69ca0e079da3acad7b761c3bfe7f03ba8a03f0a Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 15 Jan 2024 04:54:09 -1000 Subject: [PATCH] Add pcap_lib_version API to work with current simh version --- Pcap-VMS/pcap-vci/pcap.c | 5 +++++ Pcap-VMS/pcap-vci/pcap.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Pcap-VMS/pcap-vci/pcap.c b/Pcap-VMS/pcap-vci/pcap.c index 1cd11e3f..58135b94 100644 --- a/Pcap-VMS/pcap-vci/pcap.c +++ b/Pcap-VMS/pcap-vci/pcap.c @@ -385,3 +385,8 @@ pcap_close(pcap_t *p) pcap_freecode(&p->fcode); free(p); } + +const char *pcap_lib_version(void) +{ +return "simh Pcap VMS"; +} diff --git a/Pcap-VMS/pcap-vci/pcap.h b/Pcap-VMS/pcap-vci/pcap.h index 89b42525..c863ceff 100644 --- a/Pcap-VMS/pcap-vci/pcap.h +++ b/Pcap-VMS/pcap-vci/pcap.h @@ -208,6 +208,8 @@ void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); int pcap_findalldevs(pcap_if_t **, char *); void pcap_freealldevs(pcap_if_t *); +const char *pcap_lib_version(void); + /* XXX this guy lives in the bpf tree */ u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int); int bpf_validate(struct bpf_insn *f, int len);