summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2001-05-05Use the new M_* malloc typesAngelos D. Keromytis
2001-04-23s = splimp(); ... s = splimp(); ... splx(x); ... splx(s); is a bad idea.Artur Grabowski
2001-04-19Include NUL-termination in identity extension length computationNiklas Hallqvist
2001-04-14Minor changes, preparing for real socket-attached TDBs; also, moreAngelos D. Keromytis
information will be stored in the TDB. ok ho@ provos@
2001-04-06Move offsetof define into sys/param.hConstantine Sapuntzakis
2001-04-04check for return value of ENODEV from ifpromisc(). This will happenJason Wright
at detach time when if_detach_ioctl() has been installed for an outgoing interface and does not represent an error.
2001-03-30increase ierrors if m_pullup fails in vlan_input(); pointed out by chris@Jason Wright
2001-03-28Allow tdbi's to appear in mbufs throughout the stack; this allowsAngelos D. Keromytis
security properties of the packets to be pushed up to the application (not done yet). Eventually, this will be turned into a packet attributes framework. Make sure tdbi's are free'd/cleared properly whenever drivers (or NFS) does weird things with mbufs.
2001-03-28$OpenBSD$Jason Wright
2001-03-28Rework vlan_start() to make sure it -never- munges the packet internals (eg.Jason Wright
shared mbuf clusters) Revert the deleted m_adj() call in vlan_input() back to inline mbuf manipulation, all of the checks really are there by API/convention.
2001-03-27Fix a problem with how TDB timeouts were used in pfkeyv2.Artur Grabowski
When we allocated a tdb we did a timeout_add before a timeout_set. This was a problem in itself, but it shouldn't hurt too much. What did hurt was that we did a timeout_set after the timeout_add, timeout_set marked the timeout as not being on the timeout list and if we did a timeout_del (or timeout_add) later (before the timeout fired) we ended up with a chunk of freed memory on the timeout queue or maybe even dangling pointers (or a circular list). This should probably cure the timeout queue corruption some people were seeing lately.
2001-03-26Fix bug I introduced... if m_pullup fails, don't try to free the result.Jason Wright
2001-03-26- move if_vlan back to a default if_type of IFT_PROPVIRTUALJason Wright
- change if_type to match parent at vlan_configure time - comment typo - implement promiscuous mode for vlan interfaces (from NetBSD) - change if_flags inheritance mask to UP|BROADCAST|SIMPLE|MULTICAST (upshot of all this: bridging vlan interfaces works, with some limitations... documentation soon)
2001-03-25Missing splx(s). Thanks to dawson and teamConstantine Sapuntzakis
2001-03-25Minor bug. Could corrupt stat countersConstantine Sapuntzakis
2001-03-25Don't set pbp to point to free memory. Thanks to Dawson Engler and teamConstantine Sapuntzakis
2001-03-23check rcvif and tag for vlan_input_tag() [Same check as in vlan_input()]Jason Wright
2001-03-23m_freem not m_freeJason Wright
2001-03-23check packet length in vlan_input() and pullup if necessaryJason Wright
use m_adj instead of twiddling everything ourselves
2001-03-23move the vlan and bridge handling around a bit, and make sure the testJason Wright
for (mcast || bcase || (unicast || for us)) is always called.
2001-03-22remove vlan_proto variable, replace with ETHERTYPE_8021QJason Wright
define if_type for vlan interfaces (IFT_8021_VLAN) #ifdef DEBUG some debugging printf's protect against other uses of M_PROTO1
2001-03-22let bstp_transmit_tcn() handle all of the work for sending TCN messagesJason Wright
and remove unnecessary structure element
2001-03-22strlcpy instead of strncpy + \0Jason Wright
2001-03-22new timeoutsMichael Shalayeff
2001-03-21Don't force sin6_port to be zero.Angelos D. Keromytis
2001-03-19m_freem not m_free if we're dropping the packet because we're not inJason Wright
the forwarding stp state
2001-03-15convert SA expirations to the new timeouts.Michael Shalayeff
simplifies expirations handling a lot. tdb_exp_timeout and tdb_soft_timeout are made consistant throughout the code to be a relative time offsets, just like first_use timeouts. tested on singlehost isakmpd setup. lots of dangling spaces and tabs removed. angelos@ ok
2001-03-13allow configuring number of these in ukcMichael Shalayeff
2001-03-13allow configuring number of these in ukcMichael Shalayeff
2001-03-09Remove two unnecessary splx(). This was missed somewhere along the way, sinceAaron Campbell
this was done long ago in NetBSD during an update to ppp-2.3b4.
2001-03-07Missing splx() calls in failure cases.Aaron Campbell
2001-03-07Missing splx() in failure case; deraadt@ okAaron Campbell
2001-03-06Eeep, don't reset the checksum when checking it! Noticed by bugfix@123.netAngelos D. Keromytis
2001-03-05TUNSIFMODE ioctl (from NetBSD)Angelos D. Keromytis
2001-03-05Clear ip_sum before calculating IP checksum (closes PR 1667)Angelos D. Keromytis
2001-03-04Import/export credentials from TDB.Angelos D. Keromytis
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff
2001-02-20provide SIOC[SG]LIFPHYADDR, which greatly simplify userland manipulation.Jun-ichiro itojun Hagino
sync with kame. old ioctls are kept but not really recommended.
2001-02-20use u_int32_t, not u_int, for DLT_NULL encapsulation. sync with kameJun-ichiro itojun Hagino
2001-02-16sync whitespace/comment with kame. to help merge tasksJun-ichiro itojun Hagino
2001-02-13When detaching an interface set the if_start, if_ioctl and if_watchdogArtur Grabowski
functions to 'nops'. Some protocols might want to output some packets while detaching and that could be a bad idea when the interface has gone away. Do we need to change more functions?
2001-02-08use timeout_xx() throughout sys/netinet6. sync with kame.Jun-ichiro itojun Hagino
2001-02-06allow for configuring number of bridge ifaces in ukc; jason@ ok and helpMichael Shalayeff
2001-02-06forgot to bzero() malloced memoryMichael Shalayeff
2001-02-06allow configuring number of tunnel ifacesMichael Shalayeff
2001-02-06allow configuring gif ifaces; itojun@ okMichael Shalayeff
2001-02-06sync with latest kame (comment only)Jun-ichiro itojun Hagino
2001-02-06allow changing number of loopbacks in ukc.Michael Shalayeff
change rest of the code to use lo0ifp pointing to the corresponding struct ifnet. itojun@ and niklas@ ok
2001-02-04For unicast packets destined for the bridge machine itself, learn from theJason Wright
SRC address (not the DST).
2001-02-02In the broadcast received on gif case, throw the packet up the stack ifJason Wright
we -found- an appropriate interface.