Parser :: ??? More...
#include "../comp_defs.h"#include "../str.h"#include "../lump_struct.h"#include "../flags.h"#include "../ip_addr.h"#include "../md5utils.h"#include "../config.h"#include "parse_def.h"#include "parse_cseq.h"#include "parse_via.h"#include "parse_fline.h"#include "parse_retry_after.h"#include "hf.h"#include "../error.h"#include "../lump_struct.h"#include "../flags.h"#include "../ip_addr.h"#include "../md5utils.h"#include "../error.h"
Go to the source code of this file.
number methods as power of two to allow bitmap matching
More...Definition in file msg_parser.h.
| #define GET_NEXT_HOP | ( | m | ) |
(((m)->dst_uri.s && (m)->dst_uri.len) ? (&(m)->dst_uri) : \ (((m)->new_uri.s && (m)->new_uri.len) ? (&(m)->new_uri) : (&(m)->first_line.u.request.uri)))
The following fields are tried in this order: 1) dst_uri 2) new_uri 3) first_line.u.request.uri
Definition at line 167 of file msg_parser.h.
| #define GET_RURI | ( | m | ) | (((m)->new_uri.s && (m)->new_uri.len) ? (&(m)->new_uri) : (&(m)->first_line.u.request.uri)) |
The following fields are tried in this order: 1) new_uri 2) first_line.u.request.uri
Definition at line 178 of file msg_parser.h.
| #define reset_force_socket | ( | msg | ) | set_force_socket(msg, 0) |
Definition at line 467 of file msg_parser.h.
| #define set_force_socket | ( | msg, | ||
| fsocket | ||||
| ) |
do { \ (msg)->force_send_socket=(fsocket); \ if ((msg)->force_send_socket) \ (msg)->fwd_send_flags.f |= SND_F_FORCE_SOCKET; \ else \ (msg)->fwd_send_flags.f &= ~SND_F_FORCE_SOCKET; \ } while (0)
| msg | - sip msg. | |
| fsocket | - forced socket, pointer to struct socket_info, can be 0 (in which case it's equivalent to reset_force_socket()). |
Definition at line 457 of file msg_parser.h.
Referenced by after_loose(), after_strict(), dp_apply_policy(), and lookup().
| typedef struct msg_body msg_body_t |
Body parsers are supposed to cast this structure to some other body-type specific structure, but the body type specific structure must retain msg_body_type variable and a pointer to the free function as the first two variables within the structure.
| enum request_method |
Definition at line 87 of file msg_parser.h.
| unsigned int global_req_flags |
msg->msg_flags should be OR'ed with it before a flag value is checked, e.g.: if ((msg->msg_flags|global_req_flags) & FL_XXX) ...
Definition at line 87 of file msg_parser.c.
Referenced by build_req_buf_from_sip_req(), and fix_global_req_flags().
1.7.1