summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2001-12-31Fix a "pointers are not permitted as case values" gcc 3.1 warning.thorpej
2001-12-23Do not provide memcpy()/memset()/memcmp() macros as wrappersthorpej
around b*() functions (!!).
2001-12-21move protosw fragment for gif/stf to their own source code.itojun
reduce #ifdef in stf code. sync with kame
2001-12-21whitespace and comment. sync with kameitojun
2001-12-16Remove yet another spurious (debug?) output.martin
2001-12-16Cleanup softc more completely on "ifconfig down", but only if we aremartin
currently in a connection reestablishement state. The previouse (incomplete/unconditional) cleanup confused the state machine.
2001-12-16Fix packet accounting (now netstat -i and netstat -ib show reasonablemartin
values). Implement a secondary connection-reestablishement mode, which is only entered after (1) we have successfully transfered payload data over this connection and (2) if initial retries did not reestablish a session. In this mode we retry (infrequently) forever, until adminstrator stops us (by "ifconfig ppppoe0 down"). XXX - need to display this mode in pppoectl. It is now possible to pull the DSL modems plug for say 15 minutes, plug it back in again and just wait. The connection will be reestablished within three minutes.
2001-12-16Remove some spurious (debug?) output.martin
2001-12-15Enable additional error messages for the discovery phase, clarify somemartin
others. Change one timeout slightly - we need to make all others user settable.
2001-12-15Make reconnects after LCP keepalive detected an error actually work.martin
2001-12-14Use __sh__ instead of __sh3__.thorpej
2001-12-10Enable active LCP keepalive handling in the PPP layer, the PPPoE layermartin
itself has no means to detect broken connections.
2001-12-10Now that everything works without LINK1 set, do not set it by default.martin
While here, remove an unnecessary splnet()/splx() pair.
2001-12-10We explicitly close LCP when going to state CLOSED, so we better openmartin
it again when going from INITIAL to STARTING. This has been done for passive or auto-conecting interfaces always, but not for permanent ones. This fixes session reestablishement for PPPoE interfaces without LINK1 set, and probably also closes PR kern/11161. Thanks to Jared D. McNeill and Ross Harvey for sugesting debug methology.
2001-12-08Change the way IPCP negotiation is handled.martin
Collect both local and remote address and set them to the interface in one step (the peer adress was not set at all before). This causes the peer address now to show up on the interface and all messages to the routing socket to be send with correct data. The latter has been the last missing piece to complete PPPoE support.
2001-12-04code cleanup for portabilityross
2001-12-02Add an #if defined(INET) ... around if_detach_queues's declaration to match theabs
one around its definition.
2001-12-01Fail early when trying to identify a pppoe interface softc (from amartin
HOST UNIQUE token) and our list of interfaces is empty. Without this test an unitinalized pointer may be dereferenced.
2001-11-27Make it compile in the absence of networks. Closes PR 14274 (mine).augustss
2001-11-24Sanity check the tunnel route after computing it and don't mark themartin
interface up if there is no route or the route loops back to ourself. This helps to avoid pilot errors which would result in kernel stack overflows.
2001-11-24Make this respect down interfaces.martin
2001-11-15don't need <sys/types.h> when including <sys/param.h>lukem
2001-11-15Someone <sys/param.h> was deleted from the includes list. Add itthorpej
back so that this file compiles again.
2001-11-13remove unnecessary #if NFOO > 0 .... #endif wrapperslukem
2001-11-12add RCSIDslukem
2001-11-12Use the (not so-)newly-allocated IFT_ECONET rather than IFT_OTHER. This meansbjh21
that programs start printing Econet link-layer addresses corrctly.
2001-11-07Sync with IANA. This finally gets us IFT_ECONET.bjh21
2001-11-06too many curly brace.itojun
2001-11-06Fix pr#14481matt
2001-11-05Switch to using queue access macros instead of refering to the membermatt
fields explicitly.
2001-10-31Turn the tun device/network interface into a cloning device.atatat
2001-10-29In preparation for further changes: remove big parts of the ifdef messmartin
for OSes we no longer share this file with.
2001-10-29Don't need to include <uvm/uvm_extern.h> just to include <sys/sysctl.h>simonb
anymore.
2001-10-28Don't call if_alloc_sadl when creating the pppoe interface, it's calledmartin
from sppp_attach. When destroying the interface, call sppp_detach for proper cleanup. This avoids a crash from the slow timeout handler for no longer existing interfaces (spotted by Rémi Zara).
2001-10-18Add ETHERTYPEs for MPLS (Unicast & Multicast).matt
2001-10-17unifdef OLDIP6OUTPUTitojun
2001-10-16on RTM_DELETE, reduce refcnt on rt->rt_parent, to avoid leaks.itojun
from IIJ seil team
2001-10-14Put the storage class first in an array declaration.simonb
2001-10-06The bridge driver does all forwarding at interrupt level, andthorpej
does not use software interrupts; remove these bridge netisr hooks left over from a previous incarnation of the bridge code. Noted by Andrew Brown <atatat@atatdot.net>.
2001-10-05Install net/ieee1394.h the same way we install all the otherbjh21
link-layer-specific headers.
2001-09-26don't softintr_disestablish twice.itojun
previous code panic'ed with the following command sequence: # ifconfig gif0 create tunnel A B # ifconfig gif0 deletetunnel # ifconfig gif0 destroy
2001-09-25use ALIGNED_POINTER() instead of ALIGN().onoe
The type of ALIGN() is vary on architecture and casting pointer to u_int is incorrect for MI code. Since the code is to make sure aligned access to IP header and requires bcopy if the test fails. So the performance implication is not necessary and we can use ALIGNED_POINTER() here. pointed out by nathanw.
2001-09-24Change the caddr_t to uintptr_t and remove the cast ... it gave problemsreinoud
compiling on an LP64 ... discussed with Gimpy, atatat and bleeh
2001-09-20Move IBSS creation stuff from awi to ieee80211.onoe
2001-09-19Fix for FH infrastructure mode.onoe
XXX: FH chanset should be calculated by FH hop pattern, but BayStack 650 AP always specify chanset to fixed value 1. The previous code try to this hack into awi driver, but it is insufficient because the chanset value in awi driver may change while scan and it may be different from the value in receiving beacon/probe-response. So we save encoded FH chanset into channel in 802.11 common bss information for now.
2001-09-18Move IEEE 802.11 MAC management functions from awi driver toonoe
if_ieee80211subr.c, which can be shared between any IEEE 802.11 drivers. However, most of current working IEEE 802.11b wireless LAN cards have rich firmware and we cannot have a control to management frames for such cards. IBSS creation is now supported for the awi driver.
2001-09-17Add retry mechanisms for Econet, so that if a four-way handshake doesn'tbjh21
complete for some reason, we defer it for a bit and then try again. This gets ping down to 0% packet loss. Of course, ping _should_ have been at 0% packet loss anyway, and that's the next thing to deal with.
2001-09-17Split the pre-computed ifnet checksum flags into Tx and Rx directions.thorpej
Add capabilities bits that indicate an interface can only perform in-bound TCPv4 or UDPv4 checksums. There is at least one Gig-E chip for which this is true (Level One LXT-1001), and this is also the case for the Intel i82559 10/100 Ethernet chips.
2001-09-16Spell 'occurred' with two 'r's.wiz
2001-09-16Add support for incoming IP broadcast packets. The protocol for this isbjh21
worked out by observing RISC iX's behaviour, so it may be technically wrong. The only implementations of IP-over-Econet for which I've got sources don't support broadcasts. Tested using broadcast ping from RISC iX to NetBSD, and using rwhod.