source: lib/pcap_dump_flush.c @ 02b7297

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 02b7297 was 77285d9, checked in by Shane Alcock <salcock@…>, 15 years ago

OpenBSD compatibility fixes - adding in various #defines and #includes that are needed to compile under OpenBSD
Added a replacement pcap_next_ex function for systems that aren't running pcap-0.8 or better

  • Property mode set to 100644
File size: 334 bytes
Line 
1#include "config.h"
2
3#ifndef HAVE_PCAP_DUMP_FLUSH
4#include <stdio.h>
5#include <pcap.h>
6#if HAVE_PCAP_INT_H
7# include <pcap-int.h>
8#else
9//# error "Need pcap-int.h for declaration of pcap_t"
10#endif
11#include <string.h>
12
13int pcap_dump_flush(pcap_dumper_t *p) {
14        if (fflush((FILE *)p) == EOF)
15                return (-1);
16        else
17                return (0);
18}
19
20#endif
Note: See TracBrowser for help on using the repository browser.