Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
utils.h File Reference
#include <asm/types.h>
#include <linux/types.h>
#include <sys/types.h>
#include "libnetlink.h"
#include "ll_map.h"
#include "rtm_map.h"
+ Include dependency graph for utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dn_naddr
struct  inet_prefix
struct  ipx_addr

Macros

#define _GNU_SOURCE   1
#define AF_DECnet   12
#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
#define DN_MAXADDL   20
#define get_byte   get_u8
#define get_short   get_s16
#define get_ushort   get_u16
#define IPPROTO_AH   51
#define IPPROTO_COMP   108
#define IPPROTO_ESP   50
#define IPSEC_PROTO_ANY   255
#define IPX_NODE_LEN   6
#define NEXT_ARG()   do { argv++; if (--argc <= 0) incomplete_command(); } while(0)
#define NEXT_ARG_OK()   (argc - 1 > 0)
#define PREFIXLEN_SPECIFIED   1
#define PREV_ARG()   do { argv--; argc++; } while(0)
#define SPRINT_BSIZE   64
#define SPRINT_BUF(x)   char x[SPRINT_BSIZE]

Functions

int __get_user_hz (void)
const char * dnet_ntop (int af, const void *addr, char *str, size_t len)
int dnet_pton (int af, const char *src, void *addr)
void duparg (const char *, const char *) __attribute__((noreturn))
void duparg2 (const char *, const char *) __attribute__((noreturn))
const char * format_host (int af, int len, const void *addr, char *buf, int buflen)
int get_addr (inet_prefix *dst, const char *arg, int family)
__u32 get_addr32 (const char *name)
int get_addr_1 (inet_prefix *dst, const char *arg, int family)
static __inline__ int get_hz (void)
int get_integer (int *val, const char *arg, int base)
int get_prefix (inet_prefix *dst, char *arg, int family)
int get_prefix_1 (inet_prefix *dst, char *arg, int family)
int get_s16 (__s16 *val, const char *arg, int base)
int get_s8 (__s8 *val, const char *arg, int base)
int get_u16 (__u16 *val, const char *arg, int base)
int get_u32 (__u32 *val, const char *arg, int base)
int get_u8 (__u8 *val, const char *arg, int base)
int get_unsigned (unsigned *val, const char *arg, int base)
static __inline__ int get_user_hz (void)
size_t getcmdline (char **line, size_t *len, FILE *in)
__u8 * hexstring_a2n (const char *str, __u8 *buf, int blen)
char * hexstring_n2a (const __u8 *str, int len, char *buf, int blen)
void incomplete_command (void) __attribute__((noreturn))
int inet_addr_match (const inet_prefix *a, const inet_prefix *b, int bits)
void invarg (const char *, const char *) __attribute__((noreturn))
const char * ipx_ntop (int af, const void *addr, char *str, size_t len)
int ipx_pton (int af, const char *src, void *addr)
int makeargs (char *line, char *argv[], int maxargs)
int matches (const char *arg, const char *pattern)
void missarg (const char *) __attribute__((noreturn))
int print_timestamp (FILE *fp)
const char * rt_addr_n2a (int af, int len, const void *addr, char *buf, int buflen)

Variables

int __iproute2_hz_internal
int __iproute2_user_hz_internal
char * _SL_
int cmdlineno
int oneline
int preferred_family
int resolve_hosts
int show_details
int show_raw
int show_stats
int timestamp

Macro Definition Documentation

#define _GNU_SOURCE   1
#define AF_DECnet   12
#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))
#define DN_MAXADDL   20
#define get_byte   get_u8
#define get_short   get_s16
#define get_ushort   get_u16
#define IPPROTO_AH   51
#define IPPROTO_COMP   108
#define IPPROTO_ESP   50
#define IPSEC_PROTO_ANY   255
#define IPX_NODE_LEN   6
#define NEXT_ARG ( )    do { argv++; if (--argc <= 0) incomplete_command(); } while(0)
#define NEXT_ARG_OK ( )    (argc - 1 > 0)
#define PREFIXLEN_SPECIFIED   1
#define PREV_ARG ( )    do { argv--; argc++; } while(0)
#define SPRINT_BSIZE   64
#define SPRINT_BUF (   x)    char x[SPRINT_BSIZE]

Function Documentation

int __get_user_hz ( void  )
const char* dnet_ntop ( int  af,
const void *  addr,
char *  str,
size_t  len 
)
int dnet_pton ( int  af,
const char *  src,
void *  addr 
)
void duparg ( const char *  ,
const char *   
)
void duparg2 ( const char *  ,
const char *   
)
const char* format_host ( int  af,
int  len,
const void *  addr,
char *  buf,
int  buflen 
)
int get_addr ( inet_prefix dst,
const char *  arg,
int  family 
)
__u32 get_addr32 ( const char *  name)
int get_addr_1 ( inet_prefix dst,
const char *  arg,
int  family 
)
static __inline__ int get_hz ( void  )
static
int get_integer ( int *  val,
const char *  arg,
int  base 
)
int get_prefix ( inet_prefix dst,
char *  arg,
int  family 
)
int get_prefix_1 ( inet_prefix dst,
char *  arg,
int  family 
)
int get_s16 ( __s16 *  val,
const char *  arg,
int  base 
)
int get_s8 ( __s8 *  val,
const char *  arg,
int  base 
)
int get_u16 ( __u16 *  val,
const char *  arg,
int  base 
)
int get_u32 ( __u32 *  val,
const char *  arg,
int  base 
)
int get_u8 ( __u8 *  val,
const char *  arg,
int  base 
)
int get_unsigned ( unsigned *  val,
const char *  arg,
int  base 
)
static __inline__ int get_user_hz ( void  )
static
size_t getcmdline ( char **  line,
size_t *  len,
FILE *  in 
)
__u8* hexstring_a2n ( const char *  str,
__u8 *  buf,
int  blen 
)
char* hexstring_n2a ( const __u8 *  str,
int  len,
char *  buf,
int  blen 
)
void incomplete_command ( void  )
int inet_addr_match ( const inet_prefix a,
const inet_prefix b,
int  bits 
)
void invarg ( const char *  ,
const char *   
)
const char* ipx_ntop ( int  af,
const void *  addr,
char *  str,
size_t  len 
)
int ipx_pton ( int  af,
const char *  src,
void *  addr 
)
int makeargs ( char *  line,
char *  argv[],
int  maxargs 
)
int matches ( const char *  arg,
const char *  pattern 
)
void missarg ( const char *  )
int print_timestamp ( FILE *  fp)
const char* rt_addr_n2a ( int  af,
int  len,
const void *  addr,
char *  buf,
int  buflen 
)

Variable Documentation

int __iproute2_hz_internal
int __iproute2_user_hz_internal
char* _SL_
int cmdlineno
int oneline
int preferred_family
int resolve_hosts
int show_details
int show_raw
int show_stats
int timestamp