summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
AgeCommit message (Collapse)Author
2003-12-10de-register. deraadt okJun-ichiro itojun Hagino
2003-07-29fixup ip_len back to wire format after reass.Jun-ichiro itojun Hagino
2003-07-09do not flip ip_len/ip_off in netinet stack. deraadt ok.Jun-ichiro itojun Hagino
(please test, especially PF portion)
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-03string fixes; tedu okTheo de Raadt
2003-02-12Remove commons; inspired by netbsd.Jason Wright
2003-02-11No ICMP redirect when PF nat code redirect the packet on the LAN.Cedric Berger
ok dhartmei@
2003-01-07remove the altq classifier code which is replaced by pf and no longer used.Kenjiro Cho
ok henning@, deraadt@
2002-09-04Ghosts from the past (fixed 1.65, reverted 1.66) rediscovered byDaniel Hartmeier
Henric Jungheim. ok deraadt@
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-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-06-09whitespaceJun-ichiro itojun Hagino
2002-06-07use TAILQ_FOREACH macro; ok angelosjasoni
2002-05-16bring in ECN support from KAME.Kenjiro Cho
it consists of - ECN support in TCP - tunnel-egress and fragment reassembly rules in layer-3 not to lose congestion info at tunnel-egress and fragment reassembly to enable ECN in TCP, build a kernel with TCP_ECN, and then, turn it on by "sysctl -w net.inet.tcp.ecn=1". ok deraadt@
2002-04-24Update IPsec-related comments.Angelos D. Keromytis
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-22do not transmit ICMP source quench. from kjc/kameJun-ichiro itojun Hagino
2002-01-25Add a drain hook to each pool. This hook is called in three cases.Artur Grabowski
1. When a pool hit the hard limit. Just before bailing out/sleeping. 2. When an allocator fails to allocate memory (with PR_NOWAIT). 3. Just before trying to reclaim some page in pool_reclaim. The function called form the hook should try to free some items to the pool if possible. Convert m_reclaim hooks that were embedded in MCLGET, MGET and MGETHDR into a pool drain hook (making the code much cleaner).
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2001-12-10No need to m_freem(m) if m is already NULL. dhartmei@ ok.Hakan Olsson
2001-12-06remove #if 0'ed portion (for KAME IPSEC - not needed)Jun-ichiro itojun Hagino
2001-11-26add fastroute options similar to what is found in ipfjasoni
ok dhartmei@, frantzen@
2001-09-18Avoid memory leak when disabling PMTU, rt_timer_queue_destroy() expects theAaron Campbell
caller to free the structure.
2001-07-17split ip normalization out into a separate file, okay dhartmei@Niels Provos
2001-07-16Move altq after pf; suggested by aaron@, kjc@ ok.Federico G. Schwindt
2001-07-05IPComp support. angelos@ ok.Jean-Jacques Bernard-Gundol
2001-06-28first stab at packet normalization. includes full ip reassembly.Niels Provos
okay dhartmei@, dugsong@
2001-06-27ALTQ base modifications to the kernel.Kenjiro Cho
- ALTQ introduces a set of new queue macros that coexist with the traditional IF_XXX macros. - "struct ifaltq" replaces "struct ifqueue" in "struct ifnet". - assign cdev major 74 for i386 and 54 for alpha as ALTQ control interface.
2001-06-26no longer pass around **mTheo de Raadt
2001-06-25Build without IPSEC.Artur Grabowski
2001-06-24make it compile w/o pfMichael Shalayeff
2001-06-24Initial import of pf, an all-new ipf-compatable packet filter.Kjell Wooding
Insane amounts of work done my dhartmei. Great work!
2001-06-24take mtu from routing tableNiels Provos
2001-06-23Clear the checksum flags after verification. Also, don't countAngelos D. Keromytis
checksum errors as hardware checksum packets as well.
2001-06-23Count input packets hardware-checksummed.Angelos D. Keromytis
2001-06-23Remove unneeded ip_id convertions.Federico G. Schwindt
Instead of using HTONS macro in some places, use htons directly in the struct member and save us a few bytes. Fix comment.
2001-06-23Count input/output hardware-checksummed IP packets.Angelos D. Keromytis
2001-06-23Clear IPv4 input checksum OK flag after verification.Angelos D. Keromytis
2001-06-23TCP, UDP, IPv4 input hardware checksumming processing; also IPv4Angelos D. Keromytis
output hardware checksumming. Not tested yet, but should be done tonight. Remain to be solved: interactions with bridge, TCP/UDP output checksumming, interactions of TCP/UDP checksumming with routing changes.
2001-06-19mop up after angelosTheo de Raadt
2001-06-08Cut down on include files.Angelos D. Keromytis
2001-06-01use pool allocation for ip fragement queue, from netbsd,Niels Provos
okay angelos@, itojun@
2001-05-30Remove ipf. Darren Reed has interpreted his (old, new, whichever)Theo de Raadt
licence in a way that makes ipf not free according to the rules we established over 5 years ago, at www.openbsd.org/goals.html (and those same basic rules govern the other *BSD projects too). Specifically, Darren says that modified versions are not permitted. But software which OpenBSD uses and redistributes must be free to all (be they people or companies), for any purpose they wish to use it, including modification, use, peeing on, or even integration into baby mulching machines or atomic bombs to be dropped on Australia. Furthermore, we know of a number of companies using ipf with modification like us, who are now in the same situation, and we hope that some of them will work with us to fill this gap that now exists in OpenBSD (temporarily, we hope).
2001-05-27Use the new IPsec tags.Angelos D. Keromytis
2001-05-20Remove varargs from ipv4_input; cmetz@ deraadt@ ok.Federico G. Schwindt
2001-05-20Use packet tags instead of tdbi.Angelos D. Keromytis
2001-05-16Don't clobber ip_sum; ip_output always sets this to 0 before callingFederico G. Schwindt
in_cksum so it's not needed here; itojun@ ok. This makes the ip_sum available in ipfilter.
2001-05-11Check m_pullup() and m_pullup2() return for NULL, not 0; itojun@ okAaron Campbell
2001-05-01get rid of dtom(), okay itojun@ angelos@ mickey@ millert@Niels Provos
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.