ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
buffer.h File Reference

Go to the source code of this file.

Data Structures

struct  _omapi_buffer
 

Macros

#define OMAPI_BUF_SIZE   4048
 
#define BUFFER_BYTES_FREE(x)
 
#define BYTES_IN_BUFFER(x)
 

Typedefs

typedef struct _omapi_buffer omapi_buffer_t
 

Functions

isc_result_t omapi_connection_require (omapi_object_t *, unsigned)
 
isc_result_t omapi_connection_copyout (unsigned char *, omapi_object_t *, unsigned)
 
isc_result_t omapi_connection_copyin (omapi_object_t *, const unsigned char *, unsigned)
 
isc_result_t omapi_connection_flush (omapi_object_t *)
 
isc_result_t omapi_connection_get_uint32 (omapi_object_t *, u_int32_t *)
 
isc_result_t omapi_connection_put_uint32 (omapi_object_t *, u_int32_t)
 
isc_result_t omapi_connection_get_uint16 (omapi_object_t *, u_int16_t *)
 
isc_result_t omapi_connection_put_uint16 (omapi_object_t *, u_int32_t)
 

Macro Definition Documentation

◆ BUFFER_BYTES_FREE

#define BUFFER_BYTES_FREE ( x)
Value:
((x) -> tail > (x) -> head \
? sizeof ((x) -> buf) - ((x) -> tail - (x) -> head) \
: (x) -> head - (x) -> tail)

Definition at line 57 of file buffer.h.

◆ BYTES_IN_BUFFER

#define BYTES_IN_BUFFER ( x)
Value:
((x) -> tail > (x) -> head \
? (x) -> tail - (x) -> head - 1 \
: sizeof ((x) -> buf) - ((x) -> head - (x) -> tail) - 1)

Definition at line 62 of file buffer.h.

◆ OMAPI_BUF_SIZE

#define OMAPI_BUF_SIZE   4048

Definition at line 48 of file buffer.h.

Typedef Documentation

◆ omapi_buffer_t

typedef struct _omapi_buffer omapi_buffer_t

Function Documentation

◆ omapi_connection_copyin()

isc_result_t omapi_connection_copyin ( omapi_object_t * h,
const unsigned char * bufp,
unsigned len )

Definition at line 265 of file buffer.c.

◆ omapi_connection_copyout()

isc_result_t omapi_connection_copyout ( unsigned char * buf,
omapi_object_t * h,
unsigned size )

Definition at line 359 of file buffer.c.

◆ omapi_connection_flush()

isc_result_t omapi_connection_flush ( omapi_object_t * )

◆ omapi_connection_get_uint16()

isc_result_t omapi_connection_get_uint16 ( omapi_object_t * c,
u_int16_t * result )

Definition at line 606 of file buffer.c.

◆ omapi_connection_get_uint32()

isc_result_t omapi_connection_get_uint32 ( omapi_object_t * c,
u_int32_t * result )

Definition at line 580 of file buffer.c.

◆ omapi_connection_put_uint16()

isc_result_t omapi_connection_put_uint16 ( omapi_object_t * c,
u_int32_t value )

Definition at line 621 of file buffer.c.

◆ omapi_connection_put_uint32()

isc_result_t omapi_connection_put_uint32 ( omapi_object_t * c,
u_int32_t value )

Definition at line 595 of file buffer.c.

◆ omapi_connection_require()

isc_result_t omapi_connection_require ( omapi_object_t * h,
unsigned bytes )

Definition at line 563 of file connection.c.