summaryrefslogtreecommitdiff
path: root/sys/netinet
AgeCommit message (Collapse)Author
2002-10-10Missing m_pullup() and mbuf corruption. This potentially causedDaniel Hartmeier
panic: m_copym0: m == 0 and not COPYALL and/or panic: m_copydata: null muf on bridges running pf with scrubbing enabled. Bug report, test vector and confirmation by Jon Morby. ok jason@, jasoni@
2002-10-04Prevent packet processing while tweaking address and routing tables.Henric Jungheim
ok art@
2002-09-12Fix max packet size check. Noticed by <j@pureftpd.org>. jjbg@ ok.Hakan Olsson
2002-09-11fix pointer signedness mixup.Jun-ichiro itojun Hagino
2002-09-11KNF - return is not a function. sync w/kameJun-ichiro itojun Hagino
2002-09-05never append data to shutdown(s, SHUT_RD) socket. can lead to unexpectedJun-ichiro itojun Hagino
kernel resource consumption. NetBSD PR 18185
2002-09-04Ghosts from the past (fixed 1.65, reverted 1.66) rediscovered byDaniel Hartmeier
Henric Jungheim. ok deraadt@
2002-09-04pass struct proc * down to in6_pcbsetportJun-ichiro itojun Hagino
2002-08-28Fix a problem where passing NULL as a pointer with varargs does not promotePer Fogelstrom
NULL to full 64 bits on a 64 bit address system. Soultion is to add a (void *) cast before NULL. This makes a 64 bit MIPS kernel work and will probably help future 64 bit ports as well. OK from art@
2002-08-19committed by mistake - i'm still working on theseJun-ichiro itojun Hagino
2002-08-19be consistent with other KAME source, use "ip6" for ip6_hdr, not "ipv6".Jun-ichiro itojun Hagino
2002-08-19merge in IPv6 deprecated address handling from KAME.Jun-ichiro itojun Hagino
2002-08-16pass unprocessed GRE packet to raw ip socket. binkertn@ okJun-ichiro itojun Hagino
2002-08-08redo socketbuf speedup.Niels Provos
2002-08-08backout the tree break. ok pb@, art@Todd T. Fries
2002-08-08socket buf speedup from thorpej@netbsd, okay art@ ericj@:Niels Provos
Make insertion of data into socket buffers O(C): * Keep pointers to the first and last mbufs of the last record in the socket buffer. * Use the sb_lastrecord pointer in the sbappend*() family of functions to avoid traversing the packet chain to find the last record. * Add a new sbappend_stream() function for stream protocols which guarantee that there will never be more than one record in the socket buffer. This function uses the sb_mbtail pointer to perform the data insertion. Make TCP use sbappend_stream(). On a profiling run, this makes sbappend of a TCP transmission using a 1M socket buffer go from 50% of the time to .02% of the time. Thanks to Bill Sommerfeld and YAMAMOTO Takashi for their debugging assistance!
2002-07-31remove $Id$Jun-ichiro itojun Hagino
2002-07-30Be sure to check the integrity verifier for packets that didn't have it doneJason Wright
in hardware; from angelos
2002-07-29be friendly with gcc-3.1.1 -O2, which takes advantage of ANSI CJun-ichiro itojun Hagino
pointer aliasing rule (gcc optimization/7427). from tsubai@netbsd, sync w/kame
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.