#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"

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 _GNU_SOURCE |
Definition at line 40 of file encode_via.c.
| #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 |
Definition at line 53 of file encode_via.c.
| #define HAS_RPORT_F 0x08 |
| #define REL_PTR | ( | a, | |||
| b | ) | (unsigned char)((b)-(a)) |
Definition at line 59 of file encode_via.c.
| 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 | |||
| ) |
Definition at line 98 of file encode_via.c.
References via_body::alias, via_body::branch, encode_parameters(), HAS_ALIAS_F, HAS_BRANCH_F, HAS_I_F, HAS_PARAMS_F, HAS_PORT_F, HAS_RECEIVED_F, HAS_RPORT_F, via_body::host, via_body::i, _str::len, via_body::name, via_body::param_lst, via_body::params, via_body::port_str, via_body::received, REL_PTR, via_body::rport, _str::s, via_body::transport, via_param::value, and via_body::version.
Referenced by encode_via_body().
| 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 | |||
| ) |
Definition at line 176 of file encode_via.c.
References HAS_ALIAS_F, HAS_BRANCH_F, HAS_I_F, HAS_PARAMS_F, HAS_PORT_F, HAS_RECEIVED_F, HAS_RPORT_F, and via_body::i.
Referenced by print_encoded_via_body().
| 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().
1.5.6