ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
options.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "keama.h"

Go to the source code of this file.

Functions

 TAILQ_HEAD (spaces, space)
 SPACES.
 
void spaces_init (void)
 
void options_init (void)
 
struct spacespace_lookup (const char *name)
 
struct optionoption_lookup_name (const char *space, const char *name)
 
struct optionkea_lookup_name (const char *space, const char *name)
 
struct optionoption_lookup_code (const char *space, unsigned code)
 
void push_space (struct space *space)
 
void push_option (struct option *option)
 
void add_option_data (struct element *src, struct element *dst)
 
void merge_option_data (struct element *src, struct element *dst)
 
struct comments * get_config_comments (unsigned code)
 
const char * display_status (enum option_status status)
 

Variables

struct option_def options4 []
 DHCPv4.
 
struct option_def options6 []
 DHCPv6.
 
struct option_def agents []
 DHCPv4 AGENT.
 
struct option_def configs []
 SERVER.
 

Function Documentation

◆ add_option_data()

void add_option_data ( struct element * src,
struct element * dst )

Definition at line 658 of file options.c.

◆ display_status()

const char * display_status ( enum option_status status)

Definition at line 1140 of file options.c.

◆ get_config_comments()

struct comments * get_config_comments ( unsigned code)

Definition at line 720 of file options.c.

◆ kea_lookup_name()

struct option * kea_lookup_name ( const char * space,
const char * name )

Definition at line 599 of file options.c.

◆ merge_option_data()

void merge_option_data ( struct element * src,
struct element * dst )

Definition at line 708 of file options.c.

◆ option_lookup_code()

struct option * option_lookup_code ( const char * space,
unsigned code )

Definition at line 624 of file options.c.

◆ option_lookup_name()

struct option * option_lookup_name ( const char * space,
const char * name )

Definition at line 579 of file options.c.

◆ options_init()

void options_init ( void )

Definition at line 420 of file options.c.

◆ push_option()

void push_option ( struct option * option)

Definition at line 649 of file options.c.

◆ push_space()

void push_space ( struct space * space)

Definition at line 642 of file options.c.

◆ space_lookup()

struct space * space_lookup ( const char * name)

Definition at line 565 of file options.c.

◆ spaces_init()

void spaces_init ( void )

Definition at line 400 of file options.c.

◆ TAILQ_HEAD()

TAILQ_HEAD ( spaces,
space  )

SPACES.

Definition at line 30 of file options.c.

Variable Documentation

◆ agents

struct option_def agents[]
Initial value:
= {
{ "circuit-id", "X", "agent", 1, 0},
{ "remote-id", "X", "agent", 2, 0},
{ "agent-id", "I", "agent", 3, 0},
{ "DOCSIS-device-class", "L", "agent", 4, 0},
{ "link-selection", "I", "agent", 5, 0},
{ "relay-port", "Z", "agent", 19, 0},
{ NULL, NULL, NULL, 0, 0 }
}

DHCPv4 AGENT.

Definition at line 297 of file options.c.

◆ configs

struct option_def configs[]

SERVER.

Definition at line 309 of file options.c.

◆ options4

struct option_def options4[]

DHCPv4.

Definition at line 63 of file options.c.

◆ options6

struct option_def options6[]

DHCPv6.

Definition at line 202 of file options.c.