summaryrefslogtreecommitdiffstats
path: root/sys/netipx
Commit message (Collapse)AuthorAgeFilesLines
* Yow! Completely change the way socket options are handled, eliminatingwollman1998-08-236-124/+118
| | | | | | another specialized mbuf type in the process. Also clean up some of the cruft surrounding IPFW, multicast routing, RSVP, and other ill-explored corners.
* Fixed printf format errors.bde1998-08-171-2/+2
|
* When system act as IPX router (sysctl -w net.ipx.ipx.ipxforwarding=1,phk1998-06-101-2/+3
| | | | | | | | | | running IPXRouted -s) between IPX configured interfaces, it generate syslog messages "ipx_ctlinput: cmd 15." even if kernel compiled with IPXPRINTFS=0 and IPX_ERRPRINTFS=0 options. PR: 6875 Reviewed by: phk Submitted by: Vladimir A. Jakovenko <vovik@ntu-kpi.kiev.ua>
* This commit fixes various 64bit portability problems required fordfr1998-06-073-7/+7
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Don't depend on "implicit int".bde1998-05-011-2/+2
|
* Make read_random() take a (void *) argument instead of (char *)phk1998-04-061-2/+2
|
* Eradicate the variable "time" from the kernel, using various measures.phk1998-03-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "time" wasn't a atomic variable, so splfoo() protection were needed around any access to it, unless you just wanted the seconds part. Most uses of time.tv_sec now uses the new variable time_second instead. gettime() changed to getmicrotime(0. Remove a couple of unneeded splfoo() protections, the new getmicrotime() is atomic, (until Bruce sets a breakpoint in it). A couple of places needed random data, so use read_random() instead of mucking about with time which isn't random. Add a new nfs_curusec() function. Mark a couple of bogosities involving the now disappeard time variable. Update ffs_update() to avoid the weird "== &time" checks, by fixing the one remaining call that passwd &time as args. Change profiling in ncr.c to use ticks instead of time. Resolution is the same. Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call hzto() which subtracts time" sequences. Reviewed by: bde
* Staticize.eivind1998-02-097-31/+33
|
* Forward declare more structs that are used in prototypes here - don'tbde1998-02-011-1/+2
| | | | depend on <sys/types.h> forward declaring common ones.
* Make INET a proper option.eivind1998-01-082-2/+8
| | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
* Moved some declarations from <sys/socket.h> to the correct places, andbde1997-12-211-1/+2
| | | | fixed everything that depended on them being misplaced.
* Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.eivind1997-12-153-5/+13
| | | | | | | | The #ifdef IPXIP in netipx/ipx_if.h is OK (used from ipx_usrreq.c and ifconfig.c only). I also fixed a typo IPXTUNNEL -> IPTUNNEL (and #ifdef'ed out the code inside, as it never could have compiled - doh.)
* Removed unused #includes.bde1997-10-281-2/+1
|
* This depends on option TCP_DEBUG for some reason, so includebde1997-10-281-1/+4
| | | | | | opt_tcp_debug.h so that the option is visible again. Restored a used #include.
* Update network code to use poll support.peter1997-09-142-6/+6
|
* Added used #include - don't depend on <sys/mbuf.h> includingbde1997-09-022-2/+4
| | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags).
* Fix all areas of the system (or at least all those in LINT) to avoid storingwollman1997-08-165-72/+67
| | | | | | | | socket addresses in mbufs. (Socket buffers are the one exception.) A number of kernel APIs needed to get fixed in order to make this happen. Also, fix three protocol families which kept PCBs in mbufs to not malloc them instead. Delete some old compatibility cruft while we're at it, and add some new routines in the in_cksum family.
* Don't depend on gcc's feature of permitting labels that aren't followedbde1997-07-011-2/+2
| | | | by a statement.
* Removed the #ifdef IPXERRORMSGS'ed code. Fix a lot of style errors that Ijhay1997-06-2622-806/+115
| | | | | introduced with the previous commit. Style fixes Submitted by: Bruce Evans <bde@FreeBSD.ORG>
* Mega IPX commit.jhay1997-05-1021-587/+861
| | | | | | | | | | | | | | | | | | | | | | | | | | Use the MAC address of an interface for the host part of an IPX address and not the MAC address of the first interface for every IPX address. This is more inline with the way others like Novell do it. Mostly Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su> Take out the error messages (the ip icmp equivalent) with #ifdef IPXERRORMSGS. This is bogus and as far as I could figure out IPX don't have anything like it. This is a leftover from its XNS heritage. If nobody complains, I will take it out completely in a few weeks. Add some more ipxstat statistics counters. Make ipxprintfs a sysctl variable and off by default. Add IPX Netbios "routing" support. This is off by default and can be switched on with a sysctl knob. General code cleanup to at least use the same style throughout the IPX code, but also be more style(9) conformant. Also make a lot of functions static. If I don't get any complaints I'll bring all of this over to the 2.2 tree in a few weeks.
* Oops I missed one of the pr_usrreqs changes.jhay1997-05-011-1/+4
|
* Make ipx compile again after the network interface changes.jhay1997-05-019-71/+98
|
* Change IPX to use the pr_usrreqs structure.jhay1997-04-055-414/+565
|
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-243-6/+6
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-2222-22/+22
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1422-22/+22
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Convert the interface address and IP interface address structureswollman1996-12-134-31/+18
| | | | | | to TAILQs. Fix places which referenced these for no good reason that I can see (the references remain, but were fixed to compile again; they are still questionable).
* Enlarge the transmit and receive bufferspace of ipx. Make it tweakablejhay1996-11-242-7/+19
| | | | with sysctl.
* Accept odd length ipx packets. (Win95 and some dialup servers use it.)jhay1996-08-181-6/+10
| | | | Original idea submitted by: Atsushi Murai <amurai@spec.co.jp>
* Clean up -Wunused warnings.gpalmer1996-06-121-3/+1
| | | | Reviewed by: bde
* Make IPXIP work.jhay1996-05-084-18/+18
| | | | Reviewed by: Gary Palmer gpalmer@FreeBSD.ORG
* Zero out some (unused) entries in the ipxsw initiliser which only lead togpalmer1996-05-081-6/+6
| | | | | | compile-tiome warnings. Tested by: John Hay <jhay@mikom.csir.co.za>
* Don't use a newfangled auto initializer. Initialize everything byjhay1996-04-131-2/+6
| | | | | | | | | | | | | | | | | assignment to avoid one bug and several pessimizations. In the old version, gcc-2.6.3 (i386 version) generates 16 bytes of static data and copies it using 4 4-byte load-stores. gcc-2.7.2 generates 2 1-byte stores and calls memset() to zero 14 bytes. Linking fails because memset() doesn't exist in the kernel. In both versions, the 2 bytes stored directly are all that is actually used unless the null padding at the end is used, since the 3 4-byte words in the middle are initialized again by struct assignment. These words are misaligned. gcc generates misaligned load-stores for (small) misaligned struct copies. Submitted by: Bruce Evans
* Eliminated sloppy common-style declarations. Now there are no duplicatedbde1996-04-133-5/+12
| | | | | | common labels for LINT. There are still some common declarations for the !KERNEL case in tcp_debug.h and spx_debug.h. trpt depends on the ones in tcp_debug.h.
* Move or add #include <queue.h> in preparation for upcoming struct socketdg1996-03-118-9/+16
| | | | changes.
* Kill XNS.wollman1996-02-131-2/+2
| | | | | While we're at it, fix socreate() to take a process argument. (This was supposed to get committed days ago...)
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-303-7/+7
| | | | a bunch of system include files.
* Finally demolished the last, tottering remnants of GATEWAY. If you wantwollman1996-01-052-19/+21
| | | | | | | to enable IP forwarding, use sysctl(8). Also did the same for IPX, which involved inventing a completely new MIB from whole cloth (which I may not quite have correct); be aware of this if you use IPX forwarding. (The two should never have been controlled by the same option anyway.)
* Oops, forgot to update this to match pr_ctlinput.bde1995-12-161-3/+3
| | | | Added comment about bogus LOMTU.
* Uniformized pr_ctlinput protosw functions. The third arg is now `voidbde1995-12-166-15/+23
| | | | | | | *' instead of caddr_t and it isn't optional (it never was). Most of the netipx (and netns) pr_ctlinput functions abuse the second arg instead of using the third arg but fixing this is beyond the scope of this round of changes.
* Cleaned up prototypes:bde1995-11-247-131/+112
| | | | | | | | | | | | - don't #include other headers just to get struct names. - don't use __BEGIN_DECLS/__END_DECLS for system prototypes. It is for user prototypes. - don't use extern. - don't use lines longer than 80 columns. - use alphabetical order. - use tabs. Uniformized idempotency ifdefs.
* Fixed a bogus name (ifn_en) that was introduced when a type mismatchbde1995-11-241-4/+4
| | | | was fixed.
* Added #include <sys/queue.h>. This will be required when I movebde1995-11-242-2/+4
| | | | | the (inline) implementations of insque() and remque() from <machine/cpufunc.h> to <sys/queue.h>.
* Undid bogus cleanups. 0 was mistyped as NULL.bde1995-11-242-5/+5
|
* Suggested by: bdejulian1995-11-0422-22/+66
| | | | clear up some confusion about Id: lines on behalf of the author
* Submitted by: Mike Mitchell (mitchell@ref.tfs.com)julian1995-10-3122-35/+46
| | | | | these patches bring the ipx code up to the point that it compiles cleanly with the -W arguments suggested by bruce.
* Submitted by: Mike mitchelljulian1995-10-311-0/+72
| | | | add prototypes htat are related to ipx.ip tunnelling
* Submitted by: Mike Mitchelljulian1995-10-3112-131/+179
| | | | | revise prototypes etc. cleanups (probably more coming)
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-2622-0/+6248
Submitted by: Mike Mitchell, supervisor@alb.asctmd.com This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on.. Mikes been using it for a year or so but on 2.0 more changes and stuff will be merged in from other developers now that this is in. Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com
OpenPOWER on IntegriCloud