fix_lumps.h File Reference

TM :: Lump handling. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void free_via_clen_lump (struct lump **list)
 Used to delete attached via lumps from msg.


Detailed Description

TM :: Lump handling.

Delete message lumps which are generated in core functions using pkg_malloc and applied to shmem requests; not doing so would result ugly memory problems.

Definition in file fix_lumps.h.


Function Documentation

static void free_via_clen_lump ( struct lump **  list  )  [inline, static]

Used to delete attached via lumps from msg.

A msg can be either an original pkg msg, whose Via lump I want to delete before generating next branch, or a shmem-stored message processed during on_reply -- then I want to delete the Via lump for the same reason. The other case when I want to delete them is when a message is stored in shmem for branch picking, forwarded lated and Via removal is applied to the shmem-ed message. The same thing apply for Content-Length lumps.

Parameters:
list list of lumps
Todo:
(FIXME: this should be done in a nicer way)

Definition at line 58 of file fix_lumps.h.

References lump::after, lump::before, lump::flags, free_lump(), HDR_CONTENTLENGTH_T, HDR_VIA_T, LM_CRIT, LUMPFLAG_DUPED, LUMPFLAG_SHMEM, lump::next, pkg_free, and lump::type.

Referenced by build_cell(), and relay_reply().


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6