FreeBSD kernel netgraph code
ng_parse.c File Reference
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/errno.h>
#include <sys/limits.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/ctype.h>
#include <machine/stdarg.h>
#include <net/ethernet.h>
#include <netinet/in.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
Include dependency graph for ng_parse.c:

Go to the source code of this file.

Data Structures

struct  int16_temp
 
struct  int32_temp
 
struct  int64_temp
 

Macros

#define M_NETGRAPH_PARSE   M_NETGRAPH
 
#define INT8_ALIGNMENT   1
 
#define INT16_ALIGNMENT   ((size_t)&((struct int16_temp *)0)->y)
 
#define INT32_ALIGNMENT   ((size_t)&((struct int32_temp *)0)->y)
 
#define INT64_ALIGNMENT   ((size_t)&((struct int64_temp *)0)->y)
 
#define INT_UNSIGNED   0
 
#define INT_SIGNED   1
 
#define INT_HEX   2
 
#define METHOD(t, m)   (ng_get_ ## m ## _method(t))
 
#define INVOKE(t, m)   (*METHOD(t,m))
 
#define ALIGNMENT(t)
 

Enumerations

enum  comptype { CT_STRUCT , CT_ARRAY , CT_FIXEDARRAY }
 

Functions

static int ng_parse_composite (const struct ng_parse_type *type, const char *s, int *off, const u_char *start, u_char *const buf, int *buflen, enum comptype ctype)
 
static int ng_unparse_composite (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen, enum comptype ctype)
 
static int ng_get_composite_elem_default (const struct ng_parse_type *type, int index, const u_char *start, u_char *buf, int *buflen, enum comptype ctype)
 
static int ng_get_composite_len (const struct ng_parse_type *type, const u_char *start, const u_char *buf, enum comptype ctype)
 
static const struct ng_parse_typeng_get_composite_etype (const struct ng_parse_type *type, int index, enum comptype ctype)
 
static int ng_parse_get_elem_pad (const struct ng_parse_type *type, int index, enum comptype ctype, int posn)
 
static int ng_parse_skip_value (const char *s, int off, int *lenp)
 
static int ng_parse_append (char **cbufp, int *cbuflenp, const char *fmt,...)
 
static ng_parse_tng_get_parse_method (const struct ng_parse_type *t)
 
static ng_unparse_tng_get_unparse_method (const struct ng_parse_type *t)
 
static ng_getDefault_tng_get_getDefault_method (const struct ng_parse_type *t)
 
static ng_getAlign_tng_get_getAlign_method (const struct ng_parse_type *t)
 
int ng_parse (const struct ng_parse_type *type, const char *string, int *off, u_char *buf, int *buflen)
 
int ng_unparse (const struct ng_parse_type *type, const u_char *data, char *cbuf, int cbuflen)
 
int ng_parse_getDefault (const struct ng_parse_type *type, u_char *buf, int *buflen)
 
static int ng_struct_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_struct_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_struct_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_struct_getAlign (const struct ng_parse_type *type)
 
static int ng_fixedarray_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_fixedarray_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_fixedarray_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_fixedarray_getAlign (const struct ng_parse_type *type)
 
static int ng_array_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_array_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_array_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_array_getAlign (const struct ng_parse_type *type)
 
static int ng_int8_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_int8_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_int8_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_int8_getAlign (const struct ng_parse_type *type)
 
static int ng_int16_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_int16_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_int16_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_int16_getAlign (const struct ng_parse_type *type)
 
static int ng_int32_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_int32_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_int32_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_int32_getAlign (const struct ng_parse_type *type)
 
static int ng_int64_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_int64_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_int64_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_int64_getAlign (const struct ng_parse_type *type)
 
static int ng_string_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_string_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_string_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_fixedstring_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_fixedstring_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_fixedstring_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_sizedstring_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_sizedstring_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_sizedstring_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_ipaddr_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_ipaddr_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_ipaddr_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_enaddr_parse (const struct ng_parse_type *type, const char *s, int *const off, const u_char *const start, u_char *const buf, int *const buflen)
 
static int ng_enaddr_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_parse_bytearray_subtype_getLength (const struct ng_parse_type *type, const u_char *start, const u_char *buf)
 
static int ng_bytearray_parse (const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
 
static int ng_bytearray_unparse (const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
 
static int ng_bytearray_getDefault (const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
 
static int ng_parse_ng_mesg_getLength (const struct ng_parse_type *type, const u_char *start, const u_char *buf)
 
enum ng_parse_token ng_parse_get_token (const char *s, int *startp, int *lenp)
 
char * ng_get_string_token (const char *s, int *startp, int *lenp, int *slenp)
 
char * ng_encode_string (const char *raw, int slen)
 

Variables

const struct ng_parse_type ng_parse_struct_type
 
const struct ng_parse_type ng_parse_fixedarray_type
 
const struct ng_parse_type ng_parse_array_type
 
const struct ng_parse_type ng_parse_int8_type
 
const struct ng_parse_type ng_parse_uint8_type
 
const struct ng_parse_type ng_parse_hint8_type
 
const struct ng_parse_type ng_parse_int16_type
 
const struct ng_parse_type ng_parse_uint16_type
 
const struct ng_parse_type ng_parse_hint16_type
 
const struct ng_parse_type ng_parse_int32_type
 
const struct ng_parse_type ng_parse_uint32_type
 
const struct ng_parse_type ng_parse_hint32_type
 
const struct ng_parse_type ng_parse_int64_type
 
const struct ng_parse_type ng_parse_uint64_type
 
const struct ng_parse_type ng_parse_hint64_type
 
const struct ng_parse_type ng_parse_string_type
 
const struct ng_parse_type ng_parse_fixedstring_type
 
const struct ng_parse_fixedstring_info ng_parse_nodebuf_info
 
const struct ng_parse_type ng_parse_nodebuf_type
 
const struct ng_parse_fixedstring_info ng_parse_hookbuf_info
 
const struct ng_parse_type ng_parse_hookbuf_type
 
const struct ng_parse_fixedstring_info ng_parse_pathbuf_info
 
const struct ng_parse_type ng_parse_pathbuf_type
 
const struct ng_parse_fixedstring_info ng_parse_typebuf_info
 
const struct ng_parse_type ng_parse_typebuf_type
 
const struct ng_parse_fixedstring_info ng_parse_cmdbuf_info
 
const struct ng_parse_type ng_parse_cmdbuf_type
 
const struct ng_parse_type ng_parse_sizedstring_type
 
const struct ng_parse_type ng_parse_ipaddr_type
 
const struct ng_parse_type ng_parse_enaddr_type
 
static const struct ng_parse_array_info ng_parse_bytearray_subtype_info
 
static const struct ng_parse_type ng_parse_bytearray_subtype
 
const struct ng_parse_type ng_parse_bytearray_type
 
static const struct ng_parse_type ng_msg_data_type
 
static const struct ng_parse_struct_field ng_parse_ng_mesg_type_fields [] = NG_GENERIC_NG_MESG_INFO(&ng_msg_data_type)
 
const struct ng_parse_type ng_parse_ng_mesg_type
 

Macro Definition Documentation

◆ ALIGNMENT

#define ALIGNMENT (   t)
Value:
(METHOD(t, getAlign) == NULL ? \
0 : INVOKE(t, getAlign)(t))
#define METHOD(t, m)
Definition: ng_parse.c:127
#define INVOKE(t, m)
Definition: ng_parse.c:128

Definition at line 136 of file ng_parse.c.

◆ INT16_ALIGNMENT

#define INT16_ALIGNMENT   ((size_t)&((struct int16_temp *)0)->y)

Definition at line 87 of file ng_parse.c.

◆ INT32_ALIGNMENT

#define INT32_ALIGNMENT   ((size_t)&((struct int32_temp *)0)->y)

Definition at line 88 of file ng_parse.c.

◆ INT64_ALIGNMENT

#define INT64_ALIGNMENT   ((size_t)&((struct int64_temp *)0)->y)

Definition at line 89 of file ng_parse.c.

◆ INT8_ALIGNMENT

#define INT8_ALIGNMENT   1

Definition at line 86 of file ng_parse.c.

◆ INT_HEX

#define INT_HEX   2

Definition at line 94 of file ng_parse.c.

◆ INT_SIGNED

#define INT_SIGNED   1

Definition at line 93 of file ng_parse.c.

◆ INT_UNSIGNED

#define INT_UNSIGNED   0

Definition at line 92 of file ng_parse.c.

◆ INVOKE

#define INVOKE (   t,
 
)    (*METHOD(t,m))

Definition at line 128 of file ng_parse.c.

◆ M_NETGRAPH_PARSE

#define M_NETGRAPH_PARSE   M_NETGRAPH

Definition at line 67 of file ng_parse.c.

◆ METHOD

#define METHOD (   t,
 
)    (ng_get_ ## m ## _method(t))

Definition at line 127 of file ng_parse.c.

Enumeration Type Documentation

◆ comptype

enum comptype
Enumerator
CT_STRUCT 
CT_ARRAY 
CT_FIXEDARRAY 

Definition at line 97 of file ng_parse.c.

Function Documentation

◆ ng_array_getAlign()

static int ng_array_getAlign ( const struct ng_parse_type type)
static

Definition at line 311 of file ng_parse.c.

References ALIGNMENT, ng_parse_array_info::elementType, and type.

◆ ng_array_getDefault()

static int ng_array_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 301 of file ng_parse.c.

References CT_ARRAY, ng_parse_composite(), and type.

Referenced by ng_bytearray_getDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_array_parse()

static int ng_array_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 286 of file ng_parse.c.

References CT_ARRAY, ng_parse_composite(), and type.

Referenced by ng_bytearray_parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_array_unparse()

static int ng_array_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 294 of file ng_parse.c.

References CT_ARRAY, data, ng_unparse_composite(), and type.

Referenced by ng_bytearray_unparse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_bytearray_getDefault()

static int ng_bytearray_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 1143 of file ng_parse.c.

References ng_array_getDefault(), ng_parse_bytearray_subtype, ng_parse_type::private, and type.

Here is the call graph for this function:

◆ ng_bytearray_parse()

static int ng_bytearray_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 1094 of file ng_parse.c.

References M_NETGRAPH_PARSE, ng_array_parse(), ng_get_string_token(), ng_parse_bytearray_subtype, ng_parse_type::private, and type.

Here is the call graph for this function:

◆ ng_bytearray_unparse()

static int ng_bytearray_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 1132 of file ng_parse.c.

References data, ng_array_unparse(), ng_parse_bytearray_subtype, ng_parse_type::private, and type.

Here is the call graph for this function:

◆ ng_enaddr_parse()

static int ng_enaddr_parse ( const struct ng_parse_type type,
const char *  s,
int *const  off,
const u_char *const  start,
u_char *const  buf,
int *const  buflen 
)
static

Definition at line 1017 of file ng_parse.c.

◆ ng_enaddr_unparse()

static int ng_enaddr_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 1044 of file ng_parse.c.

References data.

◆ ng_encode_string()

char * ng_encode_string ( const char *  raw,
int  slen 
)

Definition at line 1816 of file ng_parse.c.

References M_NETGRAPH_PARSE.

Referenced by ng_ksocket_sockaddr_unparse(), ng_sizedstring_unparse(), and ng_string_unparse().

Here is the caller graph for this function:

◆ ng_fixedarray_getAlign()

static int ng_fixedarray_getAlign ( const struct ng_parse_type type)
static

Definition at line 264 of file ng_parse.c.

References ALIGNMENT, ng_parse_fixedarray_info::elementType, and type.

◆ ng_fixedarray_getDefault()

static int ng_fixedarray_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 254 of file ng_parse.c.

References CT_FIXEDARRAY, ng_parse_composite(), and type.

Here is the call graph for this function:

◆ ng_fixedarray_parse()

static int ng_fixedarray_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 237 of file ng_parse.c.

References CT_FIXEDARRAY, ng_parse_composite(), and type.

Here is the call graph for this function:

◆ ng_fixedarray_unparse()

static int ng_fixedarray_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 246 of file ng_parse.c.

References CT_FIXEDARRAY, data, ng_unparse_composite(), and type.

Here is the call graph for this function:

◆ ng_fixedstring_getDefault()

static int ng_fixedstring_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 818 of file ng_parse.c.

References ng_parse_fixedstring_info::bufSize, and type.

◆ ng_fixedstring_parse()

static int ng_fixedstring_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 781 of file ng_parse.c.

References ng_parse_fixedstring_info::bufSize, M_NETGRAPH_PARSE, ng_get_string_token(), and type.

Here is the call graph for this function:

◆ ng_fixedstring_unparse()

static int ng_fixedstring_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 805 of file ng_parse.c.

References ng_parse_fixedstring_info::bufSize, data, ng_string_unparse(), and type.

Here is the call graph for this function:

◆ ng_get_composite_elem_default()

static int ng_get_composite_elem_default ( const struct ng_parse_type type,
int  index,
const u_char *  start,
u_char *  buf,
int *  buflen,
enum comptype  ctype 
)
static

Definition at line 1470 of file ng_parse.c.

References CT_ARRAY, CT_FIXEDARRAY, CT_STRUCT, ng_parse_fixedarray_info::getDefault, ng_parse_array_info::getDefault, METHOD, ng_get_composite_etype(), and type.

Referenced by ng_parse_composite(), and ng_unparse_composite().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_get_composite_etype()

static const struct ng_parse_type * ng_get_composite_etype ( const struct ng_parse_type type,
int  index,
enum comptype  ctype 
)
static

◆ ng_get_composite_len()

static int ng_get_composite_len ( const struct ng_parse_type type,
const u_char *  start,
const u_char *  buf,
enum comptype  ctype 
)
static

Definition at line 1516 of file ng_parse.c.

References CT_ARRAY, CT_FIXEDARRAY, CT_STRUCT, ng_parse_array_info::getLength, ng_parse_fixedarray_info::length, ng_parse_struct_field::name, and type.

Referenced by ng_parse_composite(), and ng_unparse_composite().

Here is the caller graph for this function:

◆ ng_get_getAlign_method()

static ng_getAlign_t * ng_get_getAlign_method ( const struct ng_parse_type t)
static

Definition at line 1897 of file ng_parse.c.

References ng_parse_type::getAlign, and ng_parse_type::supertype.

◆ ng_get_getDefault_method()

static ng_getDefault_t * ng_get_getDefault_method ( const struct ng_parse_type t)
static

Definition at line 1889 of file ng_parse.c.

References ng_parse_type::getDefault, and ng_parse_type::supertype.

◆ ng_get_parse_method()

static ng_parse_t * ng_get_parse_method ( const struct ng_parse_type t)
static

Definition at line 1873 of file ng_parse.c.

References ng_parse_type::parse, and ng_parse_type::supertype.

◆ ng_get_string_token()

char * ng_get_string_token ( const char *  s,
int *  startp,
int *  lenp,
int *  slenp 
)

Definition at line 1728 of file ng_parse.c.

References M_NETGRAPH_PARSE.

Referenced by ng_bytearray_parse(), ng_fixedstring_parse(), ng_ksocket_sockaddr_parse(), ng_parse_get_token(), ng_sizedstring_parse(), and ng_string_parse().

Here is the caller graph for this function:

◆ ng_get_unparse_method()

static ng_unparse_t * ng_get_unparse_method ( const struct ng_parse_type t)
static

Definition at line 1881 of file ng_parse.c.

References ng_parse_type::supertype, and ng_parse_type::unparse.

◆ ng_int16_getAlign()

static int ng_int16_getAlign ( const struct ng_parse_type type)
static

Definition at line 494 of file ng_parse.c.

References INT16_ALIGNMENT.

◆ ng_int16_getDefault()

static int ng_int16_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 480 of file ng_parse.c.

◆ ng_int16_parse()

static int ng_int16_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 428 of file ng_parse.c.

◆ ng_int16_unparse()

static int ng_int16_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 448 of file ng_parse.c.

References data, INT_HEX, INT_SIGNED, INT_UNSIGNED, ng_parse_append(), and type.

Here is the call graph for this function:

◆ ng_int32_getAlign()

static int ng_int32_getAlign ( const struct ng_parse_type type)
static

Definition at line 593 of file ng_parse.c.

References INT32_ALIGNMENT.

◆ ng_int32_getDefault()

static int ng_int32_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 579 of file ng_parse.c.

◆ ng_int32_parse()

static int ng_int32_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 524 of file ng_parse.c.

References INT_SIGNED, and type.

◆ ng_int32_unparse()

static int ng_int32_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 547 of file ng_parse.c.

References data, INT_HEX, INT_SIGNED, INT_UNSIGNED, ng_parse_append(), and type.

Here is the call graph for this function:

◆ ng_int64_getAlign()

static int ng_int64_getAlign ( const struct ng_parse_type type)
static

Definition at line 688 of file ng_parse.c.

References INT64_ALIGNMENT.

◆ ng_int64_getDefault()

static int ng_int64_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 674 of file ng_parse.c.

◆ ng_int64_parse()

static int ng_int64_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 623 of file ng_parse.c.

◆ ng_int64_unparse()

static int ng_int64_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 642 of file ng_parse.c.

References data, INT_HEX, INT_SIGNED, INT_UNSIGNED, ng_parse_append(), and type.

Here is the call graph for this function:

◆ ng_int8_getAlign()

static int ng_int8_getAlign ( const struct ng_parse_type type)
static

Definition at line 398 of file ng_parse.c.

References INT8_ALIGNMENT.

◆ ng_int8_getDefault()

static int ng_int8_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 384 of file ng_parse.c.

◆ ng_int8_parse()

static int ng_int8_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 333 of file ng_parse.c.

Referenced by ng_ipaddr_parse().

Here is the caller graph for this function:

◆ ng_int8_unparse()

static int ng_int8_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 352 of file ng_parse.c.

References data, INT_HEX, INT_SIGNED, INT_UNSIGNED, ng_parse_append(), and type.

Here is the call graph for this function:

◆ ng_ipaddr_getDefault()

static int ng_ipaddr_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 990 of file ng_parse.c.

◆ ng_ipaddr_parse()

static int ng_ipaddr_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 953 of file ng_parse.c.

References ng_int8_parse(), and ng_parse_int8_type.

Here is the call graph for this function:

◆ ng_ipaddr_unparse()

static int ng_ipaddr_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 974 of file ng_parse.c.

References data, and ng_parse_append().

Here is the call graph for this function:

◆ ng_parse()

int ng_parse ( const struct ng_parse_type type,
const char *  string,
int *  off,
u_char *  buf,
int *  buflen 
)

Definition at line 147 of file ng_parse.c.

References INVOKE, ng_parse_type::parse, and type.

Referenced by ng_generic_msg().

Here is the caller graph for this function:

◆ ng_parse_append()

static int ng_parse_append ( char **  cbufp,
int *  cbuflenp,
const char *  fmt,
  ... 
)
static

◆ ng_parse_bytearray_subtype_getLength()

static int ng_parse_bytearray_subtype_getLength ( const struct ng_parse_type type,
const u_char *  start,
const u_char *  buf 
)
static

Definition at line 1074 of file ng_parse.c.

References type.

◆ ng_parse_composite()

static int ng_parse_composite ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *  start,
u_char *const  buf,
int *  buflen,
enum comptype  ctype 
)
static

◆ ng_parse_get_elem_pad()

static int ng_parse_get_elem_pad ( const struct ng_parse_type type,
int  index,
enum comptype  ctype,
int  posn 
)
static

Definition at line 1595 of file ng_parse.c.

References ALIGNMENT, ng_parse_struct_field::alignment, CT_STRUCT, ng_get_composite_etype(), and type.

Referenced by ng_parse_composite(), and ng_unparse_composite().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_parse_get_token()

enum ng_parse_token ng_parse_get_token ( const char *  s,
int *  startp,
int *  lenp 
)

Definition at line 1682 of file ng_parse.c.

References M_NETGRAPH_PARSE, ng_get_string_token(), T_EOF, T_EQUALS, T_ERROR, T_LBRACE, T_LBRACKET, T_RBRACE, T_RBRACKET, T_STRING, and T_WORD.

Referenced by ng_ksocket_sockaddr_parse(), ng_parse_composite(), and ng_parse_skip_value().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_parse_getDefault()

int ng_parse_getDefault ( const struct ng_parse_type type,
u_char *  buf,
int *  buflen 
)

Definition at line 169 of file ng_parse.c.

References ng_parse_type::getDefault, METHOD, and type.

◆ ng_parse_ng_mesg_getLength()

static int ng_parse_ng_mesg_getLength ( const struct ng_parse_type type,
const u_char *  start,
const u_char *  buf 
)
static

Definition at line 1169 of file ng_parse.c.

References ng_mesg::ng_msghdr::arglen, and ng_mesg::header.

◆ ng_parse_skip_value()

static int ng_parse_skip_value ( const char *  s,
int  off,
int *  lenp 
)
static

Definition at line 1643 of file ng_parse.c.

References ng_parse_get_token(), T_EOF, T_LBRACE, T_LBRACKET, T_RBRACE, and T_RBRACKET.

Referenced by ng_parse_composite().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_sizedstring_getDefault()

static int ng_sizedstring_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 928 of file ng_parse.c.

◆ ng_sizedstring_parse()

static int ng_sizedstring_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 885 of file ng_parse.c.

References M_NETGRAPH_PARSE, and ng_get_string_token().

Here is the call graph for this function:

◆ ng_sizedstring_unparse()

static int ng_sizedstring_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 908 of file ng_parse.c.

References data, M_NETGRAPH_PARSE, ng_encode_string(), and ng_parse_append().

Here is the call graph for this function:

◆ ng_string_getDefault()

static int ng_string_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 755 of file ng_parse.c.

◆ ng_string_parse()

static int ng_string_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 718 of file ng_parse.c.

References M_NETGRAPH_PARSE, and ng_get_string_token().

Here is the call graph for this function:

◆ ng_string_unparse()

static int ng_string_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 736 of file ng_parse.c.

References data, M_NETGRAPH_PARSE, ng_encode_string(), and ng_parse_append().

Referenced by ng_fixedstring_unparse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ng_struct_getAlign()

static int ng_struct_getAlign ( const struct ng_parse_type type)
static

Definition at line 208 of file ng_parse.c.

References ALIGNMENT, ng_parse_struct_field::name, type, and ng_parse_struct_field::type.

◆ ng_struct_getDefault()

static int ng_struct_getDefault ( const struct ng_parse_type type,
const u_char *const  start,
u_char *  buf,
int *  buflen 
)
static

Definition at line 198 of file ng_parse.c.

References CT_STRUCT, ng_parse_composite(), and type.

Here is the call graph for this function:

◆ ng_struct_parse()

static int ng_struct_parse ( const struct ng_parse_type type,
const char *  s,
int *  off,
const u_char *const  start,
u_char *const  buf,
int *  buflen 
)
static

Definition at line 183 of file ng_parse.c.

References CT_STRUCT, ng_parse_composite(), and type.

Here is the call graph for this function:

◆ ng_struct_unparse()

static int ng_struct_unparse ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen 
)
static

Definition at line 191 of file ng_parse.c.

References CT_STRUCT, data, ng_unparse_composite(), and type.

Here is the call graph for this function:

◆ ng_unparse()

int ng_unparse ( const struct ng_parse_type type,
const u_char *  data,
char *  cbuf,
int  cbuflen 
)

Definition at line 157 of file ng_parse.c.

References data, INVOKE, type, and ng_parse_type::unparse.

Referenced by ng_generic_msg().

Here is the caller graph for this function:

◆ ng_unparse_composite()

static int ng_unparse_composite ( const struct ng_parse_type type,
const u_char *  data,
int *  off,
char *  cbuf,
int  cbuflen,
enum comptype  ctype 
)
static

Definition at line 1377 of file ng_parse.c.

References CT_STRUCT, data, INVOKE, M_NETGRAPH_PARSE, name, ng_get_composite_elem_default(), ng_get_composite_etype(), ng_get_composite_len(), ng_parse_append(), ng_parse_get_elem_pad(), and type.

Referenced by ng_array_unparse(), ng_fixedarray_unparse(), and ng_struct_unparse().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ng_msg_data_type

const struct ng_parse_type ng_msg_data_type
static
Initial value:
= {
}
const struct ng_parse_type ng_parse_bytearray_type
Definition: ng_parse.c:1153
static int ng_parse_ng_mesg_getLength(const struct ng_parse_type *type, const u_char *start, const u_char *buf)
Definition: ng_parse.c:1169

Definition at line 1179 of file ng_parse.c.

◆ ng_parse_array_type

const struct ng_parse_type ng_parse_array_type
Initial value:
= {
NULL,
NULL,
NULL,
}
static int ng_array_getAlign(const struct ng_parse_type *type)
Definition: ng_parse.c:311
static int ng_array_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:301
static int ng_array_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:286
static int ng_array_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:294

Definition at line 318 of file ng_parse.c.

◆ ng_parse_bytearray_subtype

const struct ng_parse_type ng_parse_bytearray_subtype
static
Initial value:
= {
}
static const struct ng_parse_array_info ng_parse_bytearray_subtype_info
Definition: ng_parse.c:1083
const struct ng_parse_type ng_parse_array_type
Definition: ng_parse.c:318

Definition at line 1088 of file ng_parse.c.

Referenced by ng_bytearray_getDefault(), ng_bytearray_parse(), and ng_bytearray_unparse().

◆ ng_parse_bytearray_subtype_info

const struct ng_parse_array_info ng_parse_bytearray_subtype_info
static
Initial value:
= {
NULL
}
static int ng_parse_bytearray_subtype_getLength(const struct ng_parse_type *type, const u_char *start, const u_char *buf)
Definition: ng_parse.c:1074
const struct ng_parse_type ng_parse_hint8_type
Definition: ng_parse.c:418

Definition at line 1083 of file ng_parse.c.

◆ ng_parse_bytearray_type

const struct ng_parse_type ng_parse_bytearray_type
Initial value:
= {
NULL,
NULL,
NULL,
NULL
}
static int ng_bytearray_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:1132
static int ng_bytearray_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:1094
static int ng_bytearray_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:1143

Definition at line 1153 of file ng_parse.c.

◆ ng_parse_cmdbuf_info

const struct ng_parse_fixedstring_info ng_parse_cmdbuf_info
Initial value:
= {
}
#define NG_CMDSTRSIZ
Definition: ng_message.h:52

Definition at line 872 of file ng_parse.c.

◆ ng_parse_cmdbuf_type

const struct ng_parse_type ng_parse_cmdbuf_type
Initial value:
= {
}
const struct ng_parse_type ng_parse_fixedstring_type
Definition: ng_parse.c:830
const struct ng_parse_fixedstring_info ng_parse_cmdbuf_info
Definition: ng_parse.c:872

Definition at line 875 of file ng_parse.c.

◆ ng_parse_enaddr_type

const struct ng_parse_type ng_parse_enaddr_type
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
0
}
static int ng_enaddr_parse(const struct ng_parse_type *type, const char *s, int *const off, const u_char *const start, u_char *const buf, int *const buflen)
Definition: ng_parse.c:1017
static int ng_enaddr_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:1044

Definition at line 1058 of file ng_parse.c.

◆ ng_parse_fixedarray_type

const struct ng_parse_type ng_parse_fixedarray_type
Initial value:
= {
NULL,
NULL,
NULL,
}
static int ng_fixedarray_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:246
static int ng_fixedarray_getAlign(const struct ng_parse_type *type)
Definition: ng_parse.c:264
static int ng_fixedarray_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:254
static int ng_fixedarray_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:237

Definition at line 271 of file ng_parse.c.

◆ ng_parse_fixedstring_type

const struct ng_parse_type ng_parse_fixedstring_type
Initial value:
= {
NULL,
NULL,
NULL,
NULL
}
static int ng_fixedstring_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:781
static int ng_fixedstring_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:805
static int ng_fixedstring_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:818

Definition at line 830 of file ng_parse.c.

◆ ng_parse_hint16_type

const struct ng_parse_type ng_parse_hint16_type
Initial value:
= {
(void *)INT_HEX
}
#define INT_HEX
Definition: ng_parse.c:94
const struct ng_parse_type ng_parse_int16_type
Definition: ng_parse.c:499

Definition at line 514 of file ng_parse.c.

◆ ng_parse_hint32_type

const struct ng_parse_type ng_parse_hint32_type
Initial value:
= {
(void *)INT_HEX
}
const struct ng_parse_type ng_parse_int32_type
Definition: ng_parse.c:598

Definition at line 613 of file ng_parse.c.

◆ ng_parse_hint64_type

const struct ng_parse_type ng_parse_hint64_type
Initial value:
= {
(void *)INT_HEX
}
const struct ng_parse_type ng_parse_int64_type
Definition: ng_parse.c:693

Definition at line 708 of file ng_parse.c.

◆ ng_parse_hint8_type

const struct ng_parse_type ng_parse_hint8_type
Initial value:
= {
(void *)INT_HEX
}
const struct ng_parse_type ng_parse_int8_type
Definition: ng_parse.c:403

Definition at line 418 of file ng_parse.c.

◆ ng_parse_hookbuf_info

const struct ng_parse_fixedstring_info ng_parse_hookbuf_info
Initial value:
= {
}
#define NG_HOOKSIZ
Definition: ng_message.h:49

Definition at line 848 of file ng_parse.c.

◆ ng_parse_hookbuf_type

const struct ng_parse_type ng_parse_hookbuf_type
Initial value:
= {
}
const struct ng_parse_fixedstring_info ng_parse_hookbuf_info
Definition: ng_parse.c:848

Definition at line 851 of file ng_parse.c.

◆ ng_parse_int16_type

const struct ng_parse_type ng_parse_int16_type
Initial value:
= {
NULL,
(void *)INT_SIGNED,
NULL,
}
#define INT_SIGNED
Definition: ng_parse.c:93
static int ng_int16_getAlign(const struct ng_parse_type *type)
Definition: ng_parse.c:494
static int ng_int16_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:448
static int ng_int16_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:428
static int ng_int16_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:480

Definition at line 499 of file ng_parse.c.

◆ ng_parse_int32_type

const struct ng_parse_type ng_parse_int32_type
Initial value:
= {
NULL,
(void *)INT_SIGNED,
NULL,
}
static int ng_int32_getAlign(const struct ng_parse_type *type)
Definition: ng_parse.c:593
static int ng_int32_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:524
static int ng_int32_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:547
static int ng_int32_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:579

Definition at line 598 of file ng_parse.c.

◆ ng_parse_int64_type

const struct ng_parse_type ng_parse_int64_type
Initial value:
= {
NULL,
(void *)INT_SIGNED,
NULL,
}
static int ng_int64_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:623
static int ng_int64_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:642
static int ng_int64_getAlign(const struct ng_parse_type *type)
Definition: ng_parse.c:688
static int ng_int64_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:674

Definition at line 693 of file ng_parse.c.

◆ ng_parse_int8_type

const struct ng_parse_type ng_parse_int8_type
Initial value:
= {
NULL,
(void *)INT_SIGNED,
NULL,
}
static int ng_int8_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:333
static int ng_int8_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:352
static int ng_int8_getAlign(const struct ng_parse_type *type)
Definition: ng_parse.c:398
static int ng_int8_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:384

Definition at line 403 of file ng_parse.c.

Referenced by ng_ipaddr_parse().

◆ ng_parse_ipaddr_type

const struct ng_parse_type ng_parse_ipaddr_type
Initial value:
= {
NULL,
NULL,
NULL,
}
static int ng_ipaddr_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:974
static int ng_ipaddr_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:990
static int ng_ipaddr_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:953

Definition at line 1002 of file ng_parse.c.

◆ ng_parse_ng_mesg_type

const struct ng_parse_type ng_parse_ng_mesg_type
Initial value:
= {
}
const struct ng_parse_type ng_parse_struct_type
Definition: ng_parse.c:222
static const struct ng_parse_struct_field ng_parse_ng_mesg_type_fields[]
Definition: ng_parse.c:1186

Definition at line 1187 of file ng_parse.c.

◆ ng_parse_ng_mesg_type_fields

const struct ng_parse_struct_field ng_parse_ng_mesg_type_fields[] = NG_GENERIC_NG_MESG_INFO(&ng_msg_data_type)
static

Definition at line 1185 of file ng_parse.c.

◆ ng_parse_nodebuf_info

const struct ng_parse_fixedstring_info ng_parse_nodebuf_info
Initial value:
= {
}
#define NG_NODESIZ
Definition: ng_message.h:50

Definition at line 840 of file ng_parse.c.

◆ ng_parse_nodebuf_type

const struct ng_parse_type ng_parse_nodebuf_type
Initial value:
= {
}
const struct ng_parse_fixedstring_info ng_parse_nodebuf_info
Definition: ng_parse.c:840

Definition at line 843 of file ng_parse.c.

◆ ng_parse_pathbuf_info

const struct ng_parse_fixedstring_info ng_parse_pathbuf_info
Initial value:
= {
}
#define NG_PATHSIZ
Definition: ng_message.h:51

Definition at line 856 of file ng_parse.c.

◆ ng_parse_pathbuf_type

const struct ng_parse_type ng_parse_pathbuf_type
Initial value:
= {
}
const struct ng_parse_fixedstring_info ng_parse_pathbuf_info
Definition: ng_parse.c:856

Definition at line 859 of file ng_parse.c.

◆ ng_parse_sizedstring_type

const struct ng_parse_type ng_parse_sizedstring_type
Initial value:
= {
NULL,
NULL,
NULL,
NULL
}
static int ng_sizedstring_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:928
static int ng_sizedstring_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:908
static int ng_sizedstring_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:885

Definition at line 938 of file ng_parse.c.

◆ ng_parse_string_type

const struct ng_parse_type ng_parse_string_type
Initial value:
= {
NULL,
NULL,
NULL,
NULL
}
static int ng_string_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:736
static int ng_string_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:718
static int ng_string_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:755

Definition at line 766 of file ng_parse.c.

◆ ng_parse_struct_type

const struct ng_parse_type ng_parse_struct_type
Initial value:
= {
NULL,
NULL,
NULL,
}
static int ng_struct_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen)
Definition: ng_parse.c:191
static int ng_struct_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen)
Definition: ng_parse.c:198
static int ng_struct_getAlign(const struct ng_parse_type *type)
Definition: ng_parse.c:208
static int ng_struct_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen)
Definition: ng_parse.c:183

Definition at line 222 of file ng_parse.c.

◆ ng_parse_typebuf_info

const struct ng_parse_fixedstring_info ng_parse_typebuf_info
Initial value:
= {
}
#define NG_TYPESIZ
Definition: ng_message.h:48

Definition at line 864 of file ng_parse.c.

◆ ng_parse_typebuf_type

const struct ng_parse_type ng_parse_typebuf_type
Initial value:
= {
}
const struct ng_parse_fixedstring_info ng_parse_typebuf_info
Definition: ng_parse.c:864

Definition at line 867 of file ng_parse.c.

◆ ng_parse_uint16_type

const struct ng_parse_type ng_parse_uint16_type
Initial value:
= {
(void *)INT_UNSIGNED
}
#define INT_UNSIGNED
Definition: ng_parse.c:92

Definition at line 509 of file ng_parse.c.

◆ ng_parse_uint32_type

const struct ng_parse_type ng_parse_uint32_type
Initial value:

Definition at line 608 of file ng_parse.c.

◆ ng_parse_uint64_type

const struct ng_parse_type ng_parse_uint64_type
Initial value:

Definition at line 703 of file ng_parse.c.

◆ ng_parse_uint8_type

const struct ng_parse_type ng_parse_uint8_type
Initial value:

Definition at line 413 of file ng_parse.c.