ReactOS  0.4.12-dev-57-g7050ac4
tables.c File Reference
#include <rosdhcp.h>
Include dependency graph for tables.c:

Go to the source code of this file.

Macros

#define lint
 

Functions

void initialize_universes ()
 

Variables

struct universe dhcp_universe
 
struct dhcp_option dhcp_options [256]
 
unsigned char dhcp_option_default_priority_list []
 
int sizeof_dhcp_option_default_priority_list
 
charhardware_types []
 
struct hash_table universe_hash
 

Macro Definition Documentation

◆ lint

#define lint

Definition at line 42 of file tables.c.

Function Documentation

◆ initialize_universes()

void initialize_universes ( void  )

Definition at line 674 of file tables.c.

675 {
676  int i;
677 
678  dhcp_universe.name = "dhcp";
679  dhcp_universe.hash = new_hash ();
680  if (!dhcp_universe.hash)
681  error ("Can't allocate dhcp option hash table.");
682  for (i = 0; i < 256; i++) {
683  dhcp_universe.options [i] = &dhcp_options [i];
684  add_hash (dhcp_universe.hash,
685  (unsigned char *)dhcp_options [i].name, 0,
686  (unsigned char *)&dhcp_options [i]);
687  }
688  universe_hash.hash_count = DEFAULT_HASH_SIZE;
690  (unsigned char *)dhcp_universe.name, 0,
691  (unsigned char *)&dhcp_universe);
692 }
#define error(str)
Definition: mkdosfs.c:1605
struct hash_table * new_hash()
Definition: hash.c:53
#define DEFAULT_HASH_SIZE
Definition: dhcpd.h:259
struct dhcp_option dhcp_options[256]
Definition: tables.c:68
GLenum GLclampf GLint i
Definition: glfuncs.h:14
struct hash_table universe_hash
Definition: tables.c:672
struct universe dhcp_universe
Definition: tables.c:67
void add_hash(struct hash_table *table, unsigned char *name, int len, unsigned char *pointer)
Definition: hash.c:82

Variable Documentation

◆ dhcp_option_default_priority_list

unsigned char dhcp_option_default_priority_list[]

Definition at line 329 of file tables.c.

Referenced by cons_options().

◆ dhcp_options

◆ dhcp_universe

struct universe dhcp_universe

Definition at line 67 of file tables.c.

Referenced by initialize_universes().

◆ hardware_types

char* hardware_types[]

Definition at line 412 of file tables.c.

◆ sizeof_dhcp_option_default_priority_list

int sizeof_dhcp_option_default_priority_list
Initial value:
=
unsigned char dhcp_option_default_priority_list[]
Definition: tables.c:329

Definition at line 408 of file tables.c.

Referenced by cons_options().

◆ universe_hash

struct hash_table universe_hash

Definition at line 672 of file tables.c.

Referenced by initialize_universes().