ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
convert.c File Reference
#include "dhcpd.h"
#include <omapip/omapip_p.h>

Go to the source code of this file.

Functions

u_int32_t getULong (unsigned char *buf) const
 
int32_t getLong (unsigned char *buf) const
 
u_int32_t getUShort (unsigned char *buf) const
 
int32_t getShort (unsigned char *buf) const
 
void putULong (unsigned char *obuf, u_int32_t val)
 
void putLong (unsigned char *obuf, int32_t val)
 
void putUShort (unsigned char *obuf, u_int32_t val)
 
void putShort (unsigned char *obuf, int32_t val)
 
void putUChar (unsigned char *obuf, u_int32_t val)
 
u_int32_t getUChar (unsigned char *obuf) const
 
int converted_length (unsigned char *buf, unsigned int base, unsigned int width) const
 
int binary_to_ascii (unsigned char *outbuf, const unsigned char *inbuf, unsigned int base, unsigned int width)
 

Function Documentation

◆ binary_to_ascii()

int binary_to_ascii ( unsigned char * outbuf,
const unsigned char * inbuf,
unsigned int base,
unsigned int width )

Definition at line 150 of file convert.c.

◆ converted_length()

int converted_length ( unsigned char * buf,
unsigned int base,
unsigned int width ) const

Definition at line 115 of file convert.c.

◆ getLong()

int32_t getLong ( unsigned char * buf) const

Definition at line 43 of file convert.c.

◆ getShort()

int32_t getShort ( unsigned char * buf) const

Definition at line 61 of file convert.c.

◆ getUChar()

u_int32_t getUChar ( unsigned char * obuf) const

Definition at line 109 of file convert.c.

◆ getULong()

u_int32_t getULong ( unsigned char * buf) const

Definition at line 34 of file convert.c.

◆ getUShort()

u_int32_t getUShort ( unsigned char * buf) const

Definition at line 52 of file convert.c.

◆ putLong()

void putLong ( unsigned char * obuf,
int32_t val )

Definition at line 78 of file convert.c.

◆ putShort()

void putShort ( unsigned char * obuf,
int32_t val )

Definition at line 94 of file convert.c.

◆ putUChar()

void putUChar ( unsigned char * obuf,
u_int32_t val )

Definition at line 102 of file convert.c.

◆ putULong()

void putULong ( unsigned char * obuf,
u_int32_t val )

Definition at line 70 of file convert.c.

◆ putUShort()

void putUShort ( unsigned char * obuf,
u_int32_t val )

Definition at line 86 of file convert.c.