ISC DHCP  4.3.3
A reference DHCPv4 and DHCPv6 implementation
isclib.h File Reference
#include "config.h"
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <isc/buffer.h>
#include <isc/lex.h>
#include <isc/lib.h>
#include <isc/app.h>
#include <isc/mem.h>
#include <isc/parseint.h>
#include <isc/socket.h>
#include <isc/sockaddr.h>
#include <isc/task.h>
#include <isc/timer.h>
#include <isc/heap.h>
#include <isc/random.h>
#include <irs/resconf.h>
#include <dns/client.h>
#include <dns/fixedname.h>
#include <dns/keyvalues.h>
#include <dns/lib.h>
#include <dns/name.h>
#include <dns/rdata.h>
#include <dns/rdataclass.h>
#include <dns/rdatalist.h>
#include <dns/rdataset.h>
#include <dns/rdatastruct.h>
#include <dns/rdatatype.h>
#include <dns/result.h>
#include <dns/secalg.h>
#include <dns/tsec.h>
#include <dst/dst.h>
#include "result.h"

Go to the source code of this file.

Data Structures

struct  dhcp_context
 

Macros

#define MAXWIRE   256
 
#define DHCP_MAXDNS_WIRE   256
 
#define DHCP_MAXNS   3
 
#define DHCP_HMAC_MD5_NAME   "HMAC-MD5.SIG-ALG.REG.INT."
 
#define DHCP_HMAC_SHA1_NAME   "HMAC-SHA1.SIG-ALG.REG.INT."
 
#define DHCP_HMAC_SHA224_NAME   "HMAC-SHA224.SIG-ALG.REG.INT."
 
#define DHCP_HMAC_SHA256_NAME   "HMAC-SHA256.SIG-ALG.REG.INT."
 
#define DHCP_HMAC_SHA384_NAME   "HMAC-SHA384.SIG-ALG.REG.INT."
 
#define DHCP_HMAC_SHA512_NAME   "HMAC-SHA512.SIG-ALG.REG.INT."
 
#define DHCP_CONTEXT_PRE_DB   1
 
#define DHCP_CONTEXT_POST_DB   2
 

Typedefs

typedef struct dhcp_context dhcp_context_t
 

Functions

isc_result_t dhcp_isc_name (unsigned char *namestr, dns_fixedname_t *namefix, dns_name_t **name)
 
isc_result_t isclib_make_dst_key (char *inname, char *algorithm, unsigned char *secret, int length, dst_key_t **dstkey)
 
isc_result_t dhcp_context_create (int flags, struct in_addr *local4, struct in6_addr *local6)
 
void isclib_cleanup (void)
 
void dhcp_signal_handler (int signal)
 

Variables

dhcp_context_t dhcp_gbl_ctx
 
int shutdown_signal
 

Macro Definition Documentation

#define DHCP_CONTEXT_POST_DB   2

Definition at line 127 of file isclib.h.

#define DHCP_CONTEXT_PRE_DB   1

Definition at line 126 of file isclib.h.

#define DHCP_HMAC_MD5_NAME   "HMAC-MD5.SIG-ALG.REG.INT."

Definition at line 108 of file isclib.h.

#define DHCP_HMAC_SHA1_NAME   "HMAC-SHA1.SIG-ALG.REG.INT."

Definition at line 109 of file isclib.h.

#define DHCP_HMAC_SHA224_NAME   "HMAC-SHA224.SIG-ALG.REG.INT."

Definition at line 110 of file isclib.h.

#define DHCP_HMAC_SHA256_NAME   "HMAC-SHA256.SIG-ALG.REG.INT."

Definition at line 111 of file isclib.h.

#define DHCP_HMAC_SHA384_NAME   "HMAC-SHA384.SIG-ALG.REG.INT."

Definition at line 112 of file isclib.h.

#define DHCP_HMAC_SHA512_NAME   "HMAC-SHA512.SIG-ALG.REG.INT."

Definition at line 113 of file isclib.h.

#define DHCP_MAXDNS_WIRE   256

Definition at line 106 of file isclib.h.

#define DHCP_MAXNS   3

Definition at line 107 of file isclib.h.

#define MAXWIRE   256

Definition at line 35 of file isclib.h.

Typedef Documentation

typedef struct dhcp_context dhcp_context_t

Function Documentation

isc_result_t dhcp_context_create ( int  flags,
struct in_addr *  local4,
struct in6_addr *  local6 
)

Definition at line 138 of file isclib.c.

isc_result_t dhcp_isc_name ( unsigned char *  namestr,
dns_fixedname_t *  namefix,
dns_name_t **  name 
)

Definition at line 282 of file isclib.c.

void dhcp_signal_handler ( int  signal)

signal handler that initiates server shutdown

Parameters
signalsignal code that we received

Definition at line 347 of file isclib.c.

void isclib_cleanup ( void  )

Definition at line 88 of file isclib.c.

isc_result_t isclib_make_dst_key ( char *  inname,
char *  algorithm,
unsigned char *  secret,
int  length,
dst_key_t **  dstkey 
)

Definition at line 301 of file isclib.c.

Variable Documentation

dhcp_context_t dhcp_gbl_ctx

Definition at line 33 of file isclib.c.

int shutdown_signal

Definition at line 34 of file isclib.c.