ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
execute.c File Reference
#include "dhcpd.h"
#include <isc/util.h>
#include <omapip/omapip_p.h>
#include <sys/types.h>
#include <sys/wait.h>

Go to the source code of this file.

Functions

int execute_statements (struct binding_value **result, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *out_options, struct binding_scope **scope, struct executable_statement *statements, struct on_star *on_star)
 
void execute_statements_in_scope (struct binding_value **result, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *out_options, struct binding_scope **scope, struct group *group, struct group *limiting_group, struct on_star *on_star)
 
int executable_statement_dereference (struct executable_statement **ptr, const char *file, int line)
 
void write_statements (FILE *file, struct executable_statement *statements, int indent)
 
int find_matching_case (struct executable_statement **ep, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *out_options, struct binding_scope **scope, struct expression *expr, struct executable_statement *stmt)
 
int executable_statement_foreach (struct executable_statement *stmt, int(*callback)(struct executable_statement *, void *, int), void *vp, int condp)
 

Function Documentation

◆ executable_statement_dereference()

int executable_statement_dereference ( struct executable_statement ** ptr,
const char * file,
int line )

Definition at line 630 of file execute.c.

◆ executable_statement_foreach()

int executable_statement_foreach ( struct executable_statement * stmt,
int(* callback )(struct executable_statement *, void *, int),
void * vp,
int condp )

Definition at line 1120 of file execute.c.

◆ execute_statements()

int execute_statements ( struct binding_value ** result,
struct packet * packet,
struct lease * lease,
struct client_state * client_state,
struct option_state * in_options,
struct option_state * out_options,
struct binding_scope ** scope,
struct executable_statement * statements,
struct on_star * on_star )

Definition at line 35 of file execute.c.

◆ execute_statements_in_scope()

void execute_statements_in_scope ( struct binding_value ** result,
struct packet * packet,
struct lease * lease,
struct client_state * client_state,
struct option_state * in_options,
struct option_state * out_options,
struct binding_scope ** scope,
struct group * group,
struct group * limiting_group,
struct on_star * on_star )

Definition at line 570 of file execute.c.

◆ find_matching_case()

int find_matching_case ( struct executable_statement ** ep,
struct packet * packet,
struct lease * lease,
struct client_state * client_state,
struct option_state * in_options,
struct option_state * out_options,
struct binding_scope ** scope,
struct expression * expr,
struct executable_statement * stmt )

Definition at line 1042 of file execute.c.

◆ write_statements()

void write_statements ( FILE * file,
struct executable_statement * statements,
int indent )

Definition at line 759 of file execute.c.