summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2003-12-28Sysctl functions called for "generic" nodes should forward "query"atatat
requests (where possible), rather than returning errors.
2003-12-26Add a new ioctl SPPPGETSTATUSNCP to query the PPP phase and check wethermartin
any NCP is UP.
2003-12-11gi_len is ip_len, so it has to be network byteorder. markus friedlitojun
2003-12-10use if_indexlim (instead of if_index) and ifindex2ifnet[x] != NULLitojun
to check if interface exists, as (1) if_index has different meaning (2) ifindex2ifnet could become NULL when interface gets destroyed, since when we have introduced dynamically-created interfaces. from kame
2003-12-09Fix spelling mistake in a comment.augustss
2003-12-05To cater for VLAN-aware layer 2 ethernet switches which may need to stripscw
the tag before forwarding the packet, make sure the packet+tag is at least 68 bytes long. This is necessary because our parent will only pad to 64 bytes (ETHER_MIN_LEN) and some switches will not pad by themselves after deleting a tag.
2003-12-04Dynamic sysctl.atatat
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(), vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all nodes are registered with the tree, and nodes can be added (or removed) easily, and I/O to and from the tree is handled generically. Since the nodes are registered with the tree, the mapping from name to number (and back again) can now be discovered, instead of having to be hard coded. Adding new nodes to the tree is likewise much simpler -- the new infrastructure handles almost all the work for simple types, and just about anything else can be done with a small helper function. All existing nodes are where they were before (numerically speaking), so all existing consumers of sysctl information should notice no difference. PS - I'm sorry, but there's a distinct lack of documentation at the moment. I'm working on sysctl(3/8/9) right now, and I promise to watch out for buses.
2003-11-28s/netbsd.org/NetBSD.org/gkeihan
2003-11-16Add data-link type DLT_IEEE802_11_RADIO to wi and atw. DLT_IEEE802_11_RADIOdyoung
lets you monitor radio stats like received signal strength, which diversity antenna was used, channel/frequency, modulation, and data rate.
2003-11-13Add m_tag_delete_nonpesrsistent(), for deleting all packet tags onjonathan
mbuf chains which are recycled (e.g., ICMP reflection, loopback interface). A consensus was reached that such recycled packets should behave (more-or-less) the same way if a new chain had been allocated and the contents copied to that chain. Some packet tags may in future be marked as "persistent" (e.g., for mandatory access controls) and should persist across such deletion. NetBSD as yet hos no persistent tags, so m_tag_delete_nonpersistent() just deletes all tags. This should not be relied upon.
2003-11-12catch up with in_ifaddr -> in_ifaddrhead renamecl
2003-11-11fix interface address list traversal in if_detach():drochner
The code was assuming that interface addresses are removed one-by-one. With IPv6 and multicasts, removal of one address can remove other addresses as side effect, which caused accesses of free()d memory.
2003-11-10Make per-protocol network input queue stats visible to userland viajonathan
sysctl. Add a protocol-independent sysctl handler to show the per-protocol "struct ifq' statistics. Add IP(v4) specific call to the handler. Other protocols can show their per-protocol input statistics by allocating a sysclt node and calling sysctl_ifq() with their own struct ifq *. As posted to tech-kern plus improvements/cleanup suggested by Andrew Brown.
2003-11-10Spell address with two d's. Inspired by similar changes in OpenBSD,wiz
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-03ifmedia_set() should not panic, nor can it really fail. So if there isbriggs
some problem setting the media to the requested value (usually IFM_AUTO), we now force the media selection to IFM_NONE. This addresses PR/14029 ``panic("ifmedia_set") a little too brutal'' and may address to some degree PR/19504 and PR/23341.
2003-10-30Remove some assigned-to but otherwise unused variables.simonb
2003-10-28Mark this initializer in the canonical way so it can be found later.mycroft
2003-10-28Fix previous differently.mycroft
2003-10-28Also, if we're going to bail, we should free the memory we just allocated...mycroft
2003-10-28Previous patch created a dead break.mycroft
2003-10-28Return a sensible error code in the previous.mycroft
2003-10-26Fix uninitialized variable warnings.`christos
2003-10-25Fix uninitialized variable warningschristos
2003-10-13Complete replacement of the old 802.11 layer with the new.dyoung
2003-10-13Use new 802.11 header files.dyoung
2003-10-13Add constants and strings for 802.11 radios with OFDM PHY (802.11a,dyoung
802.11g). Add constants and strings for multi-mode devices (a/b/g). From FreeBSD/Sam Leffler.
2003-10-03when dropping M_PKTHDR, need to free m_tag associated with it.itojun
2003-10-03Correct debug message, mine is myauth, not hisauth.oki
2003-10-02need to use m_freem(), not m_free(). from iij seil teamitojun
2003-10-02minor KNFitojun
2003-10-01fix out-of-bounds access to ifindex2ifnet[]. found by iij seil team.itojun
2003-09-30Fix off-by-one in PRC_NCMDS check. From FreeBSD via OpenBSDchristos
2003-09-26Process has only one c. From miod@openbsd.wiz
2003-09-22pass signo to fownsignal #ifdef ALTQcl
2003-09-22- pass signo to fownsignal [ok by jd]christos
- make urg signal handling use fownsignal - remove out of band detection in sowakeup
2003-09-22kill unused variable in #ifdef ALTQ part, to make this compilejdolecek
with ALTQ configured in
2003-09-21cleanup & uniform descriptor owner handling:jdolecek
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals the owner of descriptor, according to appropriate sematics of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use these routines instead of custom code where appropriate * make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP in sys_ioctl() & sys_fcntl() * also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and pass the ioctls down to soo_ioctl() as any other ioctl change discussed on tech-kern@
2003-09-16Tell copyinstr about the real buffer size (not one byte to few). Add moremartin
error checking. Noticed by Quentin Garnier.
2003-09-16Adapt to account for bridge_enqueue()'s extra parameter.jdc
2003-09-16Add filter/no filter flag parameter to bridge_enqueue().jdc
2003-09-16Add a flag parameter to bridge_enqueue() to tell it whether to run thejdc
filter or not. We only need to run the filter for bridge_forward() and bridge_broadcast(). If we also run it for bridge_output(), we will run the filter twice outbound per packet, so don't. In bridge_ipf(), make sure we don't run m_cat() on a single mbuf chain by checking to see (and remembering) if we need to m_split() the mbuf. This fixes bridge + ipfilter on sparc. Fixes PR kern/22063.
2003-09-11Fix copy & pasto (luckily, for most archs the structs had the same size,martin
so this went unnoticed for quite some time now). Noticed by Thomas Bieg.
2003-09-09Fix vlan tag sending in the ETHERCAP_VLAN_HWTAGGING case.drochner
Makes my "txp" work and fixes "bge" -- PR kern/20363 by Scott Ellis.
2003-09-05Fix copy & pasto.martin
2003-09-05u_short -> u_int16_titojun
2003-09-04bump the buffer size from 15 to 63 bytes.christos
2003-09-03If the peer cares to send us error messages, actually display them.martin
2003-09-03Rearange dead link detection slightly:martin
As long as we receive data from the peer, don't worry. When we have not received anything within the "max_noreceive" period, we start sending LCP echo requests and count them, until we receive an answer (or some data) or the "maxalive" count of not answered echo requests is reached. All this is checked at a global 10 seconds interval for all interfaces. The "max_noreceive" period and the "maxalive" count are configurable per interface.
2003-09-01Add a new ioctl PPPIOCGRAWIN to get the last characters we got from thechristos
remote site.
2003-08-23When trying to (re-)establish a session cope with intermediate outputmartin
failures of the underlying ethernet interface - just keep trying.