SIP-router core ::Module: SIP-router core.
More...
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
#include <string.h>
#include "resolve.h"
#include "compiler_opt.h"
#include "dprint.h"
#include "mem/mem.h"
#include "ip_addr.h"
#include "error.h"
#include "globals.h"
#include "cfg_core.h"
#include "socket_info.h"
Go to the source code of this file.
Functions
- static struct ebl_rdata * dns_ebl_parser (unsigned char *msg, unsigned char *end, unsigned char *eor, unsigned char *rdata)
- parses an EBL record into a txt_rdata structure.
- static struct txt_rdata * dns_txt_parser (unsigned char *msg, unsigned char *end, unsigned char *rdata)
- parses a TXT record into a txt_rdata structure.
Detailed Description
Definition in file resolve.c.
Function Documentation
| static struct ebl_rdata* dns_ebl_parser |
( |
unsigned char * |
msg, |
|
|
unsigned char * |
end, |
|
|
unsigned char * |
eor, |
|
|
unsigned char * |
rdata | |
|
) |
| | [static, read] |
- Parameters:
-
| msg | - pointer to the dns message |
| end | - pointer to the end of the dns message |
| eor | - pointer to the end of the record (rdata end) |
| rdata | - pointer to the rdata part of the txt answer returns 0 on error, or a dyn. alloc'ed txt_rdata structure |
Definition at line 584 of file resolve.c.
| static struct txt_rdata* dns_txt_parser |
( |
unsigned char * |
msg, |
|
|
unsigned char * |
end, |
|
|
unsigned char * |
rdata | |
|
) |
| | [static, read] |
- Parameters:
-
| msg | - pointer to the dns message |
| end | - pointer to the end of the record (rdata end) |
| rdata | - pointer to the rdata part of the txt answer returns 0 on error, or a dyn. alloc'ed txt_rdata structure |
Definition at line 509 of file resolve.c.