#include <stdio.h>#include <string.h>#include <netinet/in.h>#include <arpa/inet.h>#include "../../parser/parse_allow.h"#include "../../parser/msg_parser.h"#include "encode_allow.h"

Go to the source code of this file.
Defines | |
| #define | _GNU_SOURCE |
Functions | |
| int | encode_allow (char *hdrstart, int hdrlen, unsigned int *bodi, char *where) |
| int | print_encoded_allow (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix) |
Variables | |
| char * | mismetodos [] = {"UNDEF","INVITE","CANCEL","ACK","BYE","INFO","OPTIONS","UPDATE","REGISTER","MESSAGE","SUBSCRIBE","NOTIFY","PRACK","REFER","OTHER"} |
| #define _GNU_SOURCE |
Definition at line 40 of file encode_allow.c.
| int encode_allow | ( | char * | hdrstart, | |
| int | hdrlen, | |||
| unsigned int * | bodi, | |||
| char * | where | |||
| ) |
Encodes allow header.
TODO: Does not support the UNDEFINED header type !!!
Definition at line 56 of file encode_allow.c.
Referenced by encode_header().
| int print_encoded_allow | ( | FILE * | fd, | |
| char * | hdr, | |||
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| char * | prefix | |||
| ) |
Definition at line 65 of file encode_allow.c.
References mismetodos.
Referenced by print_encoded_header().
| char* mismetodos[] = {"UNDEF","INVITE","CANCEL","ACK","BYE","INFO","OPTIONS","UPDATE","REGISTER","MESSAGE","SUBSCRIBE","NOTIFY","PRACK","REFER","OTHER"} |
1.5.6