ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
print.c File Reference
#include "dhcpd.h"

Go to the source code of this file.

Macros

#define HBLEN   1024
 
#define DQLEN   80
 

Functions

char * quotify_string (const char *s, const char *file, int line)
 
char * quotify_buf (const unsigned char *s, unsigned len, char enclose_char, const char *file, int line)
 
char * print_base64 (const unsigned char *buf, unsigned len, const char *file, int line)
 
char * print_hw_addr (int htype, const int hlen, const unsigned char *data) const
 
void print_lease (struct lease *lease)
 
void dump_raw (unsigned char *buf, unsigned len) const
 
void hash_dump (struct hash_table *table)
 
void print_hex_only (unsigned len, const u_int8_t *data, unsigned limit, char *buf)
 
void print_hex_or_string (unsigned len, const u_int8_t *data, unsigned limit, char *buf)
 
char * print_hex (unsigned len, const u_int8_t *data, unsigned limit, unsigned buf_num)
 
char * print_dotted_quads (unsigned len, const u_int8_t *data)
 
char * print_dec_1 (unsigned long val)
 
char * print_dec_2 (unsigned long val)
 
void print_expression (char *name, struct expression *expr) const
 
int token_print_indent_concat (FILE *file, int col, int indent, const char *prefix, const char *suffix,...)
 
int token_indent_data_string (FILE *file, int col, int indent, const char *prefix, const char *suffix, struct data_string *data)
 
int token_print_indent (FILE *file, int col, int indent, const char *prefix, const char *suffix, const char *buf)
 
void indent_spaces (FILE *file, int indent)
 
const char * print_time (TIME t)
 
char * buf_to_hex (const unsigned char *s, unsigned len, const char *file, int line)
 
char * format_lease_id (const unsigned char *s, unsigned len, int format, const char *file, int line)
 
char * absolute_path (const char *orgpath)
 

Variables

int db_time_format = DEFAULT_TIME_FORMAT
 

Macro Definition Documentation

◆ DQLEN

#define DQLEN   80

Definition at line 491 of file print.c.

◆ HBLEN

#define HBLEN   1024

Definition at line 455 of file print.c.

Function Documentation

◆ absolute_path()

char * absolute_path ( const char * orgpath)

Definition at line 1453 of file print.c.

◆ buf_to_hex()

char * buf_to_hex ( const unsigned char * s,
unsigned len,
const char * file,
int line )

Definition at line 1372 of file print.c.

◆ dump_raw()

void dump_raw ( unsigned char * buf,
unsigned len ) const

Definition at line 293 of file print.c.

◆ format_lease_id()

char * format_lease_id ( const unsigned char * s,
unsigned len,
int format,
const char * file,
int line )

Definition at line 1427 of file print.c.

◆ hash_dump()

void hash_dump ( struct hash_table * table)

Definition at line 344 of file print.c.

◆ indent_spaces()

void indent_spaces ( FILE * file,
int indent )

Definition at line 1300 of file print.c.

◆ print_base64()

char * print_base64 ( const unsigned char * buf,
unsigned len,
const char * file,
int line )

Definition at line 121 of file print.c.

◆ print_dec_1()

char * print_dec_1 ( unsigned long val)

Definition at line 524 of file print.c.

◆ print_dec_2()

char * print_dec_2 ( unsigned long val)

Definition at line 532 of file print.c.

◆ print_dotted_quads()

char * print_dotted_quads ( unsigned len,
const u_int8_t * data )

Definition at line 493 of file print.c.

◆ print_expression()

void print_expression ( char * name,
struct expression * expr ) const

Definition at line 1171 of file print.c.

◆ print_hex()

char * print_hex ( unsigned len,
const u_int8_t * data,
unsigned limit,
unsigned buf_num )

Definition at line 456 of file print.c.

◆ print_hex_only()

void print_hex_only ( unsigned len,
const u_int8_t * data,
unsigned limit,
char * buf )

Definition at line 380 of file print.c.

◆ print_hex_or_string()

void print_hex_or_string ( unsigned len,
const u_int8_t * data,
unsigned limit,
char * buf )

Definition at line 419 of file print.c.

◆ print_hw_addr()

char * print_hw_addr ( int htype,
const int hlen,
const unsigned char * data ) const

Definition at line 171 of file print.c.

◆ print_lease()

void print_lease ( struct lease * lease)

Definition at line 194 of file print.c.

◆ print_time()

const char * print_time ( TIME t)

Definition at line 1312 of file print.c.

◆ quotify_buf()

char * quotify_buf ( const unsigned char * s,
unsigned len,
char enclose_char,
const char * file,
int line )

Definition at line 71 of file print.c.

◆ quotify_string()

char * quotify_string ( const char * s,
const char * file,
int line )

Definition at line 33 of file print.c.

◆ token_indent_data_string()

int token_indent_data_string ( FILE * file,
int col,
int indent,
const char * prefix,
const char * suffix,
struct data_string * data )

Definition at line 1219 of file print.c.

◆ token_print_indent()

int token_print_indent ( FILE * file,
int col,
int indent,
const char * prefix,
const char * suffix,
const char * buf )

Definition at line 1262 of file print.c.

◆ token_print_indent_concat()

int token_print_indent_concat ( FILE * file,
int col,
int indent,
const char * prefix,
const char * suffix,
... )

Definition at line 1181 of file print.c.

Variable Documentation

◆ db_time_format

int db_time_format = DEFAULT_TIME_FORMAT

Definition at line 31 of file print.c.