summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wundef from compiling the amd64 LINT.ru2005-12-045-21/+26
|
* - Store pointer to the link-level address right in "struct ifnet"ru2005-11-111-2/+2
| | | | | | | | | | rather than in ifindex_table[]; all (except one) accesses are through ifp anyway. IF_LLADDR() works faster, and all (except one) ifaddr_byindex() users were converted to use ifp->if_addr. - Stop storing a (pointer to) Ethernet address in "struct arpcom", and drop the IFP2ENADDR() macro; all users have been converted to use IF_LLADDR() instead.
* - Make IFP2ENADDR() a pointer to IF_LLADDR() rather than anotherru2005-11-111-2/+1
| | | | | | | | copy of Ethernet address. - Change iso88025_ifattach() and fddi_ifattach() to accept MAC address as an argument, similar to ether_ifattach(), to make this work.
* Move the cloned interface list management in to if_clone. For some drivers thethompsa2005-11-082-6/+0
| | | | | | | | | | softc lists and associated mutex are now unused so these have been removed. Calling if_clone_detach() will now destroy all the cloned interfaces for the driver and in most cases is all thats needed to unload. Idea by: brooks Reviewed by: brooks
* This commit was generated by cvs2svn to compensate for changes in r152069,jkim2005-11-042-8/+5
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * - Fix more resource parsing problems. The previous commit was imcomplete.jkim2005-11-042-8/+5
| | | | | | | | | | | | | | | | | | - Fix a typo in rsmisc.c and a style change for consistency. This patch will also appear in future ACPI-CA release. Submitted by: Robert Moore <robert dot moore at intel dot com> Tested by: ru
* | This commit was generated by cvs2svn to compensate for changes in r152058,njl2005-11-041-5/+3
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Account for the minimum resource size when parsing the end tag resourcenjl2005-11-041-5/+3
| | | | | | | | | | | | | | | | descriptor. This should fix the "memory modified after free" panics. This patch will appear in a future acpi-ca distribution. Submitted by: Robert Moore <robert.moore / intel.com> Tested by: Peter Holm
* | Fix build breakage on tinderbox.jkim2005-11-031-1/+1
| |
* | Update to reflect import of ACPI-CA 20051021 with includes fixupsjkim2005-11-011-27/+30
| |
* | Local change: remove unnecessary __cdecljkim2005-11-012-2/+2
| |
* | Local change: remove compilation warningsjkim2005-11-014-10/+10
| |
* | Fix conflicts from import of Intel ACPI-CA 20051021jkim2005-11-018-497/+968
| |
* | Unchanged files that are off the vendor branchjkim2005-11-0113-1679/+639
| |
* | This commit was generated by cvs2svn to compensate for changes in r151940,jkim2005-11-012-1/+3
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Fix few compilation problems on vendor branch.jkim2005-11-013-1/+6
| | | | | | | | These fixes will be submitted vendor.
* | This commit was generated by cvs2svn to compensate for changes in r151937,jkim2005-11-01175-14401/+22437
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of Intel ACPI-CA 20051021jkim2005-11-01196-16596/+24058
| |
| * Remove old ACPICA files from the INTEL vendor branch. They were removedjhb2005-10-27141-84217/+0
| | | | | | | | | | from HEAD about 4 years ago when we started flattening out the ACPICA distribution.
* | Normalize a significant number of kernel malloc type names:rwatson2005-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat. - Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters. - Disambiguate some collisions by adding subsystem prefixes to some memory types. - Generally prefer lower case to upper case. - If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases. Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names.
* | Add a commented out version of what was done for the r20041119sysinc import.obrien2005-10-241-0/+12
| |
* | Fix conflicts of import of Intel ACPI-CA 20041119 with system includes fixups.obrien2005-10-2418-71/+71
| |
* | This commit was generated by cvs2svn to compensate for changes in r151600,obrien2005-10-24112-378/+378
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of Intel ACPI-CA 20041119 with system includes fixups.obrien2005-10-24130-449/+449
| |
* | In detach method, move if_free() after bus_teardown_intr().ru2005-10-131-1/+2
| |
* | Change the reference counting to count the number of cloned interfaces for eachthompsa2005-10-122-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cloner. This ensures that ifc->ifc_units is not prematurely freed in if_clone_detach() before the clones are destroyed, resulting in memory modified after free. This could be triggered with if_vlan. Assert that all cloners have been destroyed when freeing the memory. Change all simple cloners to destroy their clones with ifc_simple_destroy() on module unload so the reference count is properly updated. This also cleans up the interface destroy routines and allows future optimisation. Discussed with: brooks, pjd, -current Reviewed by: brooks
* | Fix "struct ifnet" leak if attach() fails in the middle.ru2005-09-161-0/+2
| |
* | Per a request from Nick Triantos of nVidia, nVidia's legal department askedobrien2005-09-112-0/+104
| | | | | | | | that we provide their license document beside their nForce MCP object code.
* | Stop leaking a lock. This used to cause a propagate_priority() page faultmlaier2005-09-111-3/+3
| | | | | | | | | | | | when setting syncdev and syncpeer. Reported by: Dominic Marks
* | Unbreak the build. Committed from the wrong directory.mlaier2005-09-081-4/+5
| |
* | Commit imported changes to HEAD:mlaier2005-09-082-21/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pf_ioctl.c Revision 1.153 Sun Aug 7 11:37:33 2005 UTC by dhartmei | verify ticket in DIOCADDADDR, from Boris Polevoy, ok deraadt@ pf_ioctl.c Revision 1.158 Mon Sep 5 14:51:08 2005 UTC by dhartmei | in DIOCCHANGERULE, properly initialize table, if used in NAT rule. | from Boris Polevoy <vapcom at mail dot ru>, ok mcbride@ pf.c Revision 1.502 Mon Aug 22 11:54:25 2005 UTC by dhartmei | when nat'ing icmp 'connections', replace icmp id with proxy values | (similar to proxy ports for tcp/udp). not all clients use | per-invokation random ids, this allows multiple concurrent | connections from such clients. | thanks for testing to Rod Whitworth, "looks ok" markus@ pf.c Revision 1.501 Mon Aug 22 09:48:05 2005 UTC by dhartmei | fix rdr to bitmask replacement address pool. patch from Max Laier, | reported by Boris Polevoy, tested by Jean Debogue, ok henning@ Obtained from: OpenBSD MFC after: 3 days
* | 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
| | |
OpenPOWER on IntegriCloud