File: ctl_p.h

package info (click to toggle)
bind9 1%3A9.3.4-2etch6
  • links: PTS, VCS
  • area: main
  • in suites: etch
  • size: 24,476 kB
  • ctags: 22,776
  • sloc: ansic: 222,420; sh: 20,927; xml: 7,441; makefile: 3,681; perl: 3,026; cpp: 1,764; tcl: 842; python: 77
file content (26 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (7)
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
struct ctl_buf {
	char *			text;
	size_t			used;
};

#define	MAX_LINELEN		990	/* Like SMTP. */
#ifndef NO_SOCKADDR_UN
#define MAX_NTOP			PATH_MAX
#else
#define	MAX_NTOP		(sizeof "[255.255.255.255].65535")
#endif

#define	allocated_p(Buf) ((Buf).text != NULL)
#define	buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0)

#define	ctl_bufget	__ctl_bufget
#define	ctl_bufput	__ctl_bufput
#define	ctl_sa_ntop	__ctl_sa_ntop
#define	ctl_sa_copy	__ctl_sa_copy

int			ctl_bufget(struct ctl_buf *, ctl_logfunc);
void			ctl_bufput(struct ctl_buf *);
const char *		ctl_sa_ntop(const struct sockaddr *, char *, size_t,
				    ctl_logfunc);
void			ctl_sa_copy(const struct sockaddr *,
				    struct sockaddr *);