xref: /dragonfly/sys/netgraph7/ng_sppp.h (revision 335b9e93)
1 /*
2  * ng_sppp.h Netgraph to Sppp module.
3  */
4 
5 /*-
6  * Copyright (C) 2002-2004 Cronyx Engineering.
7  * Copyright (C) 2002-2004 Roman Kurakin <rik@cronyx.ru>
8  *
9  * This software is distributed with NO WARRANTIES, not even the implied
10  * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  *
12  * Authors grant any other persons or organisations a permission to use,
13  * modify and redistribute this software in source and binary forms,
14  * as long as this message is kept with the software, all derivative
15  * works or modified versions.
16  *
17  * $FreeBSD: src/sys/netgraph/ng_sppp.h,v 1.3 2005/02/03 13:03:31 ru Exp $
18  * $DragonFly: src/sys/netgraph7/ng_sppp.h,v 1.2 2008/06/26 23:05:35 dillon Exp $
19  * Cronyx Id: ng_sppp.h,v 1.1.2.6 2004/03/01 15:17:21 rik Exp $
20  */
21 
22 #ifndef _NETGRAPH_SPPP_H_
23 #define _NETGRAPH_SPPP_H_
24 
25 /* Node type name and magic cookie */
26 #define NG_SPPP_NODE_TYPE		"sppp"
27 #define NGM_SPPP_COOKIE			1040804655
28 
29 /* Interface base name */
30 #define NG_SPPP_IFACE_NAME		"sppp"
31 
32 /* My hook names */
33 #define NG_SPPP_HOOK_DOWNSTREAM		"downstream"
34 
35 /* Netgraph commands */
36 enum {
37 	NGM_SPPP_GET_IFNAME = 1,	/* returns struct ng_sppp_ifname */
38 };
39 
40 #endif /* _NETGRAPH_SPPP_H_ */
41