summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Use LIST macros instead of insque/remquephk1997-04-143-12/+11
|
* Don't include <sys/ioctl.h> in the kernel. Stage 6: includebde1997-03-242-3/+7
| | | | | | | <sys/filio.h>, <sys/sockio.h> and <sys/ttycom.h> instead of <sys/ioctl.h> in a couple of files. This is still only 1/3 as spammish as <sys/ioctl.h> - 5 or 6 old tty ioctl headers aren't needed.
* Don't include <sys/ioctl.h> in the kernel. Stage 4: includebde1997-03-241-2/+3
| | | | | | | | <sys/ttycom.h> and sometimes <sys/filio.h> instead of <sys/ioctl.h> in miscellaneous files. Most of these files have nothing to do with ttys but need to include <sys/ttycom.h> to get the definitions of TIOC[SG]PGRP which are (ab)used to convert F[SG]ETOWN fcntls into ioctls.
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-246-12/+12
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-243-6/+3
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.bde1997-03-234-7/+7
| | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all.
* Fix from Matt for the problem described in PR # kern/2990: ``DEC FDDIjoerg1997-03-151-1/+6
| | | | | | | | is a little *too* promiscuous'' Also a 2.2 candidate, again, after testing. Submitted by: Matt Thomas <matt@lkg.dec.com>
* 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.
* add a bunch of comments to describe what's going on.julian1997-03-051-16/+123
| | | | | | | This is some of the worst code I've had to wade through in ages and I don't want to have to start from scratch again next time. (I have a 2.2 version of these comments, can I commit them?)
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-2241-41/+41
| | | | ready for it yet.
* Send RTM_IFINFO messages whenever promiscuous and all-multicastwollman1997-02-141-2/+9
| | | | modes are enabled or disabled.
* Implement PRC_IFUP a la PRC_IFDOWN so that protocols know when an interfacewollman1997-02-121-5/+3
| | | | has come bacl up (and can referse actions taken as a result of downing).
* Make sure we have arguments to pass before calling ifaof_ifpforaddrfenner1997-02-041-3/+3
| | | | | | | and ifa_ifwithroute. This eliminates the panic seen in kern/2647, although it doesn't address the fact that RTM_CHANGE can't change flags.
* Fix yet another breakage i've missed when committing rev 1.14. It wasjoerg1997-01-301-1/+1
| | | | | | non-obvious to me since my test kernel didn't run NETATALK. Sorry. LINT should compile again now.
* fix mixleading comment (my error.. I wrote the comment)julian1997-01-261-1/+1
|
* Round #2. This basically brings back the changes from rev 1.12.joerg1997-01-171-1/+9
| | | | | I have only separated both to make it more convenient merging all this into 2.2.
* This mega-merge brings Matt Thomas' 960801 FDDI driver (almost) upjoerg1997-01-172-54/+193
| | | | | | | | | | | | | to -current. Thanks goes to Ulrike Nitzsche <ulrike@ifw-dresden.de> for giving me a chance to test this. Only the PCI driver is tested though. One final patch will follow in a separate commit. This is so that everything up to here can be dragged into 2.2, if we decide so. Reviewed by: joerg Submitted by: Matt Thomas <matt@3am-software.com>
* Don't try to do anything with the `ifr' parameter for SIOCADDMULTIwollman1997-01-173-43/+0
| | | | and SIOCDELMULTI; it is guaranteed to be null in the new system.
* 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.
OpenPOWER on IntegriCloud