#include "../../str.h"#include "../../parser/msg_parser.h"


Go to the source code of this file.
Defines | |
| #define | HEADERS_F 0x80 |
| #define | HOST_F 0x10 |
| #define | LR_F 0x20 |
| #define | MADDR_F 0x10 |
| #define | MAX_XURI_LEN 23 |
| #define | METHOD_F 0x08 |
| #define | PARAMETERS_F 0x40 |
| #define | PASSWORD_F 0x08 |
| #define | PORT_F 0x20 |
| #define | SECURE_F 0x02 |
| #define | SIP_OR_TEL_F 0x01 |
| #define | TRANSPORT_F 0x01 |
| #define | TTL_F 0x02 |
| #define | USER_F 0x04 |
| #define | USER_F 0x04 |
Functions | |
| int | encode_uri2 (char *hdr, int hdrlen, str uri_str, struct sip_uri *uri_parsed, unsigned char *where) |
| int | print_encoded_uri (FILE *fd, unsigned char *payload, int paylen, char *hdr, int hdrlen, char *prefix) |
| int | print_uri_junit_tests (char *hdrstart, int hdrlen, unsigned char *payload, int paylen, FILE *fd, char also_hdr, char *prefix) |
| #define HEADERS_F 0x80 |
Definition at line 32 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define HOST_F 0x10 |
Definition at line 29 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define LR_F 0x20 |
Definition at line 39 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define MADDR_F 0x10 |
Definition at line 38 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define MAX_XURI_LEN 23 |
Definition at line 41 of file encode_uri.h.
| #define METHOD_F 0x08 |
Definition at line 37 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define PARAMETERS_F 0x40 |
Definition at line 31 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define PASSWORD_F 0x08 |
Definition at line 28 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define PORT_F 0x20 |
Definition at line 30 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define SECURE_F 0x02 |
Definition at line 26 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define SIP_OR_TEL_F 0x01 |
Definition at line 25 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define TRANSPORT_F 0x01 |
Definition at line 34 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define TTL_F 0x02 |
Definition at line 35 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| #define USER_F 0x04 |
Definition at line 36 of file encode_uri.h.
| #define USER_F 0x04 |
Definition at line 36 of file encode_uri.h.
Referenced by encode_uri2(), print_encoded_uri(), and print_uri_junit_tests().
| int encode_uri2 | ( | char * | hdr, | |
| int | hdrlen, | |||
| str | uri_str, | |||
| struct sip_uri * | uri_parsed, | |||
| unsigned char * | where | |||
| ) |
Definition at line 116 of file encode_uri.c.
References encode_parameters(), sip_uri::headers, HEADERS_F, sip_uri::host, HOST_F, _str::len, LM_ERR, sip_uri::lr, LR_F, sip_uri::maddr, MADDR_F, sip_uri::method, METHOD_F, PARAMETERS_F, sip_uri::params, sip_uri::passwd, PASSWORD_F, sip_uri::port, PORT_F, REL_PTR, _str::s, SECURE_F, SIP_OR_TEL_F, SIP_SCH, SIPS_SCH, TEL_SCH, TELS_SCH, sip_uri::transport, TRANSPORT_F, sip_uri::ttl, TTL_F, sip_uri::user, USER_F, and sip_uri::user_param.
Referenced by encode_contact(), encode_digest(), encode_msg(), encode_route(), and encode_to_body().
| int print_encoded_uri | ( | FILE * | fd, | |
| unsigned char * | payload, | |||
| int | paylen, | |||
| char * | hdr, | |||
| int | hdrlen, | |||
| char * | prefix | |||
| ) |
Definition at line 241 of file encode_uri.c.
References HEADERS_F, HOST_F, LR_F, MADDR_F, METHOD_F, NULL, PARAMETERS_F, PASSWORD_F, PORT_F, print_encoded_parameters(), SECURE_F, SIP_OR_TEL_F, TRANSPORT_F, TTL_F, and USER_F.
Referenced by print_encoded_contact(), print_encoded_digest(), print_encoded_msg(), print_encoded_route(), and print_encoded_to_body().
| int print_uri_junit_tests | ( | char * | hdrstart, | |
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| FILE * | fd, | |||
| char | also_hdr, | |||
| char * | prefix | |||
| ) |
Definition at line 317 of file encode_uri.c.
References dump_standard_hdr_test(), HEADERS_F, HOST_F, LR_F, MADDR_F, METHOD_F, NULL, PARAMETERS_F, PASSWORD_F, PORT_F, SECURE_F, SIP_OR_TEL_F, TRANSPORT_F, TTL_F, and USER_F.
Referenced by dump_contact_test(), dump_digest_test(), dump_msg_test(), dump_route_test(), and dump_to_body_test().
1.5.6