Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

data_lump.c File Reference

#include "data_lump.h"
#include "dprint.h"
#include "mem/mem.h"
#include "globals.h"
#include "error.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Enumerations

enum  lump_dir { LD_NEXT, LD_BEFORE, LD_AFTER }

Functions

lumpappend_new_lump (struct lump **list, char *new_hdr, int len, enum _hdr_types_t type)
lumpinsert_new_lump (struct lump **list, char *new_hdr, int len, enum _hdr_types_t type)
lumpinsert_new_lump_after (struct lump *after, char *new_hdr, int len, enum _hdr_types_t type)
lumpinsert_new_lump_before (struct lump *before, char *new_hdr, int len, enum _hdr_types_t type)
lumpinsert_subst_lump_after (struct lump *after, enum lump_subst subst, enum _hdr_types_t type)
lumpinsert_subst_lump_before (struct lump *before, enum lump_subst subst, enum _hdr_types_t type)
lumpinsert_cond_lump_after (struct lump *after, enum lump_conditions c, enum _hdr_types_t type)
lumpinsert_cond_lump_before (struct lump *before, enum lump_conditions c, enum _hdr_types_t type)
lumpdel_lump (struct sip_msg *msg, int offset, int len, enum _hdr_types_t type)
lumpanchor_lump (struct sip_msg *msg, int offset, int len, enum _hdr_types_t type)
void free_lump (struct lump *lmp)
void free_lump_list (struct lump *l)
void free_shallow_lump (struct lump *l)
lumpdup_lump_list_r (struct lump *l, enum lump_dir dir, int *error)
lumpdup_lump_list (struct lump *l)
void free_duped_lump_list (struct lump *l)
void del_nonshm_lump (struct lump **lump_list)


Enumeration Type Documentation

enum lump_dir
 

Enumeration values:
LD_NEXT 
LD_BEFORE 
LD_AFTER 

Definition at line 55 of file data_lump.c.


Function Documentation

struct lump* anchor_lump struct sip_msg msg,
int  offset,
int  len,
enum _hdr_types_t  type
 

Definition at line 321 of file data_lump.c.

References sip_msg::add_rm, sip_msg::body_lumps, sip_msg::buf, sip_msg::eoh, L_CRIT, L_ERR, L_WARN, sip_msg::len, len, lump::len, LOG, lump::next, lump::offset, pkg_malloc, ser_error, and lump::u.

Referenced by _test_insert_to_reply(), add_diversion_helper(), add_maxfwd_header(), adjust_clen(), alter_mediaip(), alter_mediaport(), append_hf(), append_hf_helper(), apply_urihdr_changes(), assign_hf_do_lumping(), build_req_buf_from_sip_req(), fix_nated_register_f(), fix_nated_sdp_f(), force_rtp_proxy(), insert_header_lump(), insert_RR(), insert_value_lump(), insert_via_lump(), ops_pushto_avp(), ospAppendHeader(), record_route_preset(), replace_from(), request_hf_helper(), save_ruri(), and search_append_f().

struct lump* append_new_lump struct lump **  list,
char *  new_hdr,
int  len,
enum _hdr_types_t  type
 

Definition at line 59 of file data_lump.c.

References L_ERR, lump::len, LOG, pkg_malloc, lump::u, and lump::value.

struct lump* del_lump struct sip_msg msg,
int  offset,
int  len,
enum _hdr_types_t  type
 

Definition at line 265 of file data_lump.c.

References sip_msg::add_rm, sip_msg::body_lumps, sip_msg::buf, sip_msg::eoh, L_CRIT, L_ERR, L_WARN, sip_msg::len, len, lump::len, LOG, lump::next, lump::offset, pkg_malloc, and lump::u.

Referenced by adjust_clen(), after_loose(), after_strict(), alter_mediaip(), alter_mediaport(), alter_rtcp(), assign_hf_do_lumping(), build_req_buf_from_sip_req(), build_res_buf_from_sip_res(), consume_credentials(), correct_reply(), delete_value_lump(), fix_nated_contact_f(), FixContact(), handle_sr(), patch(), prepare_lumps(), remove_hf(), replace_all_f(), replace_f(), replace_from(), replace_req(), replaceElement(), restore_from(), sdp_mangle_ip(), sdp_mangle_port(), and subst_f().

void del_nonshm_lump struct lump **  lump_list  ) 
 

Definition at line 548 of file data_lump.c.

References lump::after, lump::before, free_lump(), free_lump_list(), lump::next, and pkg_free.

Referenced by free_faked_req().

struct lump* dup_lump_list struct lump l  ) 
 

Definition at line 503 of file data_lump.c.

References dup_lump_list_r(), and LD_NEXT.

Referenced by print_uac_request().

struct lump* dup_lump_list_r struct lump l,
enum lump_dir  dir,
int error
[static]
 

Definition at line 443 of file data_lump.c.

References lump::after, lump::before, free_shallow_lump(), L_CRIT, L_ERR, LD_AFTER, LD_BEFORE, LD_NEXT, LOG, lump::next, and pkg_malloc.

Referenced by dup_lump_list().

void free_duped_lump_list struct lump l  ) 
 

Definition at line 513 of file data_lump.c.

References lump::after, lump::before, free_lump(), lump::next, and pkg_free.

Referenced by print_uac_request().

void free_lump struct lump lmp  ) 
 

Definition at line 373 of file data_lump.c.

References L_CRIT, lump::len, LOG, LUMPFLAG_DUPED, pkg_free, lump::u, and lump::value.

Referenced by del_nonshm_lump(), free_duped_lump_list(), free_lump_list(), free_rr_lump(), and free_via_clen_lump().

void free_lump_list struct lump l  ) 
 

Definition at line 392 of file data_lump.c.

References lump::after, lump::before, free_lump(), lump::next, and pkg_free.

Referenced by del_nonshm_lump(), and free_sip_msg().

void free_shallow_lump struct lump l  )  [static]
 

Definition at line 425 of file data_lump.c.

References lump::after, lump::before, and pkg_free.

Referenced by dup_lump_list_r().

struct lump* insert_cond_lump_after struct lump after,
enum lump_conditions  c,
enum _hdr_types_t  type
 

Definition at line 211 of file data_lump.c.

References lump::after, L_ERR, lump::len, LOG, pkg_malloc, ser_error, and lump::u.

Referenced by build_rr(), and insert_RR().

struct lump* insert_cond_lump_before struct lump before,
enum lump_conditions  c,
enum _hdr_types_t  type
 

Definition at line 236 of file data_lump.c.

References lump::before, L_ERR, lump::len, LOG, pkg_malloc, ser_error, and lump::u.

Referenced by insert_RR().

struct lump* insert_new_lump struct lump **  list,
char *  new_hdr,
int  len,
enum _hdr_types_t  type
 

Definition at line 86 of file data_lump.c.

References L_ERR, lump::len, LOG, lump::next, pkg_malloc, lump::u, and lump::value.

struct lump* insert_new_lump_after struct lump after,
char *  new_hdr,
int  len,
enum _hdr_types_t  type
 

Definition at line 110 of file data_lump.c.

References lump::after, L_ERR, lump::len, LOG, pkg_malloc, ser_error, lump::u, and lump::value.

Referenced by adjust_clen(), alter_mediaip(), alter_mediaport(), alter_rtcp(), build_req_buf_from_sip_req(), build_rr(), correct_reply(), fix_nated_contact_f(), fix_nated_register_f(), fix_nated_sdp_f(), FixContact(), force_rtp_proxy(), insert_header_lump(), insert_value_lump(), insert_via_lump(), patch(), prepare_lumps(), record_route_preset(), replace_all_f(), replace_f(), replace_from(), replaceElement(), request_hf_helper(), restore_from(), sdp_mangle_ip(), sdp_mangle_port(), search_append_f(), and subst_f().

struct lump* insert_new_lump_before struct lump before,
char *  new_hdr,
int  len,
enum _hdr_types_t  type
 

Definition at line 135 of file data_lump.c.

References lump::before, L_ERR, lump::len, LOG, pkg_malloc, ser_error, lump::u, and lump::value.

Referenced by _test_insert_to_reply(), add_diversion_helper(), add_maxfwd_header(), append_hf(), append_hf_helper(), apply_urihdr_changes(), assign_hf_do_lumping(), build_req_buf_from_sip_req(), build_rr(), insert_header_lump(), insert_value_lump(), ops_pushto_avp(), ospAppendHeader(), request_hf_helper(), and save_ruri().

struct lump* insert_subst_lump_after struct lump after,
enum lump_subst  subst,
enum _hdr_types_t  type
 

Definition at line 160 of file data_lump.c.

References lump::after, L_ERR, lump::len, LOG, pkg_malloc, ser_error, and lump::u.

Referenced by build_rr().

struct lump* insert_subst_lump_before struct lump before,
enum lump_subst  subst,
enum _hdr_types_t  type
 

Definition at line 185 of file data_lump.c.

References lump::before, L_ERR, lump::len, LOG, pkg_malloc, ser_error, and lump::u.


Generated on Thu Jul 29 04:15:53 2010 for SIPExpressRouter by  doxygen 1.3.9.1