maxv
5ef9f48133
Revert rev1.183 (2003).
...
It was intended as an optimization, but it increases the attack surface:
the IPsec policy is not enforced on RST packets when the socket is in the
LISTEN state, and an (unauthenticated) attacker could jam the connection
between two IPsec hosts by sending RST packets between the client's SYN
and ACK packets.
Discussed with ozaki-r@.
2018-03-01 06:08:43 +00:00
maya
5eb49c4efd
Limit building & calling ACPI MCFG to kernels with PCI and ACPI.
...
pci_quirks.c requires pci
acpi_mcfg.c was recently changed to use pci_quirks.c functions.
as a result, ia64 kernels with acpi but no pci failed to link.
tested an ia64 and amd64 kernels build.
2018-03-01 06:00:49 +00:00
pgoyette
8ea6ee8a58
Use 1-byte data-buffers when writing to the "control" device for the
...
SPD ROMs (we do this for page-selection). The imcsmb doesn't support
zero-byte transfers.
With this, I'm able to get the data for all 8 of my DIMMs (on two
different imcsmb busses) using the spdmem(4) driver. And the data
decodes correctly using the decode-dimms utility (from the linux
i2ctools).
2018-03-01 05:47:22 +00:00
pgoyette
097c0f8f7b
Adjust PATHs for files that were moved
2018-03-01 04:53:05 +00:00
pgoyette
30e4e001c4
The imc and imcsmb drivers have moved to x86-specific directory
2018-03-01 04:48:32 +00:00
pgoyette
82ae8dd180
Move the imc(4) and imcsmb(4) sources into architecture-specific
...
directory (for previous CVS history see the sys/dev/pci/imcsmb/
Attic)
2018-03-01 04:45:05 +00:00
pgoyette
f700503f15
Replace spaces with tabs (xterm copy-&-pasto)
2018-03-01 04:35:04 +00:00
pgoyette
45c72eabee
Use imc and imcsmb for the new x86 device names. Now that they're
...
defined in the architecture-specific files.x86 they won't conflict
with the sgimips imc device.
2018-03-01 04:31:22 +00:00
pgoyette
3e0cb5d705
Move the imc and imcsmb stuff out of general files.pci and into the
...
architecture-specific files.x86
Should unbreak the sgimips build.
2018-03-01 04:29:37 +00:00
pgoyette
c74908b431
Note that we're now using iimc and iimcsmb
...
XXX Existing recently-added imc and imcsmb drivers for x86_64 and i386
XXX will be renamed appropriately.
2018-03-01 04:20:12 +00:00
msaitoh
3eee9a3e7d
Do wm_reset_mdicnfg_82580() on 82580 only.
2018-03-01 03:32:33 +00:00
msaitoh
6f8d6dd6b6
- Fix a bug that wm_pll_workaround_i210() is not called on some cases.
...
As I wrote in if_wm.c rev 1.329's commit message, There are three cases:
a) Chip is I211
b) Chip is I210 and it uses INVM (not FLASH)
c) Chip is I210 (it uses FLASH) and NVM image version < 3.25
Before this commit, the workaround function was not called on a) and b).
- Rename function.
2018-03-01 03:30:12 +00:00
snj
51521ab7d9
prune disabled XIDLE support. the required X server extension hasn't been
...
around for a couple decades now. even if someone wanted to modernize this,
it wouldn't be appropriate for NetBSD, since we don't want programs in base
to be linked against X libs.
2018-02-28 23:45:56 +00:00
macallan
eeb3b17ba1
add workaround for PHY detection on Apple K2 GMAC
...
adapted from openbsd
2018-02-28 23:08:30 +00:00
pgoyette
d0a8c296e3
Teach the ichsmb(4) driver how to detach.
2018-02-28 22:36:02 +00:00
uwe
cd711bd2b9
Simplify - it's enough to set nctx.uc_link to &octx to restore old
...
context automatically when swapfunc() returns.
2018-02-28 21:36:50 +00:00
uwe
5eea33881e
Add missing $ in the RCSID.
2018-02-28 21:29:10 +00:00
uwe
ce9b54992a
PIC code clobbers %r30 so we need to update the saved oucp with
...
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
(oops, forgot to commit this along with swapcontext.S)
2018-02-28 21:00:02 +00:00
uwe
8e33e1ffff
PIC code clobbers %r30 so we need to update the saved oucp with
...
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
2018-02-28 20:51:58 +00:00
snj
e1cd7a269b
prune 5.x upgrade section
2018-02-28 20:13:09 +00:00
mrg
a14db5ae62
switch an assert in backtrace to an error return.
2018-02-28 20:11:09 +00:00
snj
fdc61e1224
vax folks probably aren't the _most_ interested in current developments,
...
but i think most of them probably know, 16 years later, that we switched
from a.out to ELF.
2018-02-28 20:09:29 +00:00
flxd
1c543a3199
Cosmetic printf/aprint changes.
...
Add missing return statement after failed pci_intr_establish().
2018-02-28 18:03:48 +00:00
flxd
3dd95c0733
Cosmetic fix for the Physical Address Registers PAR0 to PAR5.
2018-02-28 17:13:44 +00:00
ozaki-r
372b74399c
Remove an obsolete assertion too (fix build)
...
bif_refs was removed when migrated to use psref.
2018-02-28 13:12:53 +00:00
maxv
f3215192fd
add missing static
2018-02-28 11:29:14 +00:00
maxv
17614cda2e
Remove unused ipsec_private.h includes.
2018-02-28 11:23:24 +00:00
maxv
d81439a881
Remove unused macros, and while here style.
2018-02-28 11:19:49 +00:00
maxv
f05cdaa5c6
(just forgot to commit this file, the message was)
...
Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
already increases it. IPSEC6_STATINC is now unused, so remove it too.
2018-02-28 11:10:22 +00:00
maxv
e9a0140794
Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
...
already increases it. IPSEC6_STATINC is now unused, so remove it too.
2018-02-28 11:09:03 +00:00
ozaki-r
a96bf12681
Sweep obsolete BRIDGE_MPSAFE (it's always on now)
2018-02-28 10:34:04 +00:00
maxv
d55163dec9
Remove unused mbuf tags.
2018-02-28 10:30:20 +00:00
maxv
247966d592
Dedup: merge ipsec4_setspidx_inpcb and ipsec6_setspidx_in6pcb.
2018-02-28 10:16:19 +00:00
maxv
f931621816
ipsec6_setspidx_in6pcb: call ipsec_setspidx() only once, just like the
...
IPv4 code. While here put the correct variable in sizeof.
ok ozaki-r@
2018-02-28 10:09:17 +00:00
mrg
ba849c5621
in sockaddr_getsize_by_family() print the p_comm, pid and lid
...
for unknown address family. helps location where missing
af settings are.
2018-02-28 09:44:25 +00:00
pgoyette
c71d6c8e27
Remove exgtra / in the $NetBSD$ line. Thanks to leot@ for spotting it!
2018-02-28 09:25:02 +00:00
pgoyette
822434bf76
Remove extra */ from comment - fix build
2018-02-28 09:07:18 +00:00
pgoyette
6df876f615
Mention imcsmb(4)
2018-02-28 08:15:27 +00:00
pgoyette
60a40acd83
Remove extra blank line
2018-02-28 06:08:14 +00:00
pgoyette
edaff7ac6e
Add RCSID and short title/synopsis
2018-02-28 05:53:13 +00:00
msaitoh
e54d537308
- Add new PCI quirk PCI_QUIRK_HASEXTCNF and PCI_QUIRK_NOEXTCNF. Some devices'
...
extended configuration area may be broken or violate spec. If an extended
configuration space is strange but it really exist, use PCI_QUIRK_HASEXTCNF.
If an extended configuration space is plausible to exist but it really
doesn't exist, use PCI_QUIRK_NOEXTCNF.
- Add PCI_PRODUCT_INTEL_XEOND_MEM_0_TTR_1(0x6fa8) and
PCI_PRODUCT_INTEL_COREI76K_IMC_0(0x6f68) with PCI_QUIRK_HASEXTCNF. The
document clearly states they violate spec and it support the extended
configuration space.
2018-02-28 05:50:06 +00:00
pgoyette
276ca183dd
Note that the imc driver works on at least one ASUS motherboard, the
...
X99-E.
2018-02-28 05:47:00 +00:00
pgoyette
77b28ae546
Remove extraneous space from $NetBSD$ tag
2018-02-27 23:33:44 +00:00
uwe
2bbe9c117d
Fix pasto in a comment.
2018-02-27 23:09:02 +00:00
uwe
da83da02db
threadfunc - we do return from swapcontext() (since revision 1.2),
...
so drop the NOTREACHED comment.
2018-02-27 20:34:04 +00:00
uwe
02b9aeb870
swapfunc() is not passed to pthread_create, there's no need for it to
...
have any arguments.
2018-02-27 20:31:35 +00:00
uwe
738b2ab23a
Drop unnecessary cast to makecontext() argument.
2018-02-27 20:24:50 +00:00
uwe
79bd7f2c4b
Cleanup trailing whitespace.
2018-02-27 20:22:31 +00:00
maxv
faad9849ec
Dedup: merge ipsec4_set_policy and ipsec6_set_policy. The content of the
...
original ipsec_set_policy function is inlined into the new one.
2018-02-27 15:01:30 +00:00
maxv
6fd7a9a762
Remove duplicate checks, and no need to initialize 'newsp' in
...
ipsec_set_policy.
2018-02-27 14:52:51 +00:00