1/* $NetBSD$ */ 2 3struct ctl_buf { 4 char * text; 5 size_t used; 6}; 7 8#define MAX_LINELEN 990 /*%< Like SMTP. */ 9#ifndef NO_SOCKADDR_UN 10#define MAX_NTOP PATH_MAX 11#else 12#define MAX_NTOP (sizeof "[255.255.255.255].65535") 13#endif 14 15#define allocated_p(Buf) ((Buf).text != NULL) 16#define buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0) 17 18#define ctl_bufget __ctl_bufget 19#define ctl_bufput __ctl_bufput 20#define ctl_sa_ntop __ctl_sa_ntop 21#define ctl_sa_copy __ctl_sa_copy 22 23int ctl_bufget(struct ctl_buf *, ctl_logfunc); 24void ctl_bufput(struct ctl_buf *); 25const char * ctl_sa_ntop(const struct sockaddr *, char *, size_t, 26 ctl_logfunc); 27void ctl_sa_copy(const struct sockaddr *, 28 struct sockaddr *); 29 30/*! \file */ 31