Functions | Variables

route.c File Reference

expression evaluation, route fixups and routing lists. More...

#include <stdlib.h>
#include <sys/types.h>
#include <regex.h>
#include <netdb.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "route.h"
#include "forward.h"
#include "dprint.h"
#include "proxy.h"
#include "action.h"
#include "lvalue.h"
#include "rvalue.h"
#include "sr_module.h"
#include "ip_addr.h"
#include "resolve.h"
#include "socket_info.h"
#include "parser/parse_uri.h"
#include "parser/parse_from.h"
#include "parser/parse_to.h"
#include "mem/mem.h"
#include "select.h"
#include "onsend.h"
#include "str_hash.h"
#include "ut.h"
#include "switch.h"
#include "cfg/cfg_struct.h"
Include dependency graph for route.c:

Go to the source code of this file.

Functions

Variables


Detailed Description

Module: SIP-router core

Definition in file route.c.


Function Documentation

static int exp_optimize_left ( struct expr *  exp  )  [static]
Returns:
1 if optimized, 0 if not and -1 on error

Definition at line 313 of file route.c.

References rval_destroy(), and RVE_RVAL_OP.

Here is the call graph for this function:

static int exp_optimize_right ( struct expr *  exp  )  [static]
Returns:
1 if optimized, 0 if not and -1 on error

Definition at line 417 of file route.c.

References rval_destroy(), and RVE_RVAL_OP.

Here is the call graph for this function:


Variable Documentation

int scr_opt_lev = 9

0 - no optimization 1 - optimize rval expressions 2 - optimize expr elems

Definition at line 116 of file route.c.

Referenced by fix_match(), and fix_switch().