1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

Add pcap_lib_version API to work with current simh version

This commit is contained in:
Mark Pizzolato 2024-01-15 04:54:09 -10:00
parent 4b4b098ab6
commit c69ca0e079
2 changed files with 7 additions and 0 deletions

View File

@ -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";
}

View File

@ -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);