Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
utils.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <limits.h>
#include <asm/types.h>
#include <linux/pkt_sched.h>
#include <time.h>
#include <sys/time.h>
#include "utils.h"
+ Include dependency graph for utils.c:

Macros

#define _GNU_SOURCE
#define _XOPEN_SOURCE   700

Functions

void duparg (const char *key, const char *arg)
void duparg2 (const char *key, const char *arg)
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 *addr, const char *name, int family)
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)
size_t getcmdline (char **linep, size_t *lenp, 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 *msg, const char *arg)
int makeargs (char *line, char *argv[], int maxargs)
int matches (const char *cmd, const char *pattern)
void missarg (const char *key)
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
int cmdlineno

Macro Definition Documentation

#define _GNU_SOURCE
#define _XOPEN_SOURCE   700

Function Documentation

void duparg ( const char *  key,
const char *  arg 
)
void duparg2 ( const char *  key,
const char *  arg 
)
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 addr,
const char *  name,
int  family 
)
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 
)
size_t getcmdline ( char **  linep,
size_t *  lenp,
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 *  msg,
const char *  arg 
)
int makeargs ( char *  line,
char *  argv[],
int  maxargs 
)
int matches ( const char *  cmd,
const char *  pattern 
)
void missarg ( const char *  key)
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
int cmdlineno