1 2/* 3 * netgraph.h 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@whistle.com> 38 * |
39 * $FreeBSD: head/lib/libnetgraph/netgraph.h 81975 2001-08-20 12:53:36Z kris $ |
40 * $Whistle: netgraph.h,v 1.7 1999/01/20 00:57:23 archie Exp $ 41 */ 42 43#ifndef _NETGRAPH_H_ 44#define _NETGRAPH_H_ 45 46#include <sys/types.h> 47#include <netgraph/ng_message.h> 48 49__BEGIN_DECLS 50int NgMkSockNode(const char *, int *, int *); |
51int NgNameNode(int, const char *, const char *, ...) __printflike(3, 4); |
52int NgSendMsg(int, const char *, int, int, const void *, size_t); |
53int NgSendAsciiMsg(int, const char *, const char *, ...) __printflike(3, 4); |
54int NgSendReplyMsg(int, const char *, 55 const struct ng_mesg *, const void *, size_t); 56int NgRecvMsg(int, struct ng_mesg *, size_t, char *); 57int NgRecvAsciiMsg(int, struct ng_mesg *, size_t, char *); 58int NgSendData(int, const char *, const u_char *, size_t); 59int NgRecvData(int, u_char *, size_t, char *); 60int NgSetDebug(int); 61void NgSetErrLog(void (*)(const char *fmt, ...), 62 void (*)(const char *fmt, ...)); 63__END_DECLS 64 65#endif 66 |