encode_header.c File Reference

#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include "../../str.h"
#include "../../parser/msg_parser.h"
#include "../../parser/hf.h"
#include "../../parser/contact/parse_contact.h"
#include "../../parser/contact/contact.h"
#include "../../parser/digest/digest.h"
#include "../../parser/digest/digest_parser.h"
#include "../../parser/parse_rr.h"
#include "../../parser/parse_content.h"
#include "../../parser/parse_cseq.h"
#include "../../parser/parse_expires.h"
#include "../../parser/parse_methods.h"
#include "../../dprint.h"
#include "../../mem/mem.h"
#include "encode_to_body.h"
#include "encode_contact.h"
#include "encode_digest.h"
#include "encode_via.h"
#include "encode_cseq.h"
#include "encode_route.h"
#include "encode_content_length.h"
#include "encode_content_type.h"
#include "encode_expires.h"
#include "encode_allow.h"
#include "xaddress.h"
#include "encode_msg.h"
#include "encode_header.h"

Include dependency graph for encode_header.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE
#define HEADER_LEN_IDX   (HEADER_OFFSET_IDX+2)
#define HEADER_NAME_LEN_IDX   (HEADER_LEN_IDX+2)
#define HEADER_OFFSET_IDX   0
#define HEADER_PAYLOAD_IDX   (HEADER_NAME_LEN_IDX+1)
#define MAX_CONTACT_LEN   50
#define MAX_XHDR_LEN   255
#define ONLY_URIS   0x01
#define REL_PTR(a, b)   ((unsigned char)(b-a))
#define SEGREGATE   0x02

Functions

int dump_headers_test (char *msg, int msglen, unsigned char *payload, int len, char type, FILE *fd, char segregationLevel)
int dump_standard_hdr_test (char *hdr, int hdrlen, unsigned char *payload, int paylen, FILE *fd)
int encode_header (struct sip_msg *sipmsg, struct hdr_field *hdr, unsigned char *payload, int paylen)
int print_encoded_header (FILE *fd, char *msg, int msglen, unsigned char *payload, int len, char type, char *prefix)


Define Documentation

#define _GNU_SOURCE

Definition at line 39 of file encode_header.c.

#define HEADER_LEN_IDX   (HEADER_OFFSET_IDX+2)

Definition at line 78 of file encode_header.c.

Referenced by dump_headers_test(), encode_header(), and print_encoded_header().

#define HEADER_NAME_LEN_IDX   (HEADER_LEN_IDX+2)

Definition at line 79 of file encode_header.c.

Referenced by encode_header(), and print_encoded_header().

#define HEADER_OFFSET_IDX   0

Definition at line 77 of file encode_header.c.

#define HEADER_PAYLOAD_IDX   (HEADER_NAME_LEN_IDX+1)

Definition at line 80 of file encode_header.c.

Referenced by dump_headers_test(), and print_encoded_header().

#define MAX_CONTACT_LEN   50

Definition at line 72 of file encode_header.c.

#define MAX_XHDR_LEN   255

Definition at line 73 of file encode_header.c.

#define ONLY_URIS   0x01

#define REL_PTR ( a,
 )     ((unsigned char)(b-a))

Definition at line 71 of file encode_header.c.

Referenced by encode_parameters(), encode_uri2(), and encode_via().

#define SEGREGATE   0x02


Function Documentation

int dump_headers_test ( char *  msg,
int  msglen,
unsigned char *  payload,
int  len,
char  type,
FILE *  fd,
char  segregationLevel 
)

int dump_standard_hdr_test ( char *  hdr,
int  hdrlen,
unsigned char *  payload,
int  paylen,
FILE *  fd 
)

int encode_header ( struct sip_msg sipmsg,
struct hdr_field hdr,
unsigned char *  payload,
int  paylen 
)

int print_encoded_header ( FILE *  fd,
char *  msg,
int  msglen,
unsigned char *  payload,
int  len,
char  type,
char *  prefix 
)


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