PCAP\_DUMP\_FLUSH(3PCAP) PCAP\_DUMP\_FLUSH(3PCAP)

# [NAME](#NAME)

pcap\_dump\_flush - flush to a savefile packets dumped

# [SYNOPSIS](#SYNOPSIS)

```
#include <pcap/pcap.h>
```

```
int pcap_dump_flush(pcap_dumper_t *p);
```

# [DESCRIPTION](#DESCRIPTION)

**pcap\_dump\_flush**() flushes the output buffer to the \`\`savefile'', so that any packets written with [**pcap\_dump**(3PCAP)](/man/os/libpcap/pcap_dump.3PCAP) but not yet written to the \`\`savefile'' will be written.

# [RETURN VALUE](#RETURN_VALUE)

**pcap\_dump\_flush**() returns **0** on success and **PCAP\_ERROR** on failure.

# [SEE ALSO](#SEE_ALSO)

[**pcap**(3PCAP)](/man/os/libpcap/pcap.3PCAP), [**pcap\_dump\_open**(3PCAP)](/man/os/libpcap/pcap_dump_open.3PCAP)

25 July 2018

---

Document: pcap_dump_flush(3pcap) from libpcap 1.11.0-r0 (Chainguard OS)
Source: https://github.com/the-tcpdump-group/libpcap.git
