File: bind.h

package info (click to toggle)
bass 1.0.7-2
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 988 kB
  • ctags: 721
  • sloc: ansic: 2,545; makefile: 133; sh: 111
file content (32 lines) | stat: -rw-r--r-- 738 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
32
/*

bind.h

Author: Liraz Siri <liraz@bigfoot.com>

Copyright (c) 1998 Liraz Siri <liraz@bigfoot.com>, Ariel, Israel
                   All rights reserved

Created: Thu Sep 10 16:55:47 GMT 1998

The bind module. This is based of binfo by whoever it was that wrote it.

*/

#include <arpa/nameser.h>

#define BINDPORT	53
#define BIND_IMMUNE_VERSION_4	"9.7"
#define BIND_IMMUNE_VERSION_8   "8.2"

#define BIND_MAX_VERSION_SIZE 15

/* This queries the bind version from the host and outputs it to a log
   file */
int bind_handlehost(struct sockaddr_in *addr, char *host, int timeout);

/* these functions don't deserve an explanation */
int bind_make_keypkt(char *pktbuf, char opc);
int bind_talk(int sd, char *pkt, int pktl, char opc);