Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lowlevel-options-sun.c File Reference
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include "Portable.h"
+ Include dependency graph for lowlevel-options-sun.c:

Macros

#define CR   0x0a
#define LF   0x0d

Functions

int dns_add (const char *ifname, int ifaceid, const char *addrPlain)
int dns_del (const char *ifname, int ifaceid, const char *addrPlain)
int domain_add (const char *ifname, int ifaceid, const char *domain)
int domain_del (const char *ifname, int ifaceid, const char *domain)
int nisdomain_del (const char *ifname, int ifindex, const char *domain)
int nisdomain_set (const char *ifname, int ifindex, const char *domain)
int nisplusdomain_del (const char *ifname, int ifindex, const char *domain)
int nisplusdomain_set (const char *ifname, int ifindex, const char *domain)
int nisplusserver_add (const char *ifname, const int ifindex, const char *addrPlain)
int nisplusserver_del (const char *ifname, const int ifindex, const char *addrPlain)
int nisserver_add (const char *ifname, const int ifindex, const char *addrPlain)
int nisserver_del (const char *ifname, const int ifindex, const char *addrPlain)
int ntp_add (const char *ifname, const int ifindex, const char *addrPlain)
int ntp_del (const char *ifname, const int ifindex, const char *addrPlain)
int prefix_add (const char *ifname, int ifindex, const char *prefixPlain, int prefixLength, unsigned long prefered, unsigned long valid)
int prefix_del (const char *ifname, int ifindex, const char *prefixPlain, int prefixLength)
int prefix_update (const char *ifname, int ifindex, const char *prefixPlain, int prefixLength, unsigned long prefered, unsigned long valid)
int sipdomain_add (const char *ifname, int ifindex, const char *domain)
int sipdomain_del (const char *ifname, int ifindex, const char *domain)
int sipserver_add (const char *ifname, const int ifindex, const char *addrPlain)
int sipserver_del (const char *ifname, const int ifindex, const char *addrPlain)
int timezone_del (const char *ifname, int ifindex, const char *timezone)
int timezone_set (const char *ifname, int ifindex, const char *timezone)

Variables

char * Message

Macro Definition Documentation

#define CR   0x0a
#define LF   0x0d

Function Documentation

int dns_add ( const char *  ifname,
int  ifaceid,
const char *  addrPlain 
)
int dns_del ( const char *  ifname,
int  ifaceid,
const char *  addrPlain 
)
int domain_add ( const char *  ifname,
int  ifaceid,
const char *  domain 
)
int domain_del ( const char *  ifname,
int  ifaceid,
const char *  domain 
)
int nisdomain_del ( const char *  ifname,
int  ifindex,
const char *  domain 
)
int nisdomain_set ( const char *  ifname,
int  ifindex,
const char *  domain 
)
int nisplusdomain_del ( const char *  ifname,
int  ifindex,
const char *  domain 
)
int nisplusdomain_set ( const char *  ifname,
int  ifindex,
const char *  domain 
)
int nisplusserver_add ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int nisplusserver_del ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int nisserver_add ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int nisserver_del ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int ntp_add ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int ntp_del ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int prefix_add ( const char *  ifname,
int  ifindex,
const char *  prefixPlain,
int  prefixLength,
unsigned long  prefered,
unsigned long  valid 
)

adds prefix - if this node has IPv6 forwarding disabled, it will configure that prefix on the interface, which prefix has been received on. If the forwarding is enabled, it will be assigned to all other up, running and multicast capable interfaces. In both cases, radvd.conf file will be created.

Parameters
ifnameinterface name
ifindexinterface index
prefixPlainprefix (specified in human readable format)
prefixLengthprefix length
preferedpreferred lifetime
validvalid lifetime
Returns
negative error code or 0 if successful
Todo:
: implement this
int prefix_del ( const char *  ifname,
int  ifindex,
const char *  prefixPlain,
int  prefixLength 
)
Todo:
: implement this
int prefix_update ( const char *  ifname,
int  ifindex,
const char *  prefixPlain,
int  prefixLength,
unsigned long  prefered,
unsigned long  valid 
)
Todo:
: implement this
int sipdomain_add ( const char *  ifname,
int  ifindex,
const char *  domain 
)
int sipdomain_del ( const char *  ifname,
int  ifindex,
const char *  domain 
)
int sipserver_add ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int sipserver_del ( const char *  ifname,
const int  ifindex,
const char *  addrPlain 
)
int timezone_del ( const char *  ifname,
int  ifindex,
const char *  timezone 
)
int timezone_set ( const char *  ifname,
int  ifindex,
const char *  timezone 
)

Variable Documentation

char* Message