#include "lump_struct.h"
#include "parser/msg_parser.h"
#include "parser/hf.h"


Go to the source code of this file.
Defines | |
| #define | reset_init_lump_flags() |
| #define | set_init_lump_flags(_flags) |
Functions | |
| struct lump * | anchor_lump (struct sip_msg *msg, unsigned int offset, unsigned int len, enum _hdr_types_t type) |
| set an anchor | |
| struct lump * | append_new_lump (struct lump **list, char *new_hdr, unsigned int len, enum _hdr_types_t type) |
| adds a header to the end | |
| void | del_flaged_lumps (struct lump **lump_list, const enum lump_flag flags) |
| remove all flagged lumps from the list | |
| struct lump * | del_lump (struct sip_msg *msg, unsigned int offset, unsigned int len, enum _hdr_types_t type) |
| removes an already existing header | |
| void | del_notflaged_lumps (struct lump **lump_list, const enum lump_flag not_flags) |
| remove all unflagged lumps from the list | |
| struct lump * | dup_lump_list (struct lump *l) |
| duplicates a lump list shallowly in pkg-mem | |
| void | free_duped_lump_list (struct lump *l) |
| frees a shallowly duplicated lump list | |
| struct lump * | insert_cond_lump_after (struct lump *after, enum lump_conditions c, enum _hdr_types_t type) |
| conditional lumps - insert | |
| struct lump * | insert_cond_lump_before (struct lump *after, enum lump_conditions c, enum _hdr_types_t type) |
| conditional lumps - before | |
| struct lump * | insert_new_lump (struct lump **list, char *new_hdr, unsigned int len, enum _hdr_types_t type) |
| inserts a header to the beginning | |
| struct lump * | insert_new_lump_after (struct lump *after, char *new_hdr, unsigned int len, enum _hdr_types_t type) |
| inserts a header to the beginning - after | |
| struct lump * | insert_new_lump_before (struct lump *before, char *new_hdr, unsigned int len, enum _hdr_types_t type) |
| inserts a header to the beginning - before | |
| struct lump * | insert_subst_lump_after (struct lump *after, enum lump_subst subst, enum _hdr_types_t type) |
| substitutions (replace with ip address, port etc) - after | |
| struct lump * | insert_subst_lump_before (struct lump *before, enum lump_subst subst, enum _hdr_types_t type) |
| substitutions (replace with ip address, port etc) - before | |
Variables | |
| int | init_lump_flags |
Definition in file data_lump.h.
| #define reset_init_lump_flags | ( | ) |
Value:
do{\ init_lump_flags = 0;\ }while(0)
Definition at line 55 of file data_lump.h.
Referenced by post_print_uac_request().
| #define set_init_lump_flags | ( | _flags | ) |
Value:
do{\ init_lump_flags = _flags;\ }while(0)
Definition at line 50 of file data_lump.h.
Referenced by pre_print_uac_request().
| struct lump* anchor_lump | ( | struct sip_msg * | msg, | |
| unsigned int | offset, | |||
| unsigned int | len, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
set an anchor
| struct lump* append_new_lump | ( | struct lump ** | list, | |
| char * | new_hdr, | |||
| unsigned int | len, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
adds a header to the end
Definition at line 62 of file data_lump.c.
References lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD, lump::op, pkg_malloc, lump::type, lump::u, and lump::value.
remove all flagged lumps from the list
remove all flagged lumps from the list
| lump_list | list of lumps | |
| flags | flags for lumps that should be deleted |
Definition at line 635 of file data_lump.c.
References compare_flaged_lumps(), and del_flaged_lumps_helper().
Referenced by post_print_uac_request().
| struct lump* del_lump | ( | struct sip_msg * | msg, | |
| unsigned int | offset, | |||
| unsigned int | len, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
removes an already existing header
Definition at line 276 of file data_lump.c.
References sip_msg::add_rm, sip_msg::body_lumps, sip_msg::buf, sip_msg::eoh, lump::flags, init_lump_flags, lump::len, sip_msg::len, LM_CRIT, LM_ERR, LM_WARN, LUMP_DEL, LUMP_NOP, lump::next, lump::offset, lump::op, pkg_malloc, lump::type, and lump::u.
Referenced by adjust_clen(), after_loose(), after_strict(), alter_mediaip(), alter_mediaport(), alter_rtcp(), build_req_buf_from_sip_req(), build_res_buf_from_sip_res(), consume_credentials(), do_replace_body_f(), filter_body_f(), fix_nated_contact_f(), FixContact(), handle_sr(), patch(), remove_element(), remove_header(), remove_hf_f(), remove_hf_re_f(), replace_all_f(), replace_body_f(), replace_element(), replace_f(), replace_from(), restore_from(), restore_from_reply(), restore_to_reply(), set_body_f(), subst_body_f(), and subst_f().
remove all unflagged lumps from the list
remove all unflagged lumps from the list
| lump_list | list of lumps | |
| not_flags | flags for lumps that should not deleted |
Definition at line 646 of file data_lump.c.
References compare_not_flaged_lumps(), and del_flaged_lumps_helper().
Referenced by free_faked_req().
duplicates a lump list shallowly in pkg-mem
duplicates a lump list shallowly in pkg-mem
Definition at line 511 of file data_lump.c.
References dup_lump_list_r(), and LD_NEXT.
| void free_duped_lump_list | ( | struct lump * | l | ) |
frees a shallowly duplicated lump list
Definition at line 523 of file data_lump.c.
References lump::after, lump::before, lump::flags, free_lump(), LUMPFLAG_DUPED, lump::next, and pkg_free.
| struct lump* insert_cond_lump_after | ( | struct lump * | after, | |
| enum lump_conditions | c, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
conditional lumps - insert
conditional lumps - insert
Definition at line 220 of file data_lump.c.
References lump::after, lump::cond, E_OUT_OF_MEM, lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD_OPT, lump::op, pkg_malloc, ser_error, lump::type, and lump::u.
Referenced by build_rr(), and record_route().
| struct lump* insert_cond_lump_before | ( | struct lump * | before, | |
| enum lump_conditions | c, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
conditional lumps - before
conditional lumps - before
Definition at line 246 of file data_lump.c.
References lump::before, lump::cond, E_OUT_OF_MEM, lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD_OPT, lump::op, pkg_malloc, ser_error, lump::type, and lump::u.
Referenced by record_route().
| struct lump* insert_new_lump | ( | struct lump ** | list, | |
| char * | new_hdr, | |||
| unsigned int | len, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
inserts a header to the beginning
Definition at line 90 of file data_lump.c.
References lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD, lump::next, lump::op, pkg_malloc, lump::type, lump::u, and lump::value.
| struct lump* insert_new_lump_after | ( | struct lump * | after, | |
| char * | new_hdr, | |||
| unsigned int | len, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
inserts a header to the beginning - after
inserts a header to the beginning - after
Definition at line 115 of file data_lump.c.
References lump::after, E_OUT_OF_MEM, lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD, lump::op, pkg_malloc, ser_error, lump::type, lump::u, and lump::value.
Referenced by add_rcv_param_f(), adjust_clen(), alter_mediaip(), alter_mediaport(), alter_rtcp(), build_req_buf_from_sip_req(), build_rr(), do_replace_body_f(), fix_nated_contact_f(), fix_nated_sdp_f(), FixContact(), force_rtp_proxy(), get_fdisplay_anchor(), insert_element(), patch(), record_route_preset(), replace_all_f(), replace_body_f(), replace_element(), replace_f(), replace_from(), restore_from(), restore_from_reply(), restore_to_reply(), search_append_body_f(), search_append_f(), set_body_f(), subst_body_f(), and subst_f().
| struct lump* insert_new_lump_before | ( | struct lump * | before, | |
| char * | new_hdr, | |||
| unsigned int | len, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
inserts a header to the beginning - before
inserts a header to the beginning - before
Definition at line 141 of file data_lump.c.
References lump::before, E_OUT_OF_MEM, lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD, lump::op, pkg_malloc, ser_error, lump::type, lump::u, and lump::value.
Referenced by add_diversion_helper(), add_hf_helper(), add_maxfwd_header(), add_sock_hdr(), append_header(), append_rpid_helper(), apply_urihdr_changes(), build_req_buf_from_sip_req(), build_rr(), insert_path_as_route(), insert_rr_param_lump(), ospAppendHeader(), prepend_path(), and save_ruri().
| struct lump* insert_subst_lump_after | ( | struct lump * | after, | |
| enum lump_subst | subst, | |||
| enum _hdr_types_t | type | |||
| ) | [read] |
substitutions (replace with ip address, port etc) - after
substitutions (replace with ip address, port etc) - after
Definition at line 167 of file data_lump.c.
References lump::after, E_OUT_OF_MEM, lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD_SUBST, lump::op, pkg_malloc, ser_error, lump::subst, lump::type, 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 | |||
| ) | [read] |
substitutions (replace with ip address, port etc) - before
substitutions (replace with ip address, port etc) - before
Definition at line 193 of file data_lump.c.
References lump::before, E_OUT_OF_MEM, lump::flags, init_lump_flags, lump::len, LM_ERR, LUMP_ADD_SUBST, lump::op, pkg_malloc, ser_error, lump::subst, lump::type, and lump::u.
Referenced by prepend_path().
| int init_lump_flags |
Definition at line 58 of file data_lump.c.
Referenced by anchor_lump(), append_new_lump(), del_lump(), dup_lump_list_r(), insert_cond_lump_after(), insert_cond_lump_before(), insert_new_lump(), insert_new_lump_after(), insert_new_lump_before(), insert_subst_lump_after(), and insert_subst_lump_before().
1.5.6