summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1442-42/+42
| | | | | | | | 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 the new if_multiaddrs list for multicast addresses rather than thewollman1997-01-135-193/+86
| | | | | | | previous hackery involving struct in_ifaddr and arpcom. Get rid of the abominable multi_kludge. Update all network interfaces to use the new machanism. Distressingly few Ethernet drivers program the multicast filter properly (assuming the hardware has one, which it usually does).
* Fix typo. I hate waking up at 4:45 in the morning...wollman1997-01-081-2/+2
|
* Correctly account for header length in m_pkthdr.len when sendingwollman1997-01-081-1/+2
| | | | | | packets through BPF. Submitted by: seki@sysrap.cs.fujitsu.co.jp in PR#2415
* Fix a few oversights in the new multicast membership interface.wollman1997-01-082-7/+32
|
* Checkpoint the beginnings of the new kernel interface forwollman1997-01-073-3/+254
| | | | | | | multicast group memberships. This is not actually operative at the moment (a lot of other code still needs to be changed), but this seemed like a useful reference point to check in so that others (i.e. Bill Fenner) have fair warning of where we are going.
* Move the ethertypes from <netinet/if_ether.h> to <net/ethernet.h>.wollman1997-01-031-1/+19
| | | | | | Many programs need the numbers but don't need the internals of ARP. More commits to follow...
* Separate kernel-internal data structures from exposed user interfacewollman1997-01-032-272/+308
| | | | | | to interfaces. (Amazing nobody had done this!) More commits to fix up user-land to follow.
* More cleanups to satisfy the following rules:bde1996-12-191-5/+8
| | | | | | | | | - C++ should be supported for application functions (use __BEGIN_DECLS, etc.). - prototypes should be sorted. - comments on #endif's should spell identifiers the same as the code. - comments on #endif's should have the same sense as the code (use `!' to match ifndef, etc.).
* Clean up Bill's additions.wollman1996-12-191-9/+11
|
* Add prototypes for ethers.3 functions as per wollman:wpaul1996-12-181-1/+11
| | | | | | | | | | | | | | > wollman 96/12/10 09:19:15 > > Modified: lib/libc/net ether_addr.c ethers.3 > Log: > Get struct ether_addr directly from <net/ethernet.h> rather than pulling > in lots of unrelated junk from <net/if.h> and <net/if_ether.h>. These > functions still aren't prototyped anywhere (but should be in > <net/ethernet.h>---got that, Bill?). (Note that this file has no copyright header; one should probably be added.)
* Fixed pedantic syntax error.bde1996-12-181-2/+2
|
* Change default tun MTU back to 1500.fenner1996-12-162-3/+8
| | | | | | | Use the interface MTU instead of the constant when deciding what packets to accept. Allow using the SIOCSIFMTU ioctl (e.g. "ifconfig tun0 mtu XXX") to set the MTU.
* Convert the interface address and IP interface address structureswollman1996-12-137-54/+59
| | | | | | to TAILQs. Fix places which referenced these for no good reason that I can see (the references remain, but were fixed to compile again; they are still questionable).
* Use queue macros for the list of interfaces. Next stop: ifaddrs!wollman1996-12-115-29/+38
|
* Include <net/if_arp.h> in the one header that requires it,wollman1996-12-111-3/+1
| | | | | | | <netinet/if_ether.h>, rather than in <net/if.h>, most of whose callers have no need of it. Pointed-out-by: bde
* Finally, after six years, remove the ``quick hack for SNMP'' that waswollman1996-12-101-5/+1
| | | | ``going away soon''.
* 1) Implement SIOCSIFMTU in ether_ioctl(), and change ether_ioctl's returndg1996-12-102-5/+17
| | | | | | | | | type to be int so that errors can be returned. 2) Use the new SIOCSIFMTU ether_ioctl support in the few drivers that are using ether_ioctl(). 3) In if_fxp.c: treat if_bpf as a token, not as a pointer. Don't bother testing for FXP_NTXSEG being reached in fxp_start()...just check for non-NULL 'm'. Change fxp_ioctl() to use ether_ioctl().
* 2 small changes:julian1996-12-022-2/+6
| | | | | | | | | | | | | | 1/ increase the tun MTU from 1500 to 1600 to allow it to be used with packets formatted according to RFC1490 and RFC1717 2/ allow the tsleep() when reading, to be interruptable by signals so that one can now do: od -xc </dev/tun0 to dump packets for debugging without getting hung. Passed on by: Archie@whistle.com (archie Cobbs) Nice but not neccessary in 2.2
* Fixed broken SIOCGIFADDR. It was copying out garbage as the ethernetdg1996-11-181-2/+2
| | | | address.
* Killed "unknown protocol" printf.dg1996-11-121-2/+1
|
* Fix comments, which appear to have been mangled long ago and far away.fenner1996-10-211-6/+8
|
* ns_nettype should be declared, not externed.jkh1996-10-181-2/+2
|
* Netcon's changes for their extended NS support. This only effectsjkh1996-10-171-11/+72
| | | | people compiling with NS, so the effects on everyone else are nil.
* Removed nested include if <sys/socket.h> from <net/if.h> andbde1996-10-123-7/+4
| | | | | | | <net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>.
* Add primitive link MIB support.wollman1996-10-111-1/+3
|
* Get rid of obsolete RTF_MASK and RTF_CHAINDELETE flags.wollman1996-10-091-3/+3
|
* Remove some historical cruft inherited from the loopback driver in whichwollman1996-10-071-6/+1
| | | | | there were three possible different code paths through which we could discard a packet (which, after all, is the entire function of this interface).
* No code changes what so ever, but added about 150 lines of commentsjulian1996-09-101-4/+149
| | | | | | | | Sorry if this makes it harder to merge in lite2 stuff but hey.. At least I can figure out what is going on whenever I end up going through those files again.. do we have a policy regarding commenting existing code?
* Second phase of merge, get rid of more machine-independent-dependencies.asami1996-09-031-5/+1
| | | | | | Get rid of pc98/pc98/pc98_device.h. Submitted by: The FreeBSD(98) Development Team
* Bugfix and simplification for rev 1.34: make sure that the routefenner1996-09-021-16/+6
| | | | | | is non-null before trying to delete it in rt_setgate(), which then allows removal of the special-case code from the RTM_ADD case. This should fix the panics that joerg and Phil Karn have been seeing.
* Get rid of the ifdef MULTICAST's. I think the rest of the kernel got ridjhay1996-08-301-3/+1
| | | | of them 2 years ago.
* Re-sync with the state of PC98 world. This will be the last commit beforeasami1996-08-301-2/+2
| | | | | | we start merging things in earnest... Submitted by: The FreeBSD(98) Development Team
* Add some padding to struct ifmibdata and move the `struct ifdata' towollman1996-08-281-2/+94
| | | | | | | | | | the end of that sstructure to make evolution easier. Add definitions for the 802.3/Ethernet MIB. To implement this, simply add a `struct ifmib_iso_8802_3' somewhere in your interface's softc, point if_linkmib to it, set if_linkmiblen, and fill in the statistics with appropriate values. (I didn't want to create Yet Another Ethernet- related header file, otherwise this would have been separated out.)
* correct a field comment that someone must have accidentally spammedjulian1996-08-261-2/+2
| | | | as it's still used for what the original BSD4.4 comment says it's for.
* change a comment to match what the BSD4.4 book says.julian1996-08-261-2/+2
|
* route.c:RTM_ADD does not check for a netmask before doing a tree walkpeter1996-08-241-2/+2
| | | | | | | | like it does elsewhere. This is probably only happens when incorrect args are given to route(8), or when running with non-IPv4 stacks but incorrect args to the route command is no excuse for panicing! Submitted by: Michael Clay <mclay@weareb.org>, PR#1532
* Update to match definitions in LBL June 96 releasepst1996-08-191-10/+17
|
* Submitted by: archie@whistle.comjulian1996-08-091-1/+1
| | | | | | | allow a tunnel interface to be openned even if it has no remote address yet. this may be needed if you have used route add default -interface tun0 where the remote end might not even HAVE a number (e.g. netcom links)
* Submitted by: archie@whistle.comjulian1996-08-071-2/+3
| | | | | | | | | | This is a patch to sys/net/if.c. What it does is patch the algorithm for finding an IP address on an interface which most closely matches a given IP address. The problem with it is when no address matches, and you have to just pick one at random. Then the code ends up picking the last IP address in the list. This patch changes things so it picks up the first address instead. Usually the first address is more useful as the later ones are aliases.
* Megacommit to straigthen out ETHER_ mess.phk1996-08-061-6/+56
| | | | | I'm pretty convinced after looking at this that the majority of our drivers are confused about the in/exclusion of ETHER_CRC_LEN :-(
* use <net/ethernet.h>phk1996-08-051-1/+2
|
* This file is the (intended) definitive source of the ETHER_ macros.phk1996-08-051-0/+13
|
* Make the NS and IPX cases compile again.phk1996-08-041-7/+10
|
* Add a callback pointer to the interfaces "init" routine.phk1996-08-042-2/+91
| | | | | Add ether_ioctl() which can take care of the SIOC[SG]IFADDR cases for most (ethernet) drivers.
* Add better support for retrieving management information from networkwollman1996-07-304-10/+254
| | | | | | | | | | | | | interfaces. This creates two new tables in the net.link.generic branch of the MIB; one contains (essentially) `ifdata' structures, and the other contains a blob provided by the interface (and presumably used to implement link-layer-specific MIB variables). A number of things have been moved around in the `ifnet' and `ifdata' structures, so NEW VERSIONS OF ifconfig(8) AND routed(8) ARE REQUIRED. (A simple recompile is all that's necessary.) I have a sample program which uses this interface for those interested in making use of it.
* Fix a bug in ifa_ifwithnet() which caused a page fault in bcmp()wollman1996-07-241-2/+3
| | | | | | | | when attepmting to add certain types of routes. This problem only manifested itself in the presence of unconfigured point-to-point interfaces. Noticed by: Chuck Cranor <chuck@maria.wustl.edu>
* Fix a spelling error I forgot to bring over from my personal versionwollman1996-07-231-2/+2
| | | | of the last (IF_ENQ_DROP) commit.
* Add a new, better mechanism for sticking packets onto ifqueues.wollman1996-07-221-1/+30
| | | | | | | | The old system had the misfeature that the only policy it could implement was tail-drop; the new IF_ENQ_DROP macro/function makes it possible to implement more sophisticated queueing policies on a system-wide basis. No code actually uses this yet (although on my machine I have converted the ethernet and (polled) loopback to use it).
* Don't dereference sc->sc_setmtu if it's NULL (such as when it's not running)peter1996-07-211-2/+3
| | | | | | as discussed on current. (bde pointed out the cause of the problem) Reported by: dev@fgate.flevel.co.uk
OpenPOWER on IntegriCloud