summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Remove an extra splimp() call.luigi2001-11-011-1/+0
| | | | Spotted-by: diff(1)
* sc_lasttime and sc_starttime are time_t's, not long's.dillon2001-10-271-2/+2
|
* Remove extra memory region kept by "struct pfil_head pfil_head_t;".ru2001-10-221-1/+1
| | | | | | | Seems to be a typo for typedef, but we don't want this non-style(9) typedef anyway. PR: kern/31356
* Fix this so it compiles cleanly for alpha. Tried to do some minimal testing.mjacob2001-10-192-11/+12
| | | | Reviewed by: freebsd-net
* Add a SIOCGIFINDEX ioctl, which returns the index of a named interface.jlemon2001-10-172-0/+6
| | | | This will be used to more efficiently support if_nametoindex(3).
* Cleanup ifunit(), so it uses the dev_named() function to map an interfacejlemon2001-10-171-29/+11
| | | | name into a device.
* Pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2.ru2001-10-179-140/+189
| | | | | | | | | | | | | | | | | | | | Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *'' as the argument. Pass rt_addrinfo all the way down to rtrequest1 and ifa->ifa_rtrequest. 3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is using it anyways). Benefit: the following command now works. Previously we needed two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 Remove unsafe typecast in rtrequest(), from ``rtentry *'' to ``sockaddr *''. It was introduced by 4.3BSD-Reno and never corrected. Obtained from: BSD/OS, NetBSD MFC after: 1 month PR: kern/28360
* Bring in latest CSRG revisions to this file:ru2001-10-171-1/+9
| | | | | | | | | | | - Report destination address of a P2P link when servicing routing socket messages. - Report interface name, address, and destination address of a P2P link when servicing NET_RT_{DUMP,FLAGS} sysctls. Part of CSRG revision 8.6 coresponds to revision 1.12. CSRG revision 8.7 corresponds to revision 1.15.
* 64-bit fixes from CSRG.ru2001-10-172-4/+4
|
* Revision 1.32 corresponded to CSRG revision 8.2.ru2001-10-171-1/+1
|
* Revision 1.13 corresponded to CSRG revision 8.4.ru2001-10-171-1/+1
| | | | Revision 1.59 corresponded to CSRG revision 8.5.
* Record the fact that revision 1.39 corresponded to CSRG revision 8.4,ru2001-10-171-1/+1
| | | | and first hunk of revision 1.76 corresponded to CSRG revision 8.3.
* if_index is the highest interface index in the system, not the nextfenner2001-10-171-3/+3
| | | | available index.
* The interface index space may be sparsely populated (e.g. when anfenner2001-10-171-1/+2
| | | | | | | interface in the middle is if_detach()'d). Return (and handle) ENOENT when the ifmib(4) is accessed for a nonexistent interface. MFC after: 14 days
* Set the interface speed back to zero, after ether_ifattach() set itfenner2001-10-151-0/+1
| | | | | to 10Mbps. RFC 2863 says: "For a sub-layer which has no concept of bandwidth, [ifSpeed] should be zero."
* Don't even attempt to clone host routes.ru2001-10-151-2/+4
| | | | MFC after: 1 week
* bring in ARP support for variable length link level addressesfjoe2001-10-148-6/+173
| | | | | | | Reviewed by: jdp Approved by: jdp Obtained from: NetBSD MFC after: 6 weeks
* Traverse the list of network interfaces rather than use if_index- if_index ismjacob2001-10-121-3/+1
| | | | not guaranteed to be dense with respect to the actual list of interfaces.
* Fix the ``WARNING: Driver mistake: repeat make_dev'', caused by usingjlemon2001-10-111-2/+3
| | | | | | | the wrong index variable within a loop. I have no idea how this managed to work on my test box. Spotted by: fenner
* Move device nodes into a /dev/net/ directory, to avoid conflict withjlemon2001-10-111-8/+61
| | | | | | | | | | existing devices (e.g.: tunX). This may need a little more thought. Create a /dev/netX alias for devices. net0 is reserved. Allow wiring of net aliases in /boot/device.hints of the form: hint.net.1.dev="lo0" hint.net.12.ether="00:a0:c9:c9:9d:63"
* Set if_type and if_addrlen before calling if_attach(), so the values arejlemon2001-10-111-1/+1
| | | | available for the routine to use.
* Malloc mutexes pre-zero'd as random garbage (including 0xdeadcode) myjhb2001-10-101-1/+1
| | | | trigget the check to make sure we don't initalize a mutex twice.
* - Fix typo in "didn't find tag in list" code -- != should have been ==.fenner2001-10-061-4/+5
| | | | | | | | | | | This fixes the panic when receiving a packet with an unknown tag, and also allows reception of packets with known tags. - Allow overlapping tag number spaces when using multiple hardware-assisted VLAN parent devices (by comparing the parent interface in vlan_input_tag() just as in vlan_input() ). - fix typo in comment MFC after: 1 week
* Add ia64 to the list of machines which don't do unaligned reads.dfr2001-10-052-2/+2
|
* Make it so dummynet and bridge can be loaded as modules.ps2001-10-053-57/+82
| | | | Submitted by: billf
* Documentation comment: note that the each NIC's softc is assumed to startmjacob2001-10-021-0/+5
| | | | | | with an ifnet structure. MFC after: 1 week
* Update the hash table when sppp mucks directly with the interface address.jlemon2001-10-011-0/+4
|
* Add ability to attach knotes to network devices.jlemon2001-09-291-1/+73
| | | | Introduce EVFILT_NETDEV to report network device changes.
* Introduce network device nodes. Network devices will now automaticallyjlemon2001-09-291-63/+157
| | | | | | appear in /dev. Interface hardware ioctls (not protocol or routing) can be performed on the descriptor. The SIOCGIFCONF ioctl may be performed on the special /dev/network node.
* Change sysctl_iflist() so it has a single point of return. This willjlemon2001-09-291-3/+4
| | | | assist any future locking efforts.
* Use in_ifaddrhashtbl instead of in_ifaddrhead to look up IP address.jlemon2001-09-291-5/+1
|
* Two main changes here:luigi2001-09-271-2/+2
| | | | | | | | | | | | | | | + implement "limit" rules, which permit to limit the number of sessions between certain host pairs (according to masks). These are a special type of stateful rules, which might be of interest in some cases. See the ipfw manpage for details. + merge the list pointers and ipfw rule descriptors in the kernel, so the code is smaller, faster and more readable. This patch basically consists in replacing "foo->rule->bar" with "rule->bar" all over the place. I have been willing to do this for ages! MFC after: 1 week
* /home/brooks/ng_gif.messagebrooks2001-09-262-1/+28
|
* Use LIST_ macros instead of TAILQ_ macros to be more like NetBSD.brooks2001-09-262-9/+12
| | | | Obtained from: NetBSD
* Make faith loadable, unloadable, and clonable.brooks2001-09-252-88/+142
|
* Use the passed in thread to selrecord() instead of curthread.jhb2001-09-213-3/+3
|
* Use the current process's credentials rather than socket's cached.ru2001-09-201-2/+2
| | | | | | | If the process drops its super-user privileges, we certainly don't want to allow it to modify routing tables. Discussed with: rwatson
* Make stf a clonable device.brooks2001-09-191-41/+109
| | | | | | Yes this really is rather silly and the implementation is overkill given that you are only allowed one of them, but NetBSD implements cloning on this device and it's a less cluttered example of cloning then most.
* Split HWCSUM into two components: RX and TX, for the benefit of driversjlemon2001-09-181-2/+5
| | | | which can only do checksum offloading in one direction.
* Add two fields to the ifnet structure indicating what extra capabilitiesjlemon2001-09-183-0/+23
| | | | a network device has, and which ones are enabled.
* KSE Milestone 2julian2001-09-1215-80/+89
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fix some signed/unsigned integer confusion, and add bounds checking ofkris2001-09-101-1/+2
| | | | | | | | arguments to some functions. Obtained from: NetBSD Reviewed by: peter MFC after: 2 weeks
* Remove/comment tokens after #endif (#endif NETATALK)peter2001-09-102-4/+4
|
* Patches from KAME to remove usage of Varargs in existingjulian2001-09-072-11/+4
| | | | | | | IPV4 code. For now they will still have some in the developing stuff (IPv6) Submitted by: Keiichi SHIMA / <keiichi@iij.ad.jp> Obtained from: KAME
* Fix another shortcircuit return() statement that I missed.jlemon2001-09-071-1/+1
|
* Fix sense of comparison in space test. Also eliminate a compilejlemon2001-09-071-8/+8
| | | | warning and remove a previously existing off-by-one error.
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-068-52/+72
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* Cosmetic cleanups and rearrangement for code to come. There should bejlemon2001-09-061-63/+68
| | | | no functional change in this commit.
* Make vlan(4) loadable, unloadable, and clonable. As a side effect,brooks2001-09-054-72/+173
| | | | | | | interfaces must now always enable VLAN support. Reviewed by: jlemon MFC after: 3 weeks
* Add cloning support for the tap(4) device similar to that in the tun(4)brooks2001-09-052-136/+221
| | | | | | device. Submitted by: Maksim Yevmenkin <myevmenk@digisle.net>
OpenPOWER on IntegriCloud