summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Change BPF_ALIGNMENT to long, necessary for correct alignment on Alpha.alex1998-10-041-2/+2
|
* Support hz > 1000 (Alpha) in BIOCSRTIMEOUT.alex1998-10-041-10/+5
| | | | Obtained from: OpenBSD
* fix an mbuf leak when using ipfw to filger bridged packetsluigi1998-09-181-2/+5
| | | | (from -stable, since this code is not yet active in -current)
* Add DLT_{SLIP,PPP}_BSDOS from libpcap 0.4fenner1998-09-151-1/+3
|
* Bring in files for bridging support.luigi1998-09-122-0/+753
|
* Yow! Completely change the way socket options are handled, eliminatingwollman1998-08-231-3/+3
| | | | | | another specialized mbuf type in the process. Also clean up some of the cruft surrounding IPFW, multicast routing, RSVP, and other ill-explored corners.
* Implement DLT_RAW from libpcapache1998-08-182-2/+4
|
* Fixed printf format errors. sppp_dotted_quad() was yet another private,bde1998-08-171-9/+10
| | | | broken, version of inet_ntoa(). It should go away.
* Fixed yet more ioctl breakage due to the type of the `cmd' arg changingbde1998-08-152-7/+7
| | | | from int to u_long but not changing here.
* One-liner: add a call to the underlying device driver's SIOCDELMULTIwpaul1998-08-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | ioctl() routine at the end of if_delmulti() so that interfaces with hardware multicast filtering can update their filters in a timely manner. If the interface doesn't support hardware multicast filtering, then reception of multicast frames is done using 'promiscious mode' or 'capture all multicast frames' mode and software filtering in the kernel. In this case, it doesn't matter if if_delmulti() ever does an SCIODELMULTI on the interface or not: if MULTICAST support is enabled, then we join the 'all hosts' group when the interface is configured, and remain in it until the interface is brought down. Without hardware filtering, joining one group means joining all groups, so it makes no difference if we call the SIOCDELMULTI routine. If the interface does support hardware multicast filtering, then by not reprogramming the hardware filter in if_delmulti(), we have to wait until somebody calls if_setmulti(), during which time the interface is receiving frames for multicast groups in which we are no longer interested.
* fix broken loopback code for ddp (again)julian1998-08-041-3/+6
| | | | Submitted by: Stefan Bethke <stb@hanse.de>
* update ATM driver. (base version: midway.c 1.67 --> 1.68)kjc1998-07-293-130/+409
| | | | | | | | | | | | | | | | | | | | | | | several new features are added: - support vc/vp shaping - support pvc shadow interface code cleanup: - remove WMAYBE related code. ENI WMAYBE DMA doen't work. - remove updating if_lastchange for every packet. - BPF related code is moved to midway.c as it should be. (bpfwrite should work if atm_pseudohdr and LLC/SNAP are prepended.) - BPF link type is changed to DLT_ATM_RFC1483. BPF now understands only LLC/SNAP!! (because bpf can't handle variable link header length.) It is recommended to use LLC/SNAP instead of NULL encapsulation for various reasons. (BPF, IPv6, interoperability, etc.) the code has been used for months in ALTQ and KAME IPv6. OKed by phk long time ago.
* Make sure the link level sockaddr size is rounded up correctly on alpha.dfr1998-07-201-2/+2
|
OpenPOWER on IntegriCloud