17c478bdstevel@tonic-gatestruct ctl_buf {
27c478bdstevel@tonic-gate	char *			text;
37c478bdstevel@tonic-gate	size_t			used;
47c478bdstevel@tonic-gate};
57c478bdstevel@tonic-gate
69525b14Rao Shoaib#define	MAX_LINELEN		990	/*%< Like SMTP. */
77c478bdstevel@tonic-gate#ifndef NO_SOCKADDR_UN
87c478bdstevel@tonic-gate#define MAX_NTOP			PATH_MAX
97c478bdstevel@tonic-gate#else
107c478bdstevel@tonic-gate#define	MAX_NTOP		(sizeof "[255.255.255.255].65535")
117c478bdstevel@tonic-gate#endif
127c478bdstevel@tonic-gate
137c478bdstevel@tonic-gate#define	allocated_p(Buf) ((Buf).text != NULL)
147c478bdstevel@tonic-gate#define	buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0)
157c478bdstevel@tonic-gate
167c478bdstevel@tonic-gate#define	ctl_bufget	__ctl_bufget
177c478bdstevel@tonic-gate#define	ctl_bufput	__ctl_bufput
187c478bdstevel@tonic-gate#define	ctl_sa_ntop	__ctl_sa_ntop
197c478bdstevel@tonic-gate#define	ctl_sa_copy	__ctl_sa_copy
207c478bdstevel@tonic-gate
217c478bdstevel@tonic-gateint			ctl_bufget(struct ctl_buf *, ctl_logfunc);
227c478bdstevel@tonic-gatevoid			ctl_bufput(struct ctl_buf *);
237c478bdstevel@tonic-gateconst char *		ctl_sa_ntop(const struct sockaddr *, char *, size_t,
247c478bdstevel@tonic-gate				    ctl_logfunc);
257c478bdstevel@tonic-gatevoid			ctl_sa_copy(const struct sockaddr *,
267c478bdstevel@tonic-gate				    struct sockaddr *);
279525b14Rao Shoaib
289525b14Rao Shoaib/*! \file */
29