maxfwd.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../error.h"
#include "../../ut.h"
#include "../../mem/mem.h"
#include "mf_funcs.h"

Include dependency graph for maxfwd.c:

Go to the source code of this file.

Defines

#define MAXFWD_UPPER_LIMIT   256

Functions

static int fixup_maxfwd_header (void **param, int param_no)
static int is_maxfwd_lt (struct sip_msg *msg, char *slimit, char *foo)
static int mod_init (void)
static int w_process_maxfwd_header (struct sip_msg *msg, char *str, char *str2)

Variables

static cmd_export_t cmds []
struct module_exports exports
static int max_limit = MAXFWD_UPPER_LIMIT
static param_export_t params []


Define Documentation

#define MAXFWD_UPPER_LIMIT   256

Definition at line 51 of file maxfwd.c.

Referenced by fixup_maxfwd_header(), and mod_init().


Function Documentation

static int fixup_maxfwd_header ( void **  param,
int  param_no 
) [static]

Definition at line 104 of file maxfwd.c.

References E_UNSPEC, LM_ERR, max_limit, MAXFWD_UPPER_LIMIT, pkg_free, and str2s().

static int is_maxfwd_lt ( struct sip_msg msg,
char *  slimit,
char *  foo 
) [static]

Definition at line 171 of file maxfwd.c.

References is_maxfwd_present(), and LM_DBG.

static int mod_init ( void   )  [static]

Definition at line 92 of file maxfwd.c.

References E_CFG, LM_ERR, max_limit, and MAXFWD_UPPER_LIMIT.

static int w_process_maxfwd_header ( struct sip_msg msg,
char *  str,
char *  str2 
) [static]


Variable Documentation

cmd_export_t cmds[] [static]

Definition at line 60 of file maxfwd.c.

Definition at line 75 of file maxfwd.c.

int max_limit = MAXFWD_UPPER_LIMIT [static]

Definition at line 53 of file maxfwd.c.

Referenced by fixup_maxfwd_header(), mod_init(), and w_process_maxfwd_header().

param_export_t params[] [static]

Initial value:

{
   {"max_limit",    INT_PARAM,  &max_limit},
   {0,0,0}
}

Definition at line 68 of file maxfwd.c.


Generated on Wed May 23 18:00:41 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6