summaryrefslogtreecommitdiff
path: root/sys/netatalk/ddp_output.c
Commit message (Collapse)AuthorAgeFilesLines
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.Bosko Milekic2000-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem. Notes: svn path=/head/; revision=70254
* 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
* 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
* 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
* Remove stray debug message.Steve Price1998-05-241-1/+0
| | | | | | | PR: 6722 Notes: svn path=/head/; revision=36324
* Fix various problems with netatalk kernel support.Julian Elischer1997-10-291-3/+3
| | | | | | | | | | | 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
* Removed unused #includes.Bruce Evans1997-09-071-6/+0
| | | | Notes: svn path=/head/; revision=29188
* Cleaned up a little.Bruce Evans1997-09-071-1/+0
| | | | Notes: svn path=/head/; revision=29187
* Add a per-interface-address pointer to a function that can be suppliedJulian Elischer1997-08-281-3/+19
| | | | | | | | | | | | | | | 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
* make the netatalk output routine matcy the prtotype used in theJulian Elischer1997-03-051-1/+4
| | | | | | | protocol structure. Silences a warning from Gcc. Notes: svn path=/head/; revision=23396
* Updated #includes to 4.4Lite style.Bruce Evans1996-09-101-5/+5
| | | | Notes: svn path=/head/; revision=18207
* Submitted by: archie@whistle.comJulian Elischer1996-07-231-123/+3
| | | | | | | appletalk cleanups Notes: svn path=/head/; revision=17254
* Obtained from: netatalk distribution netatalk@itd.umich.eduJulian Elischer1996-05-241-0/+298
Kernel Appletalk protocol support both CAP and netatalk can make use of this.. still needs some owrk but it seemd the right tiime to commit it so other can experiment. Notes: svn path=/head/; revision=15885