Data Structures | Defines | Enumerations

hf.h File Reference

Parser :: parse headers. More...

#include "../str.h"
#include "../comp_defs.h"
Include dependency graph for hf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

Defines

Enumerations

flags definitions.

(enum won't work with all the compiler (e.g.

icc) due to the 64bit size)


Detailed Description

Definition in file hf.h.


Define Documentation

#define HDR_F_DEF (   name  )     HDR_T2F(HDR_##name##_T)

Definition at line 135 of file hf.h.

#define HDR_T2F (   type  )     (((type)!=HDR_EOH_T)?((hdr_flags_t)1<<(type)):(~(hdr_flags_t)0))

WARNING: HDR_ERROR_T has no corresponding FLAG !

Definition at line 131 of file hf.h.


Enumeration Type Documentation

Note:
if you add a new type:
  • make sure it's not greater than 63
  • make sure you add the corresponding flag to the hdr_flags_t defs below
  • update clean_hdr_field (in hf.c)
  • update sip_msg_cloner (modules/tm/sip_msg.c)
  • update parse_headers (msg_parser.c)
  • update get_hdr_field (msg_parser.c)
Enumerator:
HDR_ERROR_T 

Error while parsing.

HDR_OTHER_T 

Some other header field.

HDR_VIA_T 

Via header field.

HDR_VIA1_T 

First Via header field.

HDR_VIA2_T 

only used as flag

HDR_TO_T 

To header field.

HDR_FROM_T 

From header field.

HDR_CSEQ_T 

CSeq header field.

HDR_CALLID_T 

Call-Id header field.

HDR_CONTACT_T 

Contact header field.

HDR_MAXFORWARDS_T 

MaxForwards header field.

HDR_ROUTE_T 

Route header field.

HDR_RECORDROUTE_T 

Record-Route header field.

HDR_CONTENTTYPE_T 

Content-Type header field.

HDR_CONTENTLENGTH_T 

Content-Length header field.

HDR_AUTHORIZATION_T 

Authorization header field.

HDR_EXPIRES_T 

Expires header field.

HDR_PROXYAUTH_T 

Proxy-Authorization hdr field.

HDR_SUPPORTED_T 

Supported header field.

HDR_REQUIRE_T 

Require header.

HDR_PROXYREQUIRE_T 

Proxy-Require header field.

HDR_UNSUPPORTED_T 

Unsupported header field.

HDR_ALLOW_T 

Allow header field.

HDR_EVENT_T 

Event header field.

HDR_ACCEPT_T 

Accept header field.

HDR_ACCEPTLANGUAGE_T 

Accept-Language header field.

HDR_ORGANIZATION_T 

Organization header field.

HDR_PRIORITY_T 

Priority header field.

HDR_SUBJECT_T 

Subject header field.

HDR_USERAGENT_T 

User-Agent header field.

HDR_SERVER_T 

Server header field.

HDR_CONTENTDISPOSITION_T 

Content-Disposition hdr field.

HDR_DIVERSION_T 

Diversion header field.

HDR_RPID_T 

Remote-Party-ID header field.

HDR_REFER_TO_T 

Refer-To header fiels.

HDR_SIPIFMATCH_T 

SIP-If-Match header field.

HDR_SESSIONEXPIRES_T 

Session-Expires header.

HDR_MIN_SE_T 

Min-SE.

HDR_SUBSCRIPTION_STATE_T 

Subscription-State.

HDR_ACCEPTCONTACT_T 

Accept-Contact header.

HDR_ALLOWEVENTS_T 

Allow-Events header.

HDR_CONTENTENCODING_T 

Content-Encoding header.

HDR_REFERREDBY_T 

Referred-By header.

HDR_REJECTCONTACT_T 

Reject-Contact header.

HDR_REQUESTDISPOSITION_T 

Request-Disposition header.

HDR_WWW_AUTHENTICATE_T 

WWW-Authenticate header field.

HDR_PROXY_AUTHENTICATE_T 

Proxy-Authenticate header field.

HDR_DATE_T 

Date header field.

HDR_IDENTITY_T 

Identity header field.

HDR_IDENTITY_INFO_T 

Identity-info header field.

HDR_RETRY_AFTER_T 

Retry-After header field.

HDR_PPI_T 

P-Preferred-Identity header field.

HDR_PAI_T 

P-Asserted-Identity header field.

HDR_PATH_T 

Path header field.

HDR_PRIVACY_T 

Privacy header field.

HDR_REASON_T 

Reason header field.

HDR_EOH_T 

End of message header.

Definition at line 66 of file hf.h.


Function Documentation

void clean_hdr_field ( struct hdr_field hf  ) 
void free_hdr_field_lst ( struct hdr_field hf  ) 

WARNING: frees only ->parsed and ->next

frees a hdr_field list.

WARNING: frees only ->parsed and ->next

Definition at line 218 of file hf.c.

References clean_hdr_field(), and hdr_field::next.

Here is the call graph for this function:

static int hdr_allocs_parse ( struct hdr_field hdr  )  [inline, static]