ipx_input.c (33181) | ipx_input.c (34961) |
---|---|
1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ipx_input.c 35 * | 1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ipx_input.c 35 * |
36 * $Id: ipx_input.c,v 1.14 1997/06/26 19:35:46 jhay Exp $ | 36 * $Id: ipx_input.c,v 1.15 1998/02/09 06:10:19 eivind Exp $ |
37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/mbuf.h> 42#include <sys/protosw.h> 43#include <sys/socket.h> 44#include <sys/kernel.h> --- 4 unchanged lines hidden (view full) --- 49#include <net/netisr.h> 50 51#include <netipx/ipx.h> 52#include <netipx/spx.h> 53#include <netipx/ipx_if.h> 54#include <netipx/ipx_pcb.h> 55#include <netipx/ipx_var.h> 56 | 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/mbuf.h> 42#include <sys/protosw.h> 43#include <sys/socket.h> 44#include <sys/kernel.h> --- 4 unchanged lines hidden (view full) --- 49#include <net/netisr.h> 50 51#include <netipx/ipx.h> 52#include <netipx/spx.h> 53#include <netipx/ipx_if.h> 54#include <netipx/ipx_pcb.h> 55#include <netipx/ipx_var.h> 56 |
57#include <machine/random.h> 58 |
|
57int ipxcksum = 0; 58SYSCTL_INT(_net_ipx_ipx, OID_AUTO, checksum, CTLFLAG_RW, 59 &ipxcksum, 0, ""); 60 61static int ipxprintfs = 0; /* printing forwarding information */ 62SYSCTL_INT(_net_ipx_ipx, OID_AUTO, ipxprintfs, CTLFLAG_RW, 63 &ipxprintfs, 0, ""); 64 --- 35 unchanged lines hidden (view full) --- 100 */ 101 102void 103ipx_init() 104{ 105 ipx_broadnet = *(union ipx_net *)allones; 106 ipx_broadhost = *(union ipx_host *)allones; 107 | 59int ipxcksum = 0; 60SYSCTL_INT(_net_ipx_ipx, OID_AUTO, checksum, CTLFLAG_RW, 61 &ipxcksum, 0, ""); 62 63static int ipxprintfs = 0; /* printing forwarding information */ 64SYSCTL_INT(_net_ipx_ipx, OID_AUTO, ipxprintfs, CTLFLAG_RW, 65 &ipxprintfs, 0, ""); 66 --- 35 unchanged lines hidden (view full) --- 102 */ 103 104void 105ipx_init() 106{ 107 ipx_broadnet = *(union ipx_net *)allones; 108 ipx_broadhost = *(union ipx_host *)allones; 109 |
108 ipx_pexseq = time.tv_usec; | 110 read_random((char *)&ipx_pexseq, sizeof ipx_pexseq); |
109 ipxintrq.ifq_maxlen = ipxqmaxlen; 110 ipxpcb.ipxp_next = ipxpcb.ipxp_prev = &ipxpcb; 111 ipxrawpcb.ipxp_next = ipxrawpcb.ipxp_prev = &ipxrawpcb; 112 113 ipx_netmask.sipx_len = 6; 114 ipx_netmask.sipx_addr.x_net = ipx_broadnet; 115 116 ipx_hostmask.sipx_len = 12; --- 424 unchanged lines hidden --- | 111 ipxintrq.ifq_maxlen = ipxqmaxlen; 112 ipxpcb.ipxp_next = ipxpcb.ipxp_prev = &ipxpcb; 113 ipxrawpcb.ipxp_next = ipxrawpcb.ipxp_prev = &ipxrawpcb; 114 115 ipx_netmask.sipx_len = 6; 116 ipx_netmask.sipx_addr.x_net = ipx_broadnet; 117 118 ipx_hostmask.sipx_len = 12; --- 424 unchanged lines hidden --- |