summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix possible SLIOCSUNIT panicache2000-02-201-0/+1
| | | | | | PR: 16564 Submitted by: ru Approved by: jkh
* Remove some #if NFOO > 0 that are always true because of config rules.peter2000-01-291-4/+1
|
* Re-allocate cblocks after changing the slip unit number.ru1999-10-281-0/+3
|
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-251-21/+0
| | | | | | | | | | | | This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags.
* Don't call if_up() here, just set IFF_UP.ru1999-09-141-1/+1
| | | | | PR: 12251 Reviewed by: wollman
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Rename bpfilter to bpf.des1999-07-061-11/+11
|
* Fix a printf int/long problem on the Alphapeter1999-07-011-2/+3
|
* Suser() simplification:phk1999-04-271-2/+2
| | | | | | | | | | | | | | | | | | | 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.
* Get rid of IFF_BROADCAST from default IFF_ slip options. This accidentlydillon1999-02-021-2/+2
| | | | snuck in during the big -Wall commit and wasn't supposed to be in there.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-2/+2
| | | | kernel compile
* This is a rather large commit that encompasses the new swapper,dillon1999-01-211-3/+9
| | | | | | | | | | changes to the VM system to support the new swapper, VM bug fixes, several VM optimizations, and some additional revamping of the VM code. The specific bug fixes will be documented with additional forced commits. This commit is somewhat rough in regards to code cleanup issues. Reviewed by: "John S. Dyson" <root@dyson.iquest.net>, "David Greenman" <dg@root.com>
* Cast pointers to uintptr_t/intptr_t instead of to u_long/long,bde1998-07-151-2/+2
| | | | | | | respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types.
* This commit fixes various 64bit portability problems required fordfr1998-06-071-6/+6
| | | | | | | | | | 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.
* Eradicate the variable "time" from the kernel, using various measures.phk1998-03-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "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
* Implement the spirit but not the letter of Terrys hot-char patch.phk1998-02-131-2/+3
| | | | | | | The differences Terrys patch and this patch are: * Remove a lot of un-needed comments. * Don't put l_hotchar at the front of stuct linesw, there is no need to. * Use the #defines for the hotchar in the SLIP and PPP line disciplines
* Staticize.eivind1998-02-091-2/+2
|
* Make INET a proper option.eivind1998-01-081-2/+3
| | | | | | | | | | | | 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>.
* MALLOC->mallocache1997-12-191-3/+3
| | | | Suggested-by: bde
* SUNIT: use MALLOC/FREE and M_NOWAITache1997-12-191-4/+8
|
* Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that arebde1997-12-061-2/+2
| | | | | not handled at a particular level. This fixes mainly restarting of interrupted TIOCDRAINs and TIOCSETA{W,F}s.
* Preserve old SC_STATIC value after units exchangeache1997-10-071-1/+3
|
* Update for new callout interface.gibbs1997-09-211-13/+17
|
* SUNIT: exchange up/down states tooache1997-08-131-1/+7
|
* Removed unused #includes.bde1997-08-021-4/+1
|
* Use malloc to save space for temp SUNIT variableache1997-07-281-9/+10
| | | | Submitted by: bde
* Move tmpnc struct out of stack, too largeache1997-07-271-2/+3
| | | | Suggested by: bde
* SUNIT: exchange back whole ifnet structures since they are in the linkedache1997-07-261-7/+6
| | | | list, not device numbers only
* Forget to change units in prev. SUNIT commit. Move variales to localache1997-07-261-2/+7
| | | | section for SUNIT.
* Exchange whole structures on SUNIT, not unit+flags fields only.ache1997-07-261-6/+6
| | | | | It is needed because if_attach() assumes fixed units order and pass it to ifconfig
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-241-2/+2
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.bde1997-03-231-2/+2
| | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all.
* Fixed clist limits. I got them wrong several years ago in rev.1.9bde1997-03-111-5/+5
| | | | | (1994/11/26). Packets with more than approximately 128 0xc0's or 0xdb's in them were untransmittable.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Don't try to do anything with the `ifr' parameter for SIOCADDMULTIwollman1997-01-171-15/+0
| | | | and SIOCDELMULTI; it is guaranteed to be null in the new system.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Use queue macros for the list of interfaces. Next stop: ifaddrs!wollman1996-12-111-2/+1
|
* Add primitive link MIB support.wollman1996-10-111-1/+3
|
* Remove another extraneous setting of if_lastchangegpalmer1996-06-241-2/+1
|
* Since the updates to ifnet.if_lastchange are so rare (relativelygpalmer1996-06-121-2/+2
| | | | | | | speaking), go for the extra accuracy and call microtime() to get the current time. Pointed Out By: bde
* Change the use if ifnet.if_lastchange to be more in line withgpalmer1996-06-101-4/+2
| | | | | SNMP requirements. Update description of ifnet.if_lastchange in if.h to indicate this.
* When two units swapped, copy SC_STATIC flag too, not clear itache1996-05-131-1/+2
|
* Prevent mixing of static and dynamic unit allocation strategiesache1996-05-131-6/+21
|
* Regardless of whether or not the check for IPv4 is useful, we certainlydg1996-04-251-3/+3
| | | | don't need to assign the "ip" pointer twice.
* Reject all IP versions but 4.phk1996-04-241-2/+3
|
* Removed never-used #includes of <machine/cpu.h>. Many were apparentlybde1996-04-071-3/+1
| | | | copied from bad examples.
* Clean up Ethernet drivers:wollman1996-02-061-8/+8
| | | | | | | | - fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly
* Another mega commit to staticize things.phk1995-12-141-8/+16
|
* Replaced bogus macros for entry points to unconfigured line disciplinesbde1995-11-051-6/+5
| | | | | | | | | | | | | | by functions. tty_conf.c: Cleaned up formatting of tables. Removed another ARGSUSED for consistency. conf.h: Introduced typedefs for line discipline functions. Backed out most of previous revision (it is done elsewhere).
* slcompress: split one of the functions into two parts, to allow use by bothpeter1995-10-311-2/+2
| | | | | | | if_sl and if_ppp (from ppp-2.2), eliminating the nearly identical pppcompress.[ch] code. Add maximum VJ compression states argument to sl_compress_init(). if_sl: call sl_compress_init() with the extra argument.
OpenPOWER on IntegriCloud