summaryrefslogtreecommitdiffstats
path: root/sys/net/if_strip.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-7/+8
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* First step towards more sane time handling in the kernel -- this changestholo2004-06-211-10/+10
| | | | | | | | things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
* check for input queue congestion on those as well and call if_congestion whenhenning2004-04-251-1/+3
| | | | | | needed; these are slightly different so that we cannot use the new IF_INPUT_ENQUEUE macro deraadt ok
* de-register. deraadt okitojun2003-12-101-49/+49
|
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-2/+2
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* string fixes; tedu okderaadt2003-05-031-2/+3
|
* remove the altq classifier code which is replaced by pf and no longer used.kjc2003-01-071-8/+2
| | | | ok henning@, deraadt@
* KNF - return is not a function.itojun2002-09-111-14/+14
|
* no need for check if m0 is NULL, as we have touched it already.itojun2002-07-301-2/+2
| | | | From: tedu <grendel@zeitbombe.org>
* allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowitojun2002-06-301-1/+2
| | | | | the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
* KNFitojun2002-06-241-5/+3
|
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-5/+5
|
* First round of __P removal in sysmillert2002-03-141-20/+20
|
* sync with KAMEkjc2002-03-121-1/+7
| | | | | ALTQify more drivers. ok millert@
* introduce the ALTQ queue macros into sys/net files.kjc2001-06-271-11/+24
| | | | | | | | | | | | | | the new model removes direct references to the fields in ifp->if_snd, and defines the following macros to manipulate ifp->if_snd. IFQ_ENQUEUE(ifq, m, pktattr, err) IFQ_DEQUEUE(ifq, m) IFQ_POLL(ifq, m) IFQ_PURGE(ifq) IFQ_IS_EMPTY(ifq) the new model also enforces some rules regarding how to use these macros. details are descrined in http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt
* change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.itojun2001-06-151-6/+6
| | | | | | | | follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed.
* Fix PR 342: the problem was that the code was assuming that when theangelos2000-12-301-14/+24
| | | | | | strip interface was configured up, a tty was already associated with it -- and proceeded to probe/reset/initialize it through a watchdog routine...
* New timeouts.art2000-06-261-5/+7
|
* we don't need to include buf.hart1999-04-221-2/+1
|
* undef SLMTU if it's been externally definedangelos1998-02-101-1/+4
|
* Minor changes from ppp 2.3.1millert1997-09-051-2/+2
|
* strip%d not st%dderaadt1997-06-201-2/+2
|
* pass Wstrict-prototypes; grr, PR#193deraadt1997-06-011-4/+4
|
* OpenBSD tags + some prototyping policeniklas1997-02-241-0/+1
|
* sync to netbsd 0901deraadt1996-10-041-290/+505
|
* __OpenBSD__deraadt1996-08-221-9/+9
|
* various fixesderaadt1996-07-271-112/+198
|
* init sc_unit properlyderaadt1996-06-101-2/+2
|
* syncderaadt1996-05-221-0/+1714