tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

utils.h File Reference
#include <sys/types.h>
#include <stdint.h>
#include <sys/time.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __BEGIN_DECLS
 
#define __END_DECLS
 

Functions

void err (int eval, const char *fmt,...)
 
void errx (int eval, const char *fmt,...)
 
void warn (const char *fmt,...)
 
void warnx (const char *fmt,...)
 
void localtime_r (time_t *t, struct tm *tm)
 
void gmtime_r (time_t *t, struct tm *tm)
 
int64_t get_filesize (int fd)
 
int ishexnumber (int c)
 

Macro Definition Documentation

◆ __BEGIN_DECLS

#define __BEGIN_DECLS

utils.h

To use utils.c/utils.h, be sure this is in your configure.ac file: m4_include([be13_api/be13_configure.m4])

Definition at line 34 of file utils.h.

◆ __END_DECLS

#define __END_DECLS

Definition at line 35 of file utils.h.

Function Documentation

◆ err()

void err ( int  eval,
const char *  fmt,
  ... 
)

◆ errx()

void errx ( int  eval,
const char *  fmt,
  ... 
)

Definition at line 46 of file utils.cpp.

◆ get_filesize()

int64_t get_filesize ( int  fd)

◆ gmtime_r()

void gmtime_r ( time_t *  t,
struct tm *  tm 
)

Definition at line 98 of file utils.cpp.

References gmtime_mutex.

Referenced by microsoftDateToISODate(), and unixTimeToISODate().

◆ ishexnumber()

int ishexnumber ( int  c)
inline

Definition at line 68 of file utils.h.

References c.

◆ localtime_r()

void localtime_r ( time_t *  t,
struct tm *  tm 
)

Definition at line 88 of file utils.cpp.

References localtime_mutex.

◆ warn()

void warn ( const char *  fmt,
  ... 
)

Definition at line 59 of file utils.cpp.

◆ warnx()

void warnx ( const char *  fmt,
  ... 
)

Definition at line 70 of file utils.cpp.