10Sstevel@tonic-gate struct ctl_buf { 20Sstevel@tonic-gate char * text; 30Sstevel@tonic-gate size_t used; 40Sstevel@tonic-gate }; 50Sstevel@tonic-gate 6*11038SRao.Shoaib@Sun.COM #define MAX_LINELEN 990 /*%< Like SMTP. */ 70Sstevel@tonic-gate #ifndef NO_SOCKADDR_UN 80Sstevel@tonic-gate #define MAX_NTOP PATH_MAX 90Sstevel@tonic-gate #else 100Sstevel@tonic-gate #define MAX_NTOP (sizeof "[255.255.255.255].65535") 110Sstevel@tonic-gate #endif 120Sstevel@tonic-gate 130Sstevel@tonic-gate #define allocated_p(Buf) ((Buf).text != NULL) 140Sstevel@tonic-gate #define buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0) 150Sstevel@tonic-gate 160Sstevel@tonic-gate #define ctl_bufget __ctl_bufget 170Sstevel@tonic-gate #define ctl_bufput __ctl_bufput 180Sstevel@tonic-gate #define ctl_sa_ntop __ctl_sa_ntop 190Sstevel@tonic-gate #define ctl_sa_copy __ctl_sa_copy 200Sstevel@tonic-gate 210Sstevel@tonic-gate int ctl_bufget(struct ctl_buf *, ctl_logfunc); 220Sstevel@tonic-gate void ctl_bufput(struct ctl_buf *); 230Sstevel@tonic-gate const char * ctl_sa_ntop(const struct sockaddr *, char *, size_t, 240Sstevel@tonic-gate ctl_logfunc); 250Sstevel@tonic-gate void ctl_sa_copy(const struct sockaddr *, 260Sstevel@tonic-gate struct sockaddr *); 27*11038SRao.Shoaib@Sun.COM 28*11038SRao.Shoaib@Sun.COM /*! \file */ 29