cleanpcap / mypcap.h /
ab17773 2 weeks ago
1 contributor
12 lines | 0.332kb
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef _MYPCAP_h
#define _MYPCAP_h
#include <stdio.h>

FILE *mypcap_open(const char*filename, const char *mode);
int mypcap_close(FILE *handle);
int mypcap_flush(FILE *handle);
int mypcap_dump(FILE *handle,const struct pcap_pkthdr* header,const u_char* packet);

#endif //_MYPCAP_h