summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Wrap the new world order in __FreeBSD__ to ease future imports.mlaier2005-08-092-0/+14
|
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andrwatson2005-08-094-14/+15
| | | | | | | | | | | | | | IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days
* Prevent a race condition. As pf_send_tcp() - called for expired synproxymlaier2005-07-202-0/+8
| | | | | | | | | | states - has to drop the lock when calling back to ip_output(), the state purge timeout might run and gc the state. This results in a rb-tree inconsistency. With this change we flag expiring states while holding the lock and back off if the flag is already set. Reported by: glebius MFC after: 2 weeks
* move RFC3542 related definitions into ip6.h.ume2005-07-201-42/+0
| | | | | | Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> Reviewed by: mlaier Obtained from: KAME
* Export pfsyncstats via sysctl "net.inet.pfsync" in order to print them withmlaier2005-07-141-1/+5
| | | | | | | netstat (seperate commit). Requested by: glebius MFC after: 1 week
* Properly initialize ifq_maxlen for the defered send queue and make itmlaier2005-06-261-1/+2
| | | | | | | | actually work. Also use the right semantics for IF_HANDOFF to get correct stats. Reported and tested by: Sascha Luck <sascha at c4inet dot net> Approved by: re (blanket)
* Fix some minor problems before release:darrenr2005-06-232-15/+54
| | | | | | | | (1) "ipf -T" is broken for fetching single entries and (2) loading rules with numbered collections does not order insertion right. (3) stats aren't accumulated for hash table memory failures Approved by: re (dwhite)
* locking on exit of reading from ip_sync is not correct for all instancesdarrenr2005-06-141-4/+9
| | | | Approved by: re (dwhite)
* Mark pf callouts as NET_MPSAFE.mlaier2005-06-122-15/+5
| | | | | | Requested by: yongari (serveral times) Approved by: re (blanket) MFC after: 1 week
* Defer ip_output of pfsync updates to an independent callout thread insteadmlaier2005-06-102-7/+30
| | | | | | | | | | | | of just dropping the lock around the ip_output call. This used to cause corrupted state tree walks for some call-paths. In a second stage all callouts will be marked MPSAFE according to the setting of mpsafenet. Reported and tested by: Matthew Grooms <mgrooms at seton dot org> MFC after: 3 days X-MFC after: Marking callouts MPSAFE + 1 week
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-108-17/+40
| | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam
* This commit was generated by cvs2svn to compensate for changes in r146539,harti2005-05-233-4/+5
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of NgATM kernel part 1.2harti2005-05-233-4/+5
| |
* | Enable building /sbin/ipf (but not the rescue version) with the ability todarrenr2005-05-161-0/+4
| | | | | | | | parse bpf strings for filter rules in ipf.conf
* | Enable IPFilter to correctly determine if BPF has been optioned into thedarrenr2005-05-151-2/+2
| | | | | | | | | | kernel it is being compiled against and subsequently enable using BPF for packet matching in ipf rules.
* | if_mtu not ifp_mtu.mlaier2005-05-041-1/+1
| |
* | Bring back fix from rev. 1.28 which was lost during the import.mlaier2005-05-041-2/+2
| |
* | Combine rev. 1.29 and 1.30 to something that will make sense for futuremlaier2005-05-041-1/+6
| | | | | | | | imports.
* | Make LINT happy.mlaier2005-05-042-9/+9
| |
* | Pass icmp_error() the MTU argument directly instead ofandre2005-05-041-6/+2
| | | | | | | | | | an interface pointer. This simplifies a couple of uses and removes some XXX workarounds.
* | Resolve conflicts created during the import of pf 3.7 Some features aremlaier2005-05-0311-1333/+2541
| | | | | | | | | | | | | | | | missing and will be implemented in a second step. This is functional as is. Tested by: freebsd-pf, pfsense.org Obtained from: OpenBSD X-MFC after: never (breaks API/ABI)
* | Fix the following warnings on amd64:ru2005-04-291-2/+2
| | | | | | | | | | | | | | /usr/src/sbin/ipf/ipftest/../../../sys/contrib/ipfilter/netinet/ip_frag.c: In function `fr_ipid_newfrag': /usr/src/sbin/ipf/ipftest/../../../sys/contrib/ipfilter/netinet/ip_frag.c:397: warning: cast to pointer from integer of different size /usr/src/sbin/ipf/ipftest/../../../sys/contrib/ipfilter/netinet/ip_frag.c: In function `fr_ipid_knownfrag': /usr/src/sbin/ipf/ipftest/../../../sys/contrib/ipfilter/netinet/ip_frag.c:582: warning: cast from pointer to integer of different size
* | Don't use quad_t on FreeBSD (deprecated) so use "long long" instead.darrenr2005-04-281-3/+3
| | | | | | | | | | Someday this should be converted to uint64_t and printstate.c changed to use those horrid PRiud64 things.
* | The current H.323 proxy source has a license that isn't suitable for inclusiondarrenr2005-04-271-1/+3
| | | | | | | | with FreeBSD so we shouldn't be trying to include it here.
* | - Comment out duplicate rcsid strings in *.c filesdarrenr2005-04-276-11/+18
| | | | | | | | | | - Move SIOCPROXY from ip_nat.h to ip_proxy.h and fix ip_proxy.h so that it can be easily compiled into kdump, et al.
* | Add an include for netinet/ip_compat.h directly so that we don't need todarrenr2005-04-261-0/+2
| | | | | | | | add another special file in the creation of ioctls.c for kdump.
* | Merge the changes from 3.4.35 to 4.1.8 into the kernel source treedarrenr2005-04-2520-9332/+17345
| |
* | This commit was generated by cvs2svn to compensate for changes in r145516,darrenr2005-04-2518-111/+8348
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | import ipfilter 4.1.8 into the kernel source treedarrenr2005-04-2538-7136/+25763
| | |
| * | Import ipfilter 3.4.35 (destinated for RELENG_4) to vendor branchdarrenr2004-06-2116-414/+736
| | |
* | | Fix error in synproxy connection completion. Source andglebius2005-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | destination windows were confused, one instead of other. This error was masked, because first segment of just established connection is usually smaller than initially announced window, and it was successfully passed. First window reannouncement corrected erroneous 'seqhi' value. The error showed up when client connected to synproxy with zero initial window, and reannounced it after session establishment. In collaboration with: dhartmei [we came to same patch independtly] Reviewed by: mlaier Sponsored by: Rambler MFC after: 3 days
* | | Modify the alq(9) alq_open() API to accept a file creation mode, ratherrwatson2005-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | than defaulting the cmode argument to vn_open() to 0. Supply a default argument of ALQ_DEFAULT_CMODE (0600) in current callers. Discussed with/pointed out by: hmp Reveiwed by: jeff, hmp MFC after: 3 days
* | | Fix mss byte order, only affects synproxy code path.glebius2005-04-131-0/+2
| | | | | | | | | | | | | | | | | | | | | Submitted by: John L. Scarfone via OpenBSD Reviewed by: mlaier Obtained from: OpenBSD, rev. 1.483 MFC after: 2 days
* | | This commit was generated by cvs2svn to compensate for changes in r143439,obrien2005-03-127-0/+1975
|\ \ \ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | | Import the nForce MCP NIC bits. This is version 1.0-0301.obrien2005-03-127-0/+1975
| / / | | | | | | | | | | | | Demanded by: DES Encouraged by: scottl
* | | Move all of the hptmv files to /sys/dev/hptmv so that they won't be mistakenscottl2005-03-0213-6520/+0
| | | | | | | | | | | | for being on a CVS vendor branch. The files were moved via a repo-copy.
* | | Add FreeBSD ID.obrien2005-02-281-0/+2
| | |
* | | Use dynamic major number allocation.phk2005-02-271-2/+0
| | |
* | | avoid sneaky double freesam2005-02-251-1/+5
| | | | | | | | | | | | | | | Noticed by: Coverity Prevent analysis tool Reviewed by: scottl
* | | Do not fail to initialize callouts (on SMP only) -- it leads to crashing.green2005-02-221-3/+4
| | |
* | | Fix a terrible braino in pfi_maybe_destroy() and unbreak "$pfctl -Fall" withmlaier2005-02-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | renamed interfaces. PR: kern/77645 Reported by: Harald Schmalzbauer <harryNOschmalzbauerSPAMde> Reviewed by: yongari MFC after: 3 days
* | | Don't use the static CALLOUT_INITIALIZER for __FreeBSD_version >= 600000. Itmlaier2005-02-212-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was a bad idea, but since it is done like this in the vendor source we keep it around for older versions. As a safe guard against future misuse we don't even define CALLOUT_INITIALIZER anymore. This fixes ALTQ after callout_init_mtx() and takes altq_var.h off the vendor branch. Submitted by: Divacky Roman <xdivac02NOstud.fit.vutbrSPAMcz> (w/ changes)
* | | Fix inteface clear time. pf printed "Thu Jan 1 09:00:01 1970"yongari2005-02-171-1/+8
| | | | | | | | | | | | | | | | | | in "pfctl -vvsI" output when pf was statically linked to kernel. Discussed with: mlaier
* | | Access softc embedded struct ifnet via function macro to make it easier tomlaier2005-02-093-26/+54
| | | | | | | | | | | | | | | | | | untangle struct ifnet and softc/arpcom in the future. Requested by: brooks
* | | - Split out PCI support.mdodd2005-02-034-306/+744
| | | | | | | | | | | | | | | | | | - Add previously removed ISA support. Submitted by: David S. Madole <david AT madole.net>
* | | Use the packet's address family instead of the rule's when selecting adhartmei2005-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | replacement address for an rdr rule. Some rdr rules have no address family (when the replacement is a table and no other criterion implies one AF). In this case, pf would fail to select a replacement address and drop the packet due to translation failure. Found by: Gustavo A. Baratto
* | | Prohibit ruleset changes at securelevel > 2, not > 1. It's documenteddhartmei2005-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | like this in init(8), but the code didn't match the documentation. Submitted by: Juraj Lutter <otis at sk dot FreeBSD dot org> Agrees: mlaier
* | | This commit was generated by cvs2svn to compensate for changes in r140216,njl2005-01-141-0/+7
|\ \ \ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | | Clean up a small memory leak introduced with the previous commit tonjl2005-01-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dsutils.c. We need to GC the implicitly-returned object. Submitted by: Robert.Moore at Intel MFC after: 1 day
* | | | This commit was generated by cvs2svn to compensate for changes in r140094,njl2005-01-121-1/+2
|\ \ \ \ | |/ / / | | | | | | | | which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud