tcpdump  4.99.1
About: tcpdump is a tool for network monitoring and data acquisition.
  Fossies Dox: tcpdump-4.99.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

netdissect-alloc.h File Reference
#include <stdarg.h>
#include "netdissect-stdinc.h"
#include "netdissect.h"
Include dependency graph for netdissect-alloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nd_mem_chunk
 

Typedefs

typedef struct nd_mem_chunk nd_mem_chunk_t
 

Functions

void nd_add_alloc_list (netdissect_options *, nd_mem_chunk_t *)
 
void * nd_malloc (netdissect_options *, size_t)
 
void nd_free_all (netdissect_options *)
 

Typedef Documentation

◆ nd_mem_chunk_t

typedef struct nd_mem_chunk nd_mem_chunk_t

Function Documentation

◆ nd_add_alloc_list()

void nd_add_alloc_list ( netdissect_options ndo,
nd_mem_chunk_t chunkp 
)

Definition at line 30 of file netdissect-alloc.c.

References netdissect_options::ndo_last_mem_p, and nd_mem_chunk::prev_mem_p.

Referenced by nd_malloc().

◆ nd_free_all()

void nd_free_all ( netdissect_options ndo)

Definition at line 52 of file netdissect-alloc.c.

References netdissect_options::ndo_last_mem_p, and nd_mem_chunk::prev_mem_p.

Referenced by pretty_print_packet().

◆ nd_malloc()

void* nd_malloc ( netdissect_options ndo,
size_t  size 
)

Definition at line 41 of file netdissect-alloc.c.

References nd_add_alloc_list().

Referenced by ppp_hdlc().