File: netdns.h

package info (click to toggle)
libnet-dns-perl 0.63-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 836 kB
  • ctags: 425
  • sloc: perl: 6,796; sh: 109; ansic: 104; makefile: 59
file content (31 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <sys/types.h>
#if defined(_MSC_VER) || defined(__MINGW32_VERSION)
typedef unsigned char u_char;
#endif
#define TESTVAL 4
extern double foo(int, long, const char*);

/*
 * See netdns.c for copyright notice.
 */



/*
 * Defines for handling compressed domain names
 */
#define INDIR_MASK 0xc0

/* Note: MAXDNAME is the size of a DNAME in PRESENTATION FORMAT.
 *  Each character in the label may need 4 characters in presentation format
 * think \002.\003\004.example.com
 * Hmmm 1010 is just a bit oversized 
 */

#define MAXDNAME 1010

int netdns_dn_expand( u_char *msg,  u_char *eomorig,
	       u_char *comp_dn,  u_char *exp_dn,
	       int length);