1PCAP_DUMP_FTELL(3PCAP)                                  PCAP_DUMP_FTELL(3PCAP)
2
3
4

NAME

6       pcap_dump_ftell,  pcap_dump_ftell64 - get the current file offset for a
7       savefile being written
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       long pcap_dump_ftell(pcap_dumper_t *p);
13       int64_t pcap_dump_ftell64(pcap_dumper_t *p);
14

DESCRIPTION

16       pcap_dump_ftell() returns the current file  position  for  the  ``save‐
17       file'',  representing  the  number of bytes written by pcap_dump_open()
18       and pcap_dump().  -1 is returned on error.  If the current  file  posi‐
19       tion  does  not fit in a long, it will be truncated; this can happen on
20       32-bit UNIX-like systems  with  large  file  support  and  on  Windows.
21       pcap_dump_ftell64()  returns the current file position in a int64_t, so
22       if file offsets that don't fit in a long but that fit in a int64_t  are
23       supported,  this will return the file offset without truncation.  -1 is
24       returned on error.
25

SEE ALSO

27       pcap(3PCAP), pcap_dump_open(3PCAP), pcap_dump(3PCAP)
28
29
30
31                               29 September 2017        PCAP_DUMP_FTELL(3PCAP)
Impressum