encode_via.c File Reference

#include <stdio.h>
#include "../../parser/parse_via.h"
#include "../../parser/parse_uri.h"
#include "encode_via.h"
#include "encode_uri.h"
#include "xaddress.h"
#include "encode_header.h"
#include "encode_parameters.h"

Include dependency graph for encode_via.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE
#define HAS_ALIAS_F   0x20
#define HAS_BRANCH_F   0x02
#define HAS_I_F   0x10
#define HAS_PARAMS_F   0x01
#define HAS_PORT_F   0x40
#define HAS_RECEIVED_F   0x04
#define HAS_RPORT_F   0x08
#define REL_PTR(a, b)   (unsigned char)((b)-(a))

Functions

int dump_via_body_test (char *hdr, int hdrlen, unsigned char *payload, int paylen, FILE *fd, char segregationLevel)
int encode_via (char *hdrstart, int hdrlen, struct via_body *body, unsigned char *where)
int encode_via_body (char *hdr, int hdrlen, struct via_body *via_parsed, unsigned char *where)
int print_encoded_via (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix)
int print_encoded_via_body (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix)


Define Documentation

#define _GNU_SOURCE

Definition at line 40 of file encode_via.c.

#define HAS_ALIAS_F   0x20

Definition at line 56 of file encode_via.c.

Referenced by encode_via(), and print_encoded_via().

#define HAS_BRANCH_F   0x02

Definition at line 52 of file encode_via.c.

Referenced by encode_via(), and print_encoded_via().

#define HAS_I_F   0x10

Definition at line 55 of file encode_via.c.

Referenced by encode_via(), and print_encoded_via().

#define HAS_PARAMS_F   0x01

Definition at line 51 of file encode_via.c.

Referenced by encode_via(), and print_encoded_via().

#define HAS_PORT_F   0x40

Definition at line 57 of file encode_via.c.

Referenced by encode_via(), and print_encoded_via().

#define HAS_RECEIVED_F   0x04

Definition at line 53 of file encode_via.c.

#define HAS_RPORT_F   0x08

Definition at line 54 of file encode_via.c.

Referenced by encode_via(), and print_encoded_via().

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

Definition at line 59 of file encode_via.c.


Function Documentation

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

Definition at line 227 of file encode_via.c.

References dump_standard_hdr_test(), via_body::i, LM_ERR, and SEGREGATE.

Referenced by dump_headers_test().

int encode_via ( char *  hdrstart,
int  hdrlen,
struct via_body body,
unsigned char *  where 
)

int encode_via_body ( char *  hdr,
int  hdrlen,
struct via_body via_parsed,
unsigned char *  where 
)

Definition at line 69 of file encode_via.c.

References encode_via(), LM_ERR, and via_body::next.

Referenced by encode_header().

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

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

Definition at line 153 of file encode_via.c.

References via_body::i, LM_ERR, and print_encoded_via().

Referenced by print_encoded_header().


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