libspf2 1.2.11
|
#include "config.h"
#include <sys/types.h>
#include <netinet/in.h>
#include "arpa_nameser.h"
#include <errno.h>
#include <ctype.h>
#include <stdlib.h>
#include <limits.h>
Go to the source code of this file.
Macros | |
#define | SPRINTF(x) ((size_t)sprintf x) |
#define | NS_TYPE_ELT 0x40 /* EDNS0 extended label type */ |
#define | DNS_LABELTYPE_BITSTRING 0x41 |
Functions | |
int | ns_name_ntop (const u_char *src, char *dst, size_t dstsiz) |
int | ns_name_pton (const char *src, u_char *dst, size_t dstsiz) |
int | ns_name_ntol (const u_char *src, u_char *dst, size_t dstsiz) |
int | ns_name_unpack (const u_char *msg, const u_char *eom, const u_char *src, u_char *dst, size_t dstsiz) |
int | ns_name_pack (const u_char *src, u_char *dst, int dstsiz, const u_char **dnptrs, const u_char **lastdnptr) |
int | ns_name_uncompress (const u_char *msg, const u_char *eom, const u_char *src, char *dst, size_t dstsiz) |
int | ns_name_compress (const char *src, u_char *dst, size_t dstsiz, const u_char **dnptrs, const u_char **lastdnptr) |
void | ns_name_rollback (const u_char *src, const u_char **dnptrs, const u_char **lastdnptr) |
int | ns_name_skip (const u_char **ptrptr, const u_char *eom) |
#define DNS_LABELTYPE_BITSTRING 0x41 |
Definition at line 57 of file __ns_name_uncompress.c.
#define NS_TYPE_ELT 0x40 /* EDNS0 extended label type */ |
Definition at line 56 of file __ns_name_uncompress.c.
#define SPRINTF | ( | x | ) | ((size_t)sprintf x) |
Definition at line 53 of file __ns_name_uncompress.c.
int ns_name_compress | ( | const char * | src, |
u_char * | dst, | ||
size_t | dstsiz, | ||
const u_char ** | dnptrs, | ||
const u_char ** | lastdnptr | ||
) |
Definition at line 613 of file __ns_name_uncompress.c.
References NS_MAXCDNAME, ns_name_pack, and ns_name_pton.
int ns_name_ntol | ( | const u_char * | src, |
u_char * | dst, | ||
size_t | dstsiz | ||
) |
Definition at line 344 of file __ns_name_uncompress.c.
References NS_CMPRSFLGS, and NULL.
int ns_name_ntop | ( | const u_char * | src, |
char * | dst, | ||
size_t | dstsiz | ||
) |
Definition at line 106 of file __ns_name_uncompress.c.
References DNS_LABELTYPE_BITSTRING, NS_CMPRSFLGS, NS_TYPE_ELT, and NULL.
int ns_name_pack | ( | const u_char * | src, |
u_char * | dst, | ||
int | dstsiz, | ||
const u_char ** | dnptrs, | ||
const u_char ** | lastdnptr | ||
) |
Definition at line 485 of file __ns_name_uncompress.c.
References NS_CMPRSFLGS, NS_MAXCDNAME, and NULL.
int ns_name_pton | ( | const char * | src, |
u_char * | dst, | ||
size_t | dstsiz | ||
) |
Definition at line 209 of file __ns_name_uncompress.c.
References NS_CMPRSFLGS, NS_MAXCDNAME, and NULL.
Definition at line 628 of file __ns_name_uncompress.c.
References NULL.
Definition at line 647 of file __ns_name_uncompress.c.
References NS_CMPRSFLGS, and NS_TYPE_ELT.
int ns_name_uncompress | ( | const u_char * | msg, |
const u_char * | eom, | ||
const u_char * | src, | ||
char * | dst, | ||
size_t | dstsiz | ||
) |
Definition at line 585 of file __ns_name_uncompress.c.
References NS_MAXCDNAME, ns_name_ntop, and ns_name_unpack.
int ns_name_unpack | ( | const u_char * | msg, |
const u_char * | eom, | ||
const u_char * | src, | ||
u_char * | dst, | ||
size_t | dstsiz | ||
) |
Definition at line 394 of file __ns_name_uncompress.c.
References NS_CMPRSFLGS, and NS_TYPE_ELT.