aboutsummaryrefslogtreecommitdiff
path: root/sys/netatalk
Commit message (Collapse)AuthorAgeFilesLines
* Convert more malloc+bzero to malloc+M_ZERO.David Malone2000-12-083-6/+3
| | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-11-252-0/+4
| | | | | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary. Notes: svn path=/head/; revision=69152
* Move suser() and suser_xxx() prototypes and a related #define fromPoul-Henning Kamp2000-10-293-3/+6
| | | | | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>. Notes: svn path=/head/; revision=67893
* Just need to pass the address family to if_simloop(), not the whole sockaddr.Archie Cobbs2000-05-241-1/+3
| | | | Notes: svn path=/head/; revision=60889
* Slight cleanup of aarp codeJulian Elischer2000-03-291-11/+13
| | | | | | | | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie> PR: kern/17583 This PR is still open as Ther is still ongoing investigation. Notes: svn path=/head/; revision=58795
* Clean up some loose ends in the network code, including the X.25 and ISOPeter Wemm2000-02-131-1/+7
| | | | | | | | | | #ifdefs. Clean out unused netisr's and leftover netisr linker set gunk. Tested on x86 and alpha, including world. Approved by: jkh Notes: svn path=/head/; revision=57178
* Move the *intrq variables into net/intrq.c and unconditionallyBrian Somers2000-01-241-2/+5
| | | | | | | | | | | | | | include this in all kernels. Declare some const *intrq_present variables that can be checked by a module prior to using *intrq to queue data. Make the if_tun module capable of processing atm, ip, ip6, ipx, natm and netatalk packets when TUNSIFHEAD is ioctl()d on. Review not required by: freebsd-hackers Notes: svn path=/head/; revision=56555
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-293-3/+9
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* Change suser_xxx() to suser() where it applies.Poul-Henning Kamp1999-04-272-2/+2
| | | | Notes: svn path=/head/; revision=46116
* Suser() simplification:Poul-Henning Kamp1999-04-273-3/+3
| | | | | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code. Notes: svn path=/head/; revision=46112
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-274-5/+5
| | | | | | | kernel compile Notes: svn path=/head/; revision=43305
* De-staticize and add prototype for main debug function. I'll turnEivind Eklund1999-01-121-2/+3
| | | | | | | this into a DDB command in the next staticization run. Notes: svn path=/head/; revision=42571
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-074-18/+4
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* Staticize.Eivind Eklund1998-11-261-2/+2
| | | | Notes: svn path=/head/; revision=41362
* Fixed printf format errors.Bruce Evans1998-08-171-8/+9
| | | | Notes: svn path=/head/; revision=38373
* fix broken loopback code for ddp (again)Julian Elischer1998-08-041-4/+37
| | | | | | | Submitted by: Stefan Bethke <stb@hanse.de> Notes: svn path=/head/; revision=38114
* Typo fix: teh --> (the|they)Alexander Langer1998-07-301-1/+1
| | | | Notes: svn path=/head/; revision=37965
* Fix braino in last commit.Julian Elischer1998-07-131-1/+1
| | | | | | | Not even sure how I got this commit in as it didn't even compile. Notes: svn path=/head/; revision=37612
* Slight optimisation. Don't do the same calculation twice.Julian Elischer1998-07-091-17/+14
| | | | Notes: svn path=/head/; revision=37521
* Go through the loopback code with a broom..Julian Elischer1998-06-121-0/+9
| | | | | | | | | | | | | | | | | | | Remove lots'o'hacks. looutput is now static. Other callers who want to use loopback to allow shortcutting should call the special entrypoint for this, if_simloop(), which is specifically designed for this purpose. Using looutput for this purpose was problematic, particularly with bpf and trying to keep track of whether one should be using the charateristics of the loopback interface or the interface (e.g. if_ethersubr.c) that was requesting the loopback. There was a whole class of errors due to this mis-use each of which had hacks to cover them up. Consists largly of hack removal :-) Notes: svn path=/head/; revision=36908
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-072-2/+2
| | | | | | | | | | | | | 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
* spurious ntohs calls were stopping some packets from being recognisedJulian Elischer1998-06-051-6/+6
| | | | | | | | for what they are.. Taken from the netatalk mailing list. from a NetBSD user. Notes: svn path=/head/; revision=36658
* Remove stray debug message.Steve Price1998-05-241-1/+0
| | | | | | | PR: 6722 Notes: svn path=/head/; revision=36324
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.Dag-Erling Smørgrav1998-04-171-1/+1
| | | | Notes: svn path=/head/; revision=35256
* Eradicate the variable "time" from the kernel, using various measures.Poul-Henning Kamp1998-03-301-4/+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
* Removed unused #includes.Bruce Evans1998-02-251-1/+1
| | | | Notes: svn path=/head/; revision=33834
* Removed unused #includes.Bruce Evans1998-02-251-9/+0
| | | | Notes: svn path=/head/; revision=33822
* Staticize.Eivind Eklund1998-02-093-7/+7
| | | | Notes: svn path=/head/; revision=33181
* Fixed pedantic syntax errors.Bruce Evans1998-02-032-2/+2
| | | | Notes: svn path=/head/; revision=33055
* Forward declare some structs so that this file is more self-sufficient.Bruce Evans1998-02-031-0/+6
| | | | Notes: svn path=/head/; revision=33054
* Make the debug options new-style.Eivind Eklund1998-01-311-2/+4
| | | | | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere. Notes: svn path=/head/; revision=32929
* Make INET a proper option.Eivind Eklund1998-01-081-1/+1
| | | | | | | | | | | | | | | 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
* Fix various problems with netatalk kernel support.Julian Elischer1997-10-295-85/+172
| | | | | | | | | | | Some of these changes are a bit rough and will become more polished later. the changes to if_ethersubr should largely be moved to within the appletalk code, but that will happen later. A few of these were related to network-byteorder problems, and more were related to loopback failures. Notes: svn path=/head/; revision=30822
* Remove dereference of uninitialized (and unused) variable. This enablesJonathan Lemon1997-10-062-6/+0
| | | | | | | netatalk to work again. Notes: svn path=/head/; revision=30174
* Update for new callout interface.Justin T. Gibbs1997-09-213-14/+18
| | | | Notes: svn path=/head/; revision=29681
* Update network code to use poll support.Peter Wemm1997-09-142-2/+2
| | | | Notes: svn path=/head/; revision=29366
* Removed unused #includes.Bruce Evans1997-09-075-33/+4
| | | | Notes: svn path=/head/; revision=29188
* Cleaned up a little.Bruce Evans1997-09-072-3/+1
| | | | Notes: svn path=/head/; revision=29187
* Moved misplaced extern declarations.Bruce Evans1997-09-072-1/+2
| | | | Notes: svn path=/head/; revision=29186
* Staticicized.Bruce Evans1997-09-073-14/+8
| | | | Notes: svn path=/head/; revision=29185
* Fixed another sloppy common-style declaration (staticized it).Bruce Evans1997-09-072-1/+2
| | | | Notes: svn path=/head/; revision=29184
* Removed unused variable.Bruce Evans1997-09-071-1/+0
| | | | Notes: svn path=/head/; revision=29183
* Fixed sloppy common-style declarations.Bruce Evans1997-09-073-2/+6
| | | | Notes: svn path=/head/; revision=29182
* Added used #include - don't depend on <sys/mbuf.h> includingBruce Evans1997-09-023-0/+3
| | | | | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags). Notes: svn path=/head/; revision=29024
* Add a per-interface-address pointer to a function that can be suppliedJulian Elischer1997-08-282-4/+62
| | | | | | | | | | | | | | | by a protocol, to detirmine if an address matches the net this address is part of. This is needed by protocols for which netmasks "just don't work", for example appletalk. Also add the code in appletalk to make use of this new feature. Thsi fixes one of the longest standing bugs in appletalk. The inability to talk to machines to which the path is via a router which is on a different net, but the same netrange, as your interface. Protocols that do not supply this function (e.g. IP) should not be affected. Notes: svn path=/head/; revision=28845
* Fix all areas of the system (or at least all those in LINT) to avoid storingGarrett Wollman1997-08-162-100/+88
| | | | | | | | | | | 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
* Removed unused #includes.Bruce Evans1997-08-022-12/+0
| | | | Notes: svn path=/head/; revision=27845
* Actually POINT to the appletalk usrreqs struct.Julian Elischer1997-06-022-0/+2
| | | | | | | I guess no-one else tried to use this.. (yet) Notes: svn path=/head/; revision=26393
* First cut at patches to make appletalk compile againJulian Elischer1997-05-135-222/+378
| | | | | | | after the dissapearance of the USRREQ() entrypoint. Notes: svn path=/head/; revision=25791
* Fixed the type of timeout functions and removed casts that hid theBruce Evans1997-04-203-5/+6
| | | | | | | type mismatches. There was no problem in practice (at least on 386's). Notes: svn path=/head/; revision=25047