summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-164-4/+54
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* Break long lines that I introduced in a previous commit.eivind1999-04-111-4/+7
|
* Add missing SYSCTL_DECL(_net_link); required by newer sysctl implementation.wpaul1999-04-071-1/+2
| | | | Noticed by: Matthew Dodd <winter@jurai.net>
* Add a missing declaration that broke the compilation of this file.jdp1999-04-031-0/+1
|
* Merge from RELENG_2_2, per luigi. Fixes the ntoh?() issue for thensayer1999-03-301-3/+30
| | | | | | | | firewall code when called from the bridge code. PR: 10818 Submitted by: nsayer Obtained from: luigi
* rganize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better,phk1999-03-302-30/+51
| | | | | | centralize the code. Remember to call TLF/TLS on the hardware in CISCO mode.
* Implement TUNSIFMODE and TUNSLMODE.des1999-03-243-3/+47
| | | | Submitted by: Alfred Perlstein <bright@cygnus.rush.net>
* Grrr... botched remote commit. Let's try this again: vlan updates,wpaul1999-03-152-2/+11
| | | | take two.
* Updates for vlan stuff:wpaul1999-03-151-25/+228
| | | | | | | | | | | | | - add support for devices that do vlan tag insertion/deletion in firmware - add multicast support - add vlan_unconfig() to complement vlan_config() - update ifconfig(8) to configure vlan interfaces (vlan tag and parent device) Also fix a small bug in ifconfig; sometimes sa_family is overwritten by ioctls. Reviewed by: wollman
* Submitted by: Larry Lilejulian1999-03-103-34/+69
| | | | | | | | Move the Olicom token ring driver to the officially sanctionned location of /sys/contrib. Also fix some brokenness in the generic token ring support. Be warned that if_dl.h has been changed and SOME programs might like recompilation.
* Also add 1000baseSX, 1000baseLX, 1000baseCX and 1000baseTX media types. Atwpaul1999-03-071-0/+12
| | | | | this point I don't know if there are any actual gigabit ethernet devices that support media other than 1000baseSX (multi-mode fiber) but who knows.
* Add 1000baseFX, 10baseSTP and 10baseFL media types. The 1000baseFXwpaul1999-03-061-1/+19
| | | | | | | | type may become necessary soon. :) Also add a couple of additional macros that NetBSD has which we don't. Nothing in FreeBSD uses these (yet) so adding them in shouldn't hurt anything.
* The fe driver supports bridging, so added it to lists.kato1999-02-251-3/+3
|
* Misplaces brace puts important code into debug section.phk1999-02-231-5/+5
| | | | | Reviewed by: phk Submitted by: Stefan Bethke <stefan.bethke@hanse.de>
* Set ifq_maxlen.dt1999-02-201-1/+2
|
* World, I'd like you to meet the first FreeBSD token Ring driver.julian1999-02-204-5/+508
| | | | | | | | This is for various Olicom cards. An IBM driver is following. This patch also adds support to tcpdump to decode packets on tokenring. Congratulations to the proud father.. (below) Submitted by: Larry Lile <lile@stdio.com>
* Remove all the #ifdef notyet stuff, it is probably never going to happenphk1999-02-191-77/+27
| | | | | | | | | | | | | | in the first place. Use 3sec timeout as recommended. Reorder some debug messages. Label som of the 0x%x in debug messages Make sppp_print_bytes() use %*D and handle zero length. If we don't have MAGIC numbers, don't yell loopback if 0 == 0
* Since ifru_flags is a short, we can fit in a copy of the flagsphk1999-02-192-5/+6
| | | | | | | before they got changed. This can help eliminate much of the gymnastics drivers do in their ioctl routines to figure this out. Remove commented out IFF_NOTRAILERS
* * Change sysctl from using linker_set to construct its tree using SLISTs.dfr1999-02-163-2/+5
| | | | | | | | | | This makes it possible to change the sysctl tree at runtime. * Change KLD to find and register any sysctl nodes contained in the loaded file and to unregister them when the file is unloaded. Reviewed by: Archie Cobbs <archie@whistle.com>, Peter Wemm <peter@netplex.com.au> (well they looked at it anyway)
* 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.
* Print a message if the driver didn't initialize ifq_maxlen.phk1999-02-011-2/+5
| | | | | | | Drivers should be updated if they get flagged by this message. (The reason this is important is because we do not have a way to catch this mistake for interfaces added after ifinit() runs.)
* Slight cleanups. There were 2 ways of getting the arpcom from the ifp.julian1999-01-311-23/+22
| | | | | Both equally bogus. Make it a macro so that we can pretend it's not bogus and maybe make it less so some time in the future.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-278-19/+19
| | | | 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>
* Undo #undef KERNEL hack for vnode.h to avoid vnode_if.h.peter1999-01-172-15/+2
| | | | | | | | | XXX It probably makes sense to have a flag for bsd.kern.mk to avoid these rules. XXX IO_NDELAY seems to be the main reason for it, when used in a cdevsw read or write "flag" context. Perhaps a redundant declaration somewhere like sys/conf.h might help remove the need for vnode.h in these device drivers in the first place.
* Remove unused variable & clean up a couple of style issues.eivind1999-01-121-5/+5
|
* Remove one unused variable.luigi1998-12-311-2/+1
|
* Update sppp support to i4b level. This includes the new spppcontrolphk1998-12-272-35/+126
| | | | program to set PPP options like authentication with.
* More isdn4bsd convergence: cleanup log messages.phk1998-12-261-18/+24
|
* Converge further on the isdn4bsd version of this file.phk1998-12-261-27/+25
|
* clean up more timeout/untimeout portability stuff.phk1998-12-261-34/+19
| | | | make sure flags and stuff are set sensibly.
* Add two fields for the lower layers convenience.phk1998-12-201-1/+5
|
* Straigthen out the use of the tls and tlf callbacks.phk1998-12-161-9/+14
| | | | | | | | | Not tested on the if_sr, if_cx and if_ar drivers, but expected to work just the same as it used to. Any users of these drivers (or even better: donors of hardware for them) please contact phk@freebsd.org so we can test the next batch of changes to if_sppp.
* Generalize the if_up() and if_down() functions under the namesphk1998-12-162-15/+42
| | | | | | if_route() and if_unroute(). This is first step towards sanitizing IFF_UP and IFF_RUNNING
* Bridging support. Wait for LINT to be updated before trying it.luigi1998-12-143-11/+32
|
* Make the use of 'disc' vs 'ds' as prefix consistent by making all 'disc'.eivind1998-12-141-15/+15
| | | | This fix the conflict of having two functions called 'dsioctl()'.
* (almost) null commit, recording message for previous commit:phk1998-12-111-4/+4
| | | | | | | s/_NET_IF_HDLC_H_/_NET_IF_SPPP_H_/ Unfold almost correct and hideous beyond reason, boolean expression, making it more correct at the same time.
* *** empty log message ***phk1998-12-112-11/+16
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-072-4/+1
| | | | and local variables, goto labels, and functions declared but not defined.
* Propagate unsignedness to all variants of 'k', and reorganize theeivind1998-12-071-24/+38
| | | | | | | | conditionals to be fully resistent against overflow in unsigned computations. Potential problem pointed out by: bde Reviewed by: bde
* Remove guard for < 0 on an unsigned variable.eivind1998-12-071-2/+2
|
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-045-16/+21
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* I got another batch of suggestions for cosmetic changes from bde.truckman1998-11-112-4/+4
|
* Installed the second patch attached to kern/7899 with some changes suggestedtruckman1998-11-114-29/+39
| | | | | | | | | | | | | | | | by bde, a few other tweaks to get the patch to apply cleanly again and some improvements to the comments. This change closes some fairly minor security holes associated with F_SETOWN, fixes a few bugs, and removes some limitations that F_SETOWN had on tty devices. For more details, see the description on the PR. Because this patch increases the size of the proc and pgrp structures, it is necessary to re-install the includes and recompile libkvm, the vinum lkm, fstat, gcore, gdb, ipfilter, ps, top, and w. PR: kern/7899 Reviewed by: bde, elvind
* * Use explicitly sized types for grovelling around inside packets.dfr1998-10-311-21/+21
| | | | | | * On the alpha, make sure memory accesses are only made to aligned boundaries. Submitted by: Alex Nash <nash@mcs.net>
* Check the timeval passed to BIOCSRTIMEOUT with itimerfix. Use tvtohz()alex1998-10-081-8/+9
| | | | | | | | | | | | | to convert the timeval into a tick count. Suggested by: bde Reviewed by: bde Handle hz > 1000 in BIOCGRTIMEOUT. Pointed out by: bde Reviewed by: bde Obtained from: OpenBSD
* Minor cleanup: kill a couple of unused variables, and a couple ofjoerg1998-10-061-3/+7
| | | | | | uninitialized variables. Obtained from: The isdn4bsd project (partially)
* In an attempt to reduce the huge number of differences between thejoerg1998-10-061-225/+337
| | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD repository version of this file and the isdn4bsd version, adopt those changes from the i4b version that make this file BSD-version independent. I attempted to avoid uglifying this file too much, thus deviated a little from the i4b version (and hope they will adopt the changes, too). The diffs mostly concentrate on: . #include differences between the systems . different callout handling between FreeBSD vs. Net/OpenBSD . interface naming (Net/OpenBSD store the ASCII name including the unit # in struct ifnet, FreeBSD only the name) . use of random() in FreeBSD vs. time-based pseudo-randomization in Net/OpenBSD (for loopback detection ad CHAP challenges -- i assume at least OpenBSD could also benefit from random(), but that's the way i've got this file) . interface address list elements are named a little differently between FreeBSD and Net/OpenBSD I attempted to segregate those compat fixes from other code fixes and enhancements. Obtained from: The isdn4bsd project
* Fix a =/== confusion that caused the CHAP type renegotiation tojoerg1998-10-051-2/+2
| | | | | | completely fail. Obtained from: The isdn4bsd project (original author unknown right now)
* The length argument for bcopy is a size_t, not u_int. Adjustalex1998-10-041-5/+5
| | | | bpf_mcopy() and catchpacket() prototypes accordingly.
OpenPOWER on IntegriCloud