ReactOS 0.4.16-dev-306-g647d351
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];
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}
void add_hash(struct hash_table *table, unsigned char *name, int len, unsigned char *pointer)
Definition: hash.c:82
struct hash_table * new_hash()
Definition: hash.c:53
#define DEFAULT_HASH_SIZE
Definition: dhcpd.h:259
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define error(str)
Definition: mkdosfs.c:1605
struct hash_table universe_hash
Definition: tables.c:672
struct universe dhcp_universe
Definition: tables.c:67
struct dhcp_option dhcp_options[256]
Definition: tables.c:68

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().