summaryrefslogtreecommitdiff
path: root/sys/netinet
AgeCommit message (Collapse)Author
2002-07-12- Add a flags argument to dohooks.Artur Grabowski
The flag can be either HOOK_REMOVE or HOOK_REMOVE|HOOK_FREE. o HOOK_REMOVE removes the hook from the list before executing it. o HOOK_FREE frees the hook after that. - Let dostartuphooks use HOOK_REMOVE|HOOK_FREE so we can reclaim the memory. - Let doshutdownhooks use HOOK_REMOVE so that when some shutdown hook panics (they do that all the #@$%! time these days) we don't loop for ever. Don't HOOK_FREE, it doesn't matter and I don't want to add another possible panic condition for shutdown hooks. - Actually free the pointer we're throwing away in hook_disestablish (I wonder how much memory this has leaked over the years).
2002-07-05Free crp_opaque only after we've determined we're not going toAngelos D. Keromytis
re-submit it. From sam@errno.com
2002-07-05Also, return EAFNOSUPPORT instead of ENOBUFS. Both this and theAngelos D. Keromytis
previous commit where noted by sam@errno.com
2002-07-05Bump ipips_family in ipipstat in all cases where EAFNOSUPPORT is returned.Angelos D. Keromytis
2002-07-03Change all variables definitions (int foo) in sys/sys/*.h to variableMiod Vallat
declarations (extern int foo), and compensate in the appropriate locations.
2002-07-01Move mtod() after the m_pullup() --- noted by sam@errno.com (who seemsAngelos D. Keromytis
to be going over the IPsec code with a magnifying glass)
2002-06-28Fix usage counter for IPCOMP --- sam@errno.comAngelos D. Keromytis
2002-06-28undo recent changes; they still crash for people (dhclient this time).Theo de Raadt
This is a bullshit process. Test your shit before you toss it into the tree.
2002-06-26Check for associated socket.Angelos D. Keromytis
2002-06-26A bit more paranoid.Angelos D. Keromytis
2002-06-26Update correct statistic if m_inject() fails --- from sam@errno.comAngelos D. Keromytis
2002-06-25Forgot variable.Angelos D. Keromytis
2002-06-25Ifdef the function proto as well.Angelos D. Keromytis
2002-06-25Make udp_input() a bit more readable by farming out the IPsec inputAngelos D. Keromytis
policy checking to a separate routine. Also, add missing checks for multicast sockets, pointed out by sam@errno.com
2002-06-25Handle correctly return values from xf_input methods --- since theAngelos D. Keromytis
return value was ignored anyway, this wasn't a problem so far. From sam@errno.com
2002-06-24skip routing table lookup if multicasting/broadcasting and the outgoingJun-ichiro itojun Hagino
interface is specified by setsockopt. from freebsd4, sync with kame (it makes difference when you run routed with RIPv2 enabled - no need for 224/4 route)
2002-06-20minor indent cleanup while reading codeTheo de Raadt
2002-06-19Remove redundant address family check -- sam@errno.comAngelos D. Keromytis
2002-06-18Style.Angelos D. Keromytis
2002-06-18KNFAngelos D. Keromytis
2002-06-18Initialize mo to NULL, for good measure -- sam@errno.comAngelos D. Keromytis
2002-06-18Missing freeing of crp, from sam@errno.comAngelos D. Keromytis
2002-06-18Fix double-free.Angelos D. Keromytis
2002-06-18Same as with ip_ah.c (fix unreachable reference-after-free)Angelos D. Keromytis
2002-06-18Fix reference to free'ed location (unreachable condition because ofAngelos D. Keromytis
spl protection, but better safe...) --- pointed out by sam@errno.com
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-06-13Remove whitespace from the end of the file.Angelos D. Keromytis
2002-06-11splassert where comments tell us to.Artur Grabowski
2002-06-10Split common code which converts a multicast address to an ethernetChris Cappuccio
address from ether_addmulti() and ether_delmulti() into ether_multiaddr(), a'la netbsd. Also clean up some magic numbers. itojun likes it
2002-06-10correct tcpdump on gif interface (inbound). reported by friesJun-ichiro itojun Hagino
2002-06-10prevent mbuf leak on icmp_do_error() failure.Jun-ichiro itojun Hagino
NOTE: under 4.4BSD mbuf coding discipline, once you pass mbuf to a function like f(m), you no longer have ownership of the mbuf. the mbuf will always be freed by the called function f(). by keeping the programming rule you have less chance of memory leak.
2002-06-09whitespaceJun-ichiro itojun Hagino
2002-06-09support published arp entries again. PR 2635 (confirmed by submitter).Jun-ichiro itojun Hagino
2002-06-09typoJun-ichiro itojun Hagino
2002-06-09force FDDI link MTU be FDDI IPv4 MTU. PR 2714. jason okJun-ichiro itojun Hagino
2002-06-09Comment out currently-unused code (it's there for the ethernet-ipsecAngelos D. Keromytis
cards, none of which we support at the moment).
2002-06-09fix the use of "cuz" in the tree; these are all in commentsJason Peel
noticed by aaron@, recommended by deraadt@
2002-06-09Set/clear M_AUTH_AH.Angelos D. Keromytis
2002-06-08Break up icmp_error() so we can have the icmp error mbuf returnedjasoni
instead of it being sent to ip_output().
2002-06-08sync with latest KAME in6_ifaddr/prefix/default router manipulation.Jun-ichiro itojun Hagino
behavior changes: - two iocts used by ndp(8) are now obsolete (backward compat provided). use sysctl path instead. - lo0 does not get ::1 automatically. it will get ::1 when lo0 comes up.
2002-06-08correctnessChris Cappuccio
2002-06-07kill register; ok with itojunjasoni
2002-06-07use TAILQ_FOREACH macro; ok angelosjasoni
2002-06-07Use LIST macros instead of accessing field members directly; jason@ okAaron Campbell
2002-06-07avoid is_ipv6 construct. a step towards IPv4-less kernelJun-ichiro itojun Hagino
2002-06-07no need for IPv4 mapped addr supportJun-ichiro itojun Hagino
2002-06-07missing bzero! - now linklocal tcp works correctlyJun-ichiro itojun Hagino
2002-06-04spaces to tabs, remove trailing whitespacejasoni
2002-05-31respect rmx_mtu (cached PMTUD result) on outbound. deraadt/angelos okJun-ichiro itojun Hagino
2002-05-31Socket-specific IPsec policy.Angelos D. Keromytis