aboutsummaryrefslogtreecommitdiff
path: root/sys/netipx
Commit message (Collapse)AuthorAgeFilesLines
* When system act as IPX router (sysctl -w net.ipx.ipx.ipxforwarding=1,Poul-Henning Kamp1998-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> Notes: svn path=/head/; revision=36857
* This commit fixes various 64bit portability problems required forDoug Rabson1998-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. Notes: svn path=/head/; revision=36735
* Don't depend on "implicit int".Bruce Evans1998-05-011-2/+2
| | | | Notes: svn path=/head/; revision=35599
* Make read_random() take a (void *) argument instead of (char *)Poul-Henning Kamp1998-04-061-2/+2
| | | | Notes: svn path=/head/; revision=35060
* Eradicate the variable "time" from the kernel, using various measures.Poul-Henning Kamp1998-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 Notes: svn path=/head/; revision=34961
* Staticize.Eivind Eklund1998-02-097-31/+33
| | | | Notes: svn path=/head/; revision=33181
* Forward declare more structs that are used in prototypes here - don'tBruce Evans1998-02-011-1/+2
| | | | | | | depend on <sys/types.h> forward declaring common ones. Notes: svn path=/head/; revision=32995
* Make INET a proper option.Eivind Eklund1998-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>. Notes: svn path=/head/; revision=32350
* Moved some declarations from <sys/socket.h> to the correct places, andBruce Evans1997-12-211-1/+2
| | | | | | | fixed everything that depended on them being misplaced. Notes: svn path=/head/; revision=31927
* Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.Eivind Eklund1997-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.) Notes: svn path=/head/; revision=31742
* Removed unused #includes.Bruce Evans1997-10-281-2/+1
| | | | Notes: svn path=/head/; revision=30813
* This depends on option TCP_DEBUG for some reason, so includeBruce Evans1997-10-281-1/+4
| | | | | | | | | opt_tcp_debug.h so that the option is visible again. Restored a used #include. Notes: svn path=/head/; revision=30806
* Update network code to use poll support.Peter Wemm1997-09-142-6/+6
| | | | Notes: svn path=/head/; revision=29366
* Added used #include - don't depend on <sys/mbuf.h> includingBruce Evans1997-09-022-2/+4
| | | | | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags). Notes: svn path=/head/; revision=29024
* Fix all areas of the system (or at least all those in LINT) to avoid storingGarrett Wollman1997-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. Notes: svn path=/head/; revision=28270
* Don't depend on gcc's feature of permitting labels that aren't followedBruce Evans1997-07-011-2/+2
| | | | | | | by a statement. Notes: svn path=/head/; revision=27125
* Removed the #ifdef IPXERRORMSGS'ed code. Fix a lot of style errors that IJohn Hay1997-06-2622-806/+115
| | | | | | | | introduced with the previous commit. Style fixes Submitted by: Bruce Evans <bde@FreeBSD.ORG> Notes: svn path=/head/; revision=26965
* Mega IPX commit.John Hay1997-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. Notes: svn path=/head/; revision=25652
* Oops I missed one of the pr_usrreqs changes.John Hay1997-05-011-1/+4
| | | | Notes: svn path=/head/; revision=25347
* Make ipx compile again after the network interface changes.John Hay1997-05-019-71/+98
| | | | Notes: svn path=/head/; revision=25345
* Change IPX to use the pr_usrreqs structure.John Hay1997-04-055-414/+565
| | | | Notes: svn path=/head/; revision=24659
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includeBruce Evans1997-03-243-6/+6
| | | | | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files. Notes: svn path=/head/; revision=24204
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-2222-22/+22
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Convert the interface address and IP interface address structuresGarrett Wollman1996-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). Notes: svn path=/head/; revision=20407
* Enlarge the transmit and receive bufferspace of ipx. Make it tweakableJohn Hay1996-11-242-7/+19
| | | | | | | with sysctl. Notes: svn path=/head/; revision=19947
* Accept odd length ipx packets. (Win95 and some dialup servers use it.)John Hay1996-08-181-6/+10
| | | | | | | Original idea submitted by: Atsushi Murai <amurai@spec.co.jp> Notes: svn path=/head/; revision=17643
* Clean up -Wunused warnings.Gary Palmer1996-06-121-3/+1
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=16322
* Make IPXIP work.John Hay1996-05-084-18/+18
| | | | | | | Reviewed by: Gary Palmer gpalmer@FreeBSD.ORG Notes: svn path=/head/; revision=15688
* Zero out some (unused) entries in the ipxsw initiliser which only lead toGary Palmer1996-05-081-6/+6
| | | | | | | | | compile-tiome warnings. Tested by: John Hay <jhay@mikom.csir.co.za> Notes: svn path=/head/; revision=15682
* Don't use a newfangled auto initializer. Initialize everything byJohn Hay1996-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 Notes: svn path=/head/; revision=15245
* Eliminated sloppy common-style declarations. Now there are no duplicatedBruce Evans1996-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. Notes: svn path=/head/; revision=15239
* Move or add #include <queue.h> in preparation for upcoming struct socketDavid Greenman1996-03-118-9/+16
| | | | | | | changes. Notes: svn path=/head/; revision=14546
* Kill XNS.Garrett 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...) Notes: svn path=/head/; revision=14093
* Fix a bunch of spelling errors in the comment fields ofMike Pritchard1996-01-303-7/+7
| | | | | | | a bunch of system include files. Notes: svn path=/head/; revision=13765
* Finally demolished the last, tottering remnants of GATEWAY. If you wantGarrett Wollman1996-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.) Notes: svn path=/head/; revision=13266
* Oops, forgot to update this to match pr_ctlinput.Bruce Evans1995-12-161-3/+3
| | | | | | | Added comment about bogus LOMTU. Notes: svn path=/head/; revision=12883
* Uniformized pr_ctlinput protosw functions. The third arg is now `voidBruce Evans1995-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. Notes: svn path=/head/; revision=12881
* Cleaned up prototypes:Bruce Evans1995-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. Notes: svn path=/head/; revision=12470
* Fixed a bogus name (ifn_en) that was introduced when a type mismatchBruce Evans1995-11-241-4/+4
| | | | | | | was fixed. Notes: svn path=/head/; revision=12469
* Added #include <sys/queue.h>. This will be required when I moveBruce Evans1995-11-242-2/+4
| | | | | | | | the (inline) implementations of insque() and remque() from <machine/cpufunc.h> to <sys/queue.h>. Notes: svn path=/head/; revision=12468
* Undid bogus cleanups. 0 was mistyped as NULL.Bruce Evans1995-11-242-5/+5
| | | | Notes: svn path=/head/; revision=12467
* Suggested by: bdeJulian Elischer1995-11-0422-22/+66
| | | | | | | clear up some confusion about Id: lines on behalf of the author Notes: svn path=/head/; revision=12057
* Submitted by: Mike Mitchell (mitchell@ref.tfs.com)Julian Elischer1995-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. Notes: svn path=/head/; revision=11991
* Submitted by: Mike mitchellJulian Elischer1995-10-311-0/+72
| | | | | | | add prototypes htat are related to ipx.ip tunnelling Notes: svn path=/head/; revision=11948
* Submitted by: Mike MitchellJulian Elischer1995-10-3112-131/+179
| | | | | | | | revise prototypes etc. cleanups (probably more coming) Notes: svn path=/head/; revision=11947
* Reviewed by: julian and jhay@mikom.csir.co.zaJulian Elischer1995-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 Notes: svn path=/head/; revision=11819