ng_mppc.c (69922) | ng_mppc.c (70159) |
---|---|
1 2/* 3 * ng_mppc.c 4 * 5 * Copyright (c) 1996-2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 23 unchanged lines hidden (view full) --- 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@freebsd.org> 38 * 39 * $Whistle: ng_mppc.c,v 1.4 1999/11/25 00:10:12 archie Exp $ | 1 2/* 3 * ng_mppc.c 4 * 5 * Copyright (c) 1996-2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 23 unchanged lines hidden (view full) --- 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@freebsd.org> 38 * 39 * $Whistle: ng_mppc.c,v 1.4 1999/11/25 00:10:12 archie Exp $ |
40 * $FreeBSD: head/sys/netgraph/ng_mppc.c 69922 2000-12-12 18:52:14Z julian $ | 40 * $FreeBSD: head/sys/netgraph/ng_mppc.c 70159 2000-12-18 20:03:32Z julian $ |
41 */ 42 43/* 44 * Microsoft PPP compression (MPPC) and encryption (MPPE) netgraph node type. 45 * 46 * You must define one or both of the NETGRAPH_MPPC_COMPRESSION and/or 47 * NETGRAPH_MPPC_ENCRYPTION options for this node type to be useful. 48 */ --- 89 unchanged lines hidden (view full) --- 138 struct mbuf *m, struct mbuf **resultp); 139static void ng_mppc_getkey(const u_char *h, u_char *h2, int len); 140static void ng_mppc_updatekey(u_int32_t bits, 141 u_char *key0, u_char *key, struct rc4_state *rc4); 142static void ng_mppc_reset_req(node_p node); 143 144/* Node type descriptor */ 145static struct ng_type ng_mppc_typestruct = { | 41 */ 42 43/* 44 * Microsoft PPP compression (MPPC) and encryption (MPPE) netgraph node type. 45 * 46 * You must define one or both of the NETGRAPH_MPPC_COMPRESSION and/or 47 * NETGRAPH_MPPC_ENCRYPTION options for this node type to be useful. 48 */ --- 89 unchanged lines hidden (view full) --- 138 struct mbuf *m, struct mbuf **resultp); 139static void ng_mppc_getkey(const u_char *h, u_char *h2, int len); 140static void ng_mppc_updatekey(u_int32_t bits, 141 u_char *key0, u_char *key, struct rc4_state *rc4); 142static void ng_mppc_reset_req(node_p node); 143 144/* Node type descriptor */ 145static struct ng_type ng_mppc_typestruct = { |
146 NG_VERSION, | 146 NG_ABI_VERSION, |
147 NG_MPPC_NODE_TYPE, 148 NULL, 149 ng_mppc_constructor, 150 ng_mppc_rcvmsg, 151 ng_mppc_rmnode, 152 ng_mppc_newhook, 153 NULL, 154 NULL, --- 642 unchanged lines hidden --- | 147 NG_MPPC_NODE_TYPE, 148 NULL, 149 ng_mppc_constructor, 150 ng_mppc_rcvmsg, 151 ng_mppc_rmnode, 152 ng_mppc_newhook, 153 NULL, 154 NULL, --- 642 unchanged lines hidden --- |