ng_mppc.c (110409) | ng_mppc.c (129823) |
---|---|
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 110409 2003-02-05 19:11:11Z ambrisko $ | 40 * $FreeBSD: head/sys/netgraph/ng_mppc.c 129823 2004-05-29 00:51:19Z 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 */ --- 101 unchanged lines hidden (view full) --- 150 struct mbuf *m, struct mbuf **resultp); 151static void ng_mppc_getkey(const u_char *h, u_char *h2, int len); 152static void ng_mppc_updatekey(u_int32_t bits, 153 u_char *key0, u_char *key, struct rc4_state *rc4); 154static void ng_mppc_reset_req(node_p node); 155 156/* Node type descriptor */ 157static 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 */ --- 101 unchanged lines hidden (view full) --- 150 struct mbuf *m, struct mbuf **resultp); 151static void ng_mppc_getkey(const u_char *h, u_char *h2, int len); 152static void ng_mppc_updatekey(u_int32_t bits, 153 u_char *key0, u_char *key, struct rc4_state *rc4); 154static void ng_mppc_reset_req(node_p node); 155 156/* Node type descriptor */ 157static struct ng_type ng_mppc_typestruct = { |
158 NG_ABI_VERSION, 159 NG_MPPC_NODE_TYPE, 160 NULL, 161 ng_mppc_constructor, 162 ng_mppc_rcvmsg, 163 ng_mppc_shutdown, 164 ng_mppc_newhook, 165 NULL, 166 NULL, 167 ng_mppc_rcvdata, 168 ng_mppc_disconnect, 169 NULL | 158 .version = NG_ABI_VERSION, 159 .name = NG_MPPC_NODE_TYPE, 160 .constructor = ng_mppc_constructor, 161 .rcvmsg = ng_mppc_rcvmsg, 162 .shutdown = ng_mppc_shutdown, 163 .newhook = ng_mppc_newhook, 164 .rcvdata = ng_mppc_rcvdata, 165 .disconnect = ng_mppc_disconnect, |
170}; 171NETGRAPH_INIT(mppc, &ng_mppc_typestruct); 172 173#ifdef NETGRAPH_MPPC_ENCRYPTION 174/* Depend on separate rc4 module */ 175MODULE_DEPEND(ng_mppc, rc4, 1, 1, 1); 176#endif 177 --- 631 unchanged lines hidden --- | 166}; 167NETGRAPH_INIT(mppc, &ng_mppc_typestruct); 168 169#ifdef NETGRAPH_MPPC_ENCRYPTION 170/* Depend on separate rc4 module */ 171MODULE_DEPEND(ng_mppc, rc4, 1, 1, 1); 172#endif 173 --- 631 unchanged lines hidden --- |