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)  

sbuf.cpp File Reference
#include "config.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include "bulk_extractor_i.h"
#include "unicode_escape.h"
Include dependency graph for sbuf.cpp:

Go to the source code of this file.

Macros

#define O_BINARY   0
 
#define NSRL_HEXBUF_UPPERCASE   0x01
 
#define NSRL_HEXBUF_SPACE2   0x02
 
#define NSRL_HEXBUF_SPACE4   0x04
 

Functions

static std::string hexch (unsigned char ch)
 
static const char * hexbuf (char *dst, int dst_len, const unsigned char *bin, int bytes, int flag)
 
std::ostream & operator<< (std::ostream &os, const sbuf_t &t)
 

Variables

static int hexcharvals [256] = {-1,0}
 

Macro Definition Documentation

◆ NSRL_HEXBUF_SPACE2

#define NSRL_HEXBUF_SPACE2   0x02

Definition at line 200 of file sbuf.cpp.

◆ NSRL_HEXBUF_SPACE4

#define NSRL_HEXBUF_SPACE4   0x04

Definition at line 201 of file sbuf.cpp.

◆ NSRL_HEXBUF_UPPERCASE

#define NSRL_HEXBUF_UPPERCASE   0x01

Convert a binary blob to a hex representation

Definition at line 199 of file sbuf.cpp.

◆ O_BINARY

#define O_BINARY   0

SBUF_T

Definition at line 14 of file sbuf.cpp.

Function Documentation

◆ hexbuf()

static const char* hexbuf ( char *  dst,
int  dst_len,
const unsigned char *  bin,
int  bytes,
int  flag 
)
static

◆ hexch()

static std::string hexch ( unsigned char  ch)
static

Definition at line 111 of file sbuf.cpp.

Referenced by sbuf_t::hex_dump().

Variable Documentation

◆ hexcharvals

int hexcharvals[256] = {-1,0}
static

Definition at line 205 of file sbuf.cpp.

Referenced by hexbuf().