
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. | |
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.
| 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.
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().
1.5.6