Commit Graph

214992 Commits

Author SHA1 Message Date
rmind 333cdb0c5a Add NPF "rndblock" extension to randomly drop packets (using a random function
with a percentage or modulo operation).  This is a demo module, although it can
be used for packet loss simulation.  Example of a procedure in npf.conf:

procedure "somedrop" {
	# Drop 1.9% of the traffic
	rndblock: percentage 1.9
}
2012-12-10 00:32:23 +00:00
christos 5641345b31 forgetting to shift turns this into a cpu burner. 2012-12-09 23:53:39 +00:00
christos 810857e2ff ignore --sysroot=/ 2012-12-09 23:42:16 +00:00
christos 568b7e7cb5 restore the find loop to include files generated by configure 2012-12-09 23:18:30 +00:00
rmind f69459c655 Fix syntax error in the example, fix one rule and G/C "rid" procedure. 2012-12-09 22:12:26 +00:00
spz 0d6a8650f8 Make the compat libs of npf extension shared libraries go to the
compat directories instead of overwriting the arch native libs.
Also, make sure the compat directories get created. Tested on amd64.
2012-12-09 22:06:21 +00:00
christos 6e077d2764 handle the list of files and directories generated dynamically by configure 2012-12-09 21:48:04 +00:00
jakllsch 5c1c4e1fcf Reflect that this file is now for the x86 ports and not just i386 in comments. 2012-12-09 21:30:02 +00:00
jakllsch dd049cd624 Remove trailing whitespace on blank lines. 2012-12-09 20:43:54 +00:00
christos df81d8d522 make this work 2012-12-09 19:15:48 +00:00
christos c3a3a89834 Include <bsd.own.mk> to give a chance to ${TOOLDIR} to be defined before
using it in rules. Before there was another .mk file included before ${TOOLDIR}
was used.
2012-12-09 18:08:08 +00:00
apb b45c93d77d Use a "find | while read" loop to install all *.h files anywhere
under ${.OBJDIR}/include, and remove the previous hack of touching a
"dummy" file in each subdirectory.  This should fix a problem on some
platforms where include files directly under ${.OBJDIR}/include (not in
a subdirectory) were not installed.
2012-12-09 15:22:54 +00:00
mrg 86d6509587 avoid illegal sleeps in the softint routine.
XXX could probably do better by creating a watchdog thread.
2012-12-09 03:30:00 +00:00
christos d60ecb6c95 one semicolon is usually enough. 2012-12-09 02:59:16 +00:00
joerg d6b0aba16b Revert, there is a more fundamental issue with util.h. 2012-12-08 23:29:28 +00:00
jnemeth be61d44017 Add some quotes by Henry Ford, found at:
http://www.goodreads.com/author/quotes/203714.Henry_Ford
2012-12-08 22:38:09 +00:00
joerg 52dd0a9cad Use util.h only in the native case. 2012-12-08 21:04:27 +00:00
jakllsch 592ed87a82 "lapic.h" provides NLAPIC, not LAPIC. makes i386 kernels build again. 2012-12-08 14:40:10 +00:00
manu 591c7f2eaa Remove always-true condition and note that the current code is suboptimal. 2012-12-08 13:42:36 +00:00
kiyohara a661216555 #ifdef - #endif-ed. NMCA, NISA, NNPX, NIOAPIC, LAPIC, MPBIOS and MULTIPROCESSOR. 2012-12-08 12:36:30 +00:00
kiyohara 846cde58f1 Not FALLTHROUGH. 2012-12-08 11:43:27 +00:00
kiyohara c458dc359f Add required attribute mk48txx to nvram. 2012-12-08 11:03:36 +00:00
hannken e0783eff3d Try to coalesce writes to the journal in MAXPHYS sized and aligned blocks.
Speeds up wapbl_flush() on raid5 by a factor of 3-4.

Discussed on tech-kern.

Needs pullup to NetBSD-6.
2012-12-08 07:24:42 +00:00
matt ce5eac0bf1 For cortex kernels, also specify -mfpu=neon 2012-12-08 07:05:23 +00:00
matt 5e6666bf7b Define the correct __UCONTEXT_SIZE for EABI. 2012-12-08 06:58:36 +00:00
matt a431007dd2 On Cortex, make sure to load/save the upper 16 64-FP registers.
When creating a mcontext_t, make sure _UC_ARM_VFP is set.
2012-12-08 06:49:00 +00:00
matt 3b04b7dc45 Make sure that if _UC_FPU is set, that _UC_ARM_VFP is also set. 2012-12-08 06:47:31 +00:00
matt cb733fbb03 Make sure the enable bit is not set when restoring the VFP context since
that has special meaning to the VFP PCU code.
2012-12-08 06:46:49 +00:00
christos b72a1f38b6 need stdint.h for uint64_t and it is messy to do it open-coded. 2012-12-08 02:41:54 +00:00
christos cfd7c4b684 XXX: Use earm for earmeb 2012-12-08 02:35:06 +00:00
christos decff94806 fix inconsistencies in EABI decls. 2012-12-08 01:38:26 +00:00
matt ea39f48440 Make evcnt'ers optional. 2012-12-07 22:21:03 +00:00
matt 69b293bf1c Add BCMETH_COUNTERS 2012-12-07 22:18:45 +00:00
matt 46372d58aa Extend vfpreg to include all 32 64-bit FP registers.
For __ARM_EABI__, define __vfp_fstmx to have space for all 32 32-bit
FP registers (It's a newly supported ABI so we can "break" binary
compatibility.
2012-12-07 18:49:13 +00:00
njoly 29ea86ba98 +dnssec-verify.debug 2012-12-07 18:48:54 +00:00
matt d75601563c FPCONTEXTSIZE is dead. 2012-12-07 18:46:50 +00:00
njoly 6d3bcac84f Adjust libraries debug entries following recent bind update. 2012-12-07 18:36:24 +00:00
christos c98323355a use explicit cast to pacify lint. 2012-12-07 15:41:02 +00:00
christos 06c8deb857 If we did not include a specific arch file G_UNWIND_H will not be defined.
Perhaps it is better to error out in that case?
2012-12-07 15:38:04 +00:00
christos 62903782ed rename pcb_sp to policy to avoid:
$SRC/arch/arm/include/pcb.h:#define     pcb_sp          pcb_un.un_32.pcb32_sp
$SRC/arch/arm/include/pcb.h:#define     pcb_sp          pcb_sf.sf_r13
2012-12-07 15:29:38 +00:00
jdc 3ffd7a4c67 Add uthum (tested on U60 with Belkin F5U508 USB 2 and SB2000 built-in USB 1). 2012-12-07 12:57:01 +00:00
hauke 6cd5612467 Remove the R1 syntactic sugar, since it collides with a #define in
<m68k/regs.h>, breaking the build.

The R1s serve to bring the buffer pointer to a 4 byte boundary, but
that should be clear from the context.
2012-12-07 08:04:02 +00:00
dholland 56e7f62d2a It is MAXNAMLEN, not MAXPATHLEN, that NAME_MAX has to be the same as. 2012-12-07 07:06:39 +00:00
msaitoh b6e1d8e8d8 Fix off by one error. 2012-12-07 06:50:15 +00:00
msaitoh 392c5dcb84 - sprintf() -> snprintf()
- Fix typo in comment.
2012-12-07 05:56:30 +00:00
msaitoh 5718072e54 Apply OpenBSD rev. 1.40:
> Use the actual SSID length rather than a (wrong) sizeof. Makes gcc4
 > -Wbounded happy.
 >
 > ok kettenis
2012-12-07 05:45:17 +00:00
msaitoh 54a1d94980 Fix off by one. 2012-12-07 04:49:08 +00:00
chs 8f4ea3c47b adapt the profile dtrace provider to netbsd. 2012-12-07 03:11:17 +00:00
christos b1dcb17635 use __BITMAP_TYPE 2012-12-07 02:28:19 +00:00
christos 8dc929e1a8 add __BITMAP_TYPE 2012-12-07 02:27:58 +00:00