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


Go to the source code of this file.
Defines | |
| #define | HAS_DISPLAY_F 0x01 |
| #define | HAS_OTHERPAR_F 0x04 |
| #define | HAS_TAG_F 0x02 |
| #define | MAX_XHDR_LEN 255 |
Functions | |
| int | dump_to_body_test (char *hdr, int hdrlen, unsigned char *payload, int paylen, FILE *fd, char segregationLevel) |
| int | encode_to_body (char *hdrstart, int hdrlen, struct to_body *body, unsigned char *where) |
| int | print_encoded_to_body (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix) |
| #define HAS_DISPLAY_F 0x01 |
Definition at line 26 of file encode_to_body.h.
Referenced by dump_to_body_test(), encode_to_body(), and print_encoded_to_body().
| #define HAS_OTHERPAR_F 0x04 |
Definition at line 28 of file encode_to_body.h.
| #define HAS_TAG_F 0x02 |
Definition at line 27 of file encode_to_body.h.
Referenced by dump_to_body_test(), encode_to_body(), and print_encoded_to_body().
| #define MAX_XHDR_LEN 255 |
Definition at line 25 of file encode_to_body.h.
| int dump_to_body_test | ( | char * | hdr, | |
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| FILE * | fd, | |||
| char | segregationLevel | |||
| ) |
dumps to FD a NBO int which is the header length, the header, an NBO int which is the payload length, and the payload.
hdr is the header, hdrlen is the header length, payload is the payload, paylen is the payload length, fd is the file descriptor to which to dump, segregationLevel is wether only URIS must be dumped or all the header code.
return 0 on success, <0 on error
Definition at line 147 of file encode_to_body.c.
References dump_standard_hdr_test(), HAS_DISPLAY_F, HAS_TAG_F, JUNIT, ONLY_URIS, and print_uri_junit_tests().
Referenced by dump_headers_test().
| int encode_to_body | ( | char * | hdrstart, | |
| int | hdrlen, | |||
| struct to_body * | body, | |||
| unsigned char * | where | |||
| ) |
Definition at line 68 of file encode_to_body.c.
References to_body::display, encode_parameters(), encode_uri2(), HAS_DISPLAY_F, HAS_TAG_F, _str::len, LM_ERR, to_body::param_lst, parse_uri(), _str::s, to_body::tag_value, and to_body::uri.
Referenced by encode_header().
| int print_encoded_to_body | ( | FILE * | fd, | |
| char * | hdr, | |||
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| char * | prefix | |||
| ) |
Definition at line 106 of file encode_to_body.c.
References HAS_DISPLAY_F, HAS_TAG_F, print_encoded_parameters(), and print_encoded_uri().
Referenced by print_encoded_header().
1.5.6