SIP-router core ::Module: SIP-router core. More...
#include "switch.h"#include "rvalue.h"#include "route.h"#include "mem/mem.h"#include "error.h"
Go to the source code of this file.
Definition in file switch.c.
| static int fix_match | ( | struct action * | t | ) | [static] |
can produce 3 different action types:
Definition at line 422 of file switch.c.
References _str::len, mk_match_cond_table(), rval_destroy(), rval_expr_eval(), rval_get_str(), rve_destroy(), rve_has_side_effects(), rve_is_constant(), _str::s, and scr_opt_lev.
Referenced by fix_switch().


| int fix_switch | ( | struct action * | t | ) |
can produce 4 different action types:
Definition at line 150 of file switch.c.
References fix_match(), mk_switch_cond_table(), mk_switch_jmp_table(), rval_expr_eval_int(), rve_destroy(), rve_has_side_effects(), rve_is_constant(), and scr_opt_lev.

| static struct match_cond_table* mk_match_cond_table | ( | int | n | ) | [static, read] |
Definition at line 98 of file switch.c.
Referenced by fix_match().

| static struct switch_cond_table* mk_switch_cond_table | ( | int | n | ) | [static, read] |
Definition at line 47 of file switch.c.
Referenced by fix_switch().

| static struct switch_jmp_table* mk_switch_jmp_table | ( | int | jmp_size, | |
| int | rest | |||
| ) | [static, read] |
| jmp_size | - size of the jump table | |
| rest | - size of the fallback condition table |
Definition at line 71 of file switch.c.
Referenced by fix_switch().

1.7.1