Functions

tcp_options.c File Reference

SIP-router core ::Module: SIP-router core. More...

#include "tcp_options.h"
#include "dprint.h"
#include "globals.h"
#include "timer_ticks.h"
#include "cfg/cfg.h"
#include "tcp_init.h"
Include dependency graph for tcp_options.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file tcp_options.c.


Function Documentation

static int tcp_cfg_def_fix ( char *  name,
int *  val 
) [static]

(*val must be integer) 1. check if *val is between name min..max and if not change it to the corresp. value 2. call fixup callback if defined in the cfg

Returns:
0 on success

Definition at line 293 of file tcp_options.c.

References _str::len, and _str::s.

int tcp_register_cfg ( void   ) 
Returns:
0 on succes, -1 on error

Definition at line 398 of file tcp_options.c.