summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Major overhaul of pseudo-interface cloning. Highlights include:brooks2004-06-223-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Split the code out into if_clone.[ch]. - Locked struct if_clone. [1] - Add a per-cloner match function rather then simply matching names of the form <name><unit> and <name>. - Use the match function to allow creation of <interface>.<tag> vlan interfaces. The old way is preserved unchanged! - Also the match function to allow creation of stf(4) interfaces named stf0, stf, or 6to4. This is the only major user visible change in that "ifconfig stf" creates the interface stf rather then stf0 and does not print "stf0" to stdout. - Allow destroy functions to fail so they can refuse to delete interfaces. Currently, we forbid the deletion of interfaces which were created in the init function, particularly lo0, pflog0, and pfsync0. In the case of lo0 this was a panic implementation so it does not count as a user visiable change. :-) - Since most interfaces do not need the new functionality, an family of wrapper functions, ifc_simple_*(), were created to wrap old style cloner functions. - The IF_CLONE_INITIALIZER macro is replaced with a new incompatible IFC_CLONE_INITIALIZER and ifc_simple consumers use IFC_SIMPLE_DECLARE instead. Submitted by: Maurycy Pawlowski-Wieronski <maurycy at fouk.org> [1] Reviewed by: andre, mlaier Discussed on: net
* revert section of code that calls netisr_queue() to match v1.33 of this filedarrenr2004-06-221-15/+1
|
* #ifdef's for FreeBSD are wrong, causing too many variable declaractions todarrenr2004-06-221-2/+3
| | | | disappear.
* one too many #endif's from the update broke the builddarrenr2004-06-221-1/+0
|
* Update ipfilter from 3.4.31 -> 3.4.35. Some important changes:darrenr2004-06-2116-392/+692
| | | | | | | | | | | | | | | * block packets that fail to create state table entries * only allow non-fragmented packets to influence whether or not a logged packet is the same as the one logged before. * correct the ICMP packet checksum fixing up when processing ICMP errors for NAT * implement a maximum for the number of entries in the NAT table (NAT_TABLE_MAX and ipf_nattable_max) * frsynclist() wasn't paying attention to all the places where interface names are, like it should. * fix comparing ICMP packets with established TCP state where only 8 bytes of header are returned in the ICMP error. MFC after: 1 week
* Add missing <sys/module.h> include.phk2004-06-181-0/+1
| | | | Approved by: sam
* Import two fixes from the OpenBSD stable branch:mlaier2004-06-173-19/+16
| | | | | | | | | - prevent an endless loop with route-to lo0, fixes PR 3736 (dhartmei@) - The rule_number parameter for pf_get_pool() needs to be 32 bits, not 8 - this fixes corruption of the address pools with large rulesets. (mcbride@, pb@) Reviewed-by: dhartmei
* Commit pf version 3.5 and link additional files to the kernel build.mlaier2004-06-1612-2385/+4856
| | | | | | | | | | | | Version 3.5 brings: - Atomic commits of ruleset changes (reduce the chance of ending up in an inconsistent state). - A 30% reduction in the size of state table entries. - Source-tracking (limit number of clients and states per client). - Sticky-address (the flexibility of round-robin with the benefits of source-hash). - Significant improvements to interface handling. - and many more ...
* This commit was generated by cvs2svn to compensate for changes in r130610,mlaier2004-06-161-0/+840
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import pf from OpenBSD 3.5 (OPENBSD_3_5_BASE)mlaier2004-06-1611-1417/+4695
| |
| * Import OpenBSD 3.4-stable fixesdhartmei2004-05-023-19/+16
| |
| * Import another fix from the OpenBSD-Stable branch:mlaier2004-04-111-6/+11
| | | | | | | | | | | | | | | | | | | | | | Fix by dhartmei@ and mcbride@ 1.433 Properly m_copyback() modified TCP sequence number after demodulation 1.432 Fix icmp checksum when sequence number modlation is being used. Also fix a daddr vs saddr cut-n-paste error in ICMP error handling. Fixes PR 3724
| * Import two fixes from OpenBSD's stable branch:mlaier2004-03-282-4/+41
| | | | | | | | | | | | | | | | | | | | | | - Fix binat for incoming connections when a netblock (not just a single address) is used for source in the binat rule. closes PR 3535, reported by Karl O.Pinc. ok henning@, cedric@ - Fix a problem related to empty anchor rulesets, which could cause a kernel panic. Approved by: bms(mentor)
* | Do the dreaded s/dev_t/struct cdev */phk2004-06-165-18/+22
| | | | | | | | Bump __FreeBSD_version accordingly.
* | Disable "bulk dequeue" when enabling ALTQ so it does not irritate themlaier2004-06-151-0/+1
| | | | | | | | timing.
* | Transform tbr_dequeue into a function pointer in order to build drivers withmlaier2004-06-152-3/+7
| | | | | | | | | | | | ALTQ enabled versions of IFQ_* macros by default, as requested by serveral others. This is a follow-up to the quick fix I committed yesterday which turned off the ALTQ checks for non-ALTQ kernels.
* | Remove some more leftover from the old pfaltq_module hack to allow formlaier2004-06-142-24/+8
| | | | | | | | | | | | kernels w/ pf, but w/o altq. Reported-by: Xin LI
* | #if out an old leftover in the KAME code. opt_cpu.h is no longer useful heremlaier2004-06-131-0/+2
| | | | | | | | | | | | and breaks build on some arch. Found-by: tinderbox
* | Prepare pf for building with ALTQ:mlaier2004-06-133-56/+4
| | | | | | | | | | - remove old pfaltq module linkage - move pfaltq_running to pf_ioctl.c It is protected by PF_LOCK()
* | Add an additional queue which will be "owned by the driver". This allows tomlaier2004-06-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rig a PREPEND macro for ALTQ as the POLL/DEQUEUE semantic is very bad in terms of locking. We make this a full functional queue to allow "bulk dequeue" which will further reduce the locking overhead (for non-altq enabled devices). Drivers will access this via the following macros, which will show up in <net/if_var.h> once we expose ALTQ to the build: IFQ_DRV_DEQUEUE(ifq, m) - takes a mbuf off the queue (driver queue first) IFQ_DRV_PREPEND(ifq, m) - pushes a mbuf back to the driver queue IFQ_DRV_PURGE(ifq) - drops all packets in both queues IFQ_DRV_IS_EMPTY(ifq) - checks for pending mbufs in either queue One has to make sure that the first three are protected by a driver mutex. At the moment most network drivers still require Giant, so this is not an issue. Even those that have thier own mutex usually hold it in if_start and the like, so this requirement is almost always satisfied. This evolved from a discussion with Andrew Gallatin.
* | FreeBSD-ify ALTQ:mlaier2004-06-129-21/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add locking - disable ALTQ3_COMPAT by default (do not remove the code to keep the diff towards KAME small) - put some more code under ALTQ3 conditional compilation as it should be - account for if_xname - some more minor compile fixes As people started wondering: The strange path layout "altq/altq" is there to avoid "-Isys/contrib" and make it "-Isys/contrib/altq" instead, as we will need at least <altq/altq.h> and <altq/if_altq.h> for kernel compilation. The "freebsd4_..." in the privious commit is just the best tag name in the KAME tree I could find to classify this in order to track its history. It does *not* mean that this will go to 4-STABLE or anything of that kind.
* | This commit was generated by cvs2svn to compensate for changes in r130365,mlaier2004-06-1221-0/+14567
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Import parts of the ALTQ framework from latest KAME snapshot (which is up tomlaier2004-06-1221-0/+14567
| / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HEAD at this point). This will not exactly live in a vendor branch, but have the vendor backing to make it easier to exchange diffs. This will be followed by a diff which takes most of the .c files off the vendor branch in order to: - add locking - disable ALTQ3_COMPAT code (which is outdated and "un-lockable") There is work in progress to refine the configuration API. Import this "as is" now to have more exposure time before 5-STABLE. This is only the import, it will be some more days until you will actually be able to compile ALTQ support into your kernel so don't hold your breath. HEADUPs will be posted on current@ and net@ before this is actually enabled. No-objection: re(scottl), core(rwatson)
* | Recognise NOINET6 as an indication to not build IPv6 enabled source evendarrenr2004-06-081-1/+2
| | | | | | | | | | | | if FreeBSD header files, etc, support it. Submitted by: Sergey Mokryshev <mokr@mokr.net>
* | "Get rid of the nested include of <sys/module.h> from <sys/kernel.h>" ormlaier2004-05-313-0/+3
| | | | | | | | | | | | | | better do no longer depend on it. Requested-by: phk Approved-by: bms(mentor)
* | Add missing #include <sys/module.h>phk2004-05-301-0/+1
| |
* | This commit was generated by cvs2svn to compensate for changes in r129694,njl2004-05-251-1/+1
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Remove a warning of a constant that is too large. Change submitted tonjl2004-05-251-1/+1
| | | | | | | | | | | | vendor.
* | | Local change: allow usermode to compile this header. Submitted to vendor.njl2004-05-251-7/+1
| | |
* | | Local change: don't hang forever if WAK_STS is never set.njl2004-05-251-9/+32
| | |
* | | Local change: remove warnings.njl2004-05-253-45/+66
| | |
* | | Local diff: allow use of the disassembler.njl2004-05-251-2/+33
| | |
* | | Unchanged files that are off the vendor branch.njl2004-05-253-12/+24
| | |
* | | This commit was generated by cvs2svn to compensate for changes in r129684,njl2004-05-2549-1117/+2045
|\ \ \ | |/ / | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Vendor import of Intel ACPI-CA 20040514.njl2004-05-2558-1192/+2201
| | |
| * | Only avoid disabling bus mastering on the sleep path. This should fixnjl2004-04-141-13/+13
| | | | | | | | | | | | | | | | | | power off for some users. The patch has been submitted to Intel. Bug: http://bugme.osdl.org/show_bug.cgi?id=2109
* | | This commit was generated by cvs2svn to compensate for changes in r129059,marcel2004-05-0918-190/+1273
|\ \ \ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | | Update to BETA 7. Besides C++ support, which is irrelevant to us,marcel2004-05-0918-190/+1273
| | | | | | | | | | | | | | | | this version mostly has bugs fixes.
* | | | Add sys/types.h for both kernel and user compiles.njl2004-05-051-1/+1
| | | |
* | | | Commit three imported bugfixes from OpenBSD 3.4-stable:dhartmei2004-05-023-19/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - change pf_get_pool() argument rule_number type from u_int32_t to u_int8_t, fixes corruption of address pools with large rulesets (mcbride@) - prevent endless loops with route-to (dhartmei@) - limit option length to 2 octets max (frantzen@) Obtained from: OpenBSD Approved by: mlaier(mentor), bms(mentor)
* | | | Remove warnings from vendor files. This takes some files off the vendornjl2004-04-144-11/+11
| | | | | | | | | | | | | | | | branch but they have indicated they will not fix these warnings.
* | | | Even though the patch has been submitted to the vendor, this file is offnjl2004-04-141-13/+13
| | | | | | | | | | | | | | | | the vendor branch. Once more, with feeling!
* | | | Check in files with local changes:njl2004-04-142-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * In the resume path, give up after waiting for a while for WAK_STS to be set. Some BIOSs never set it. * Allow access to the field if it is within the region size rounded up to a multiple of the access byte width. This overcomes "off-by-one" programming errors in the AML often found in Toshiba laptops.
* | | | Check in unmodified files off the vendor branch.njl2004-04-143-29/+42
| | | |
* | | | This commit was generated by cvs2svn to compensate for changes in r128212,njl2004-04-1432-222/+808
|\ \ \ \ | | |/ / | |/| | | | | | which included commits to RCS files with non-trunk default branches.
| * | | Import ACPI-CA 20040402 distribution.njl2004-04-1437-259/+870
| | | |
* | | | Add another cleanfile for future imports.njl2004-04-141-2/+2
| | | |
* | | | Staticize <if>_clone_{create,destroy} functions.brooks2004-04-142-8/+8
| | | | | | | | | | | | | | | | Reviewed by: mlaier
* | | | Commit import of OpenBSD-stable fix:mlaier2004-04-111-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix by dhartmei@ and mcbride@ 1.433 Properly m_copyback() modified TCP sequence number after demodulation 1.432 Fix icmp checksum when sequence number modlation is being used. Also fix a daddr vs saddr cut-n-paste error in ICMP error handling. Fixes PR 3724 Obtained from: OpenBSD Reviewed by: dhartmei Approved by: rwatson
* | | | Remove advertising clause from University of California Regent'simp2004-04-071-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
OpenPOWER on IntegriCloud