Commit Graph

10318 Commits

Author SHA1 Message Date
rmind
aed1e968f7 npf.conf(5): improve and explain grammar definition. 2012-09-26 21:58:27 +00:00
ast
0b98a54c44 Make sure that the "to fix, run: ..." instructions actually work cut-and-paste
By default postinstall has mode 644 so /bin/sh or similar needs to be prepended
2012-09-22 09:20:06 +00:00
rmind
8c6e21bf5e Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module.  Move normalisation and logging functionality into their own
extensions.  More improvements to come.
2012-09-16 13:47:41 +00:00
plunky
ea7708e17f IPF 5.1.2 is in external/bsd/ipf and sys/external/bsd/ipf now;
these files are obsolete
2012-09-15 18:12:17 +00:00
plunky
19ea14f457 does not need -I${NETBSDSRCDIR}/sys/dist/ipf here, the include files
are installed in /usr/include/netinet
2012-09-15 17:46:25 +00:00
joerg
c4eabd7bd6 More __dead 2012-09-14 15:37:03 +00:00
joerg
ed602fb487 Don't use const foo const as type, one const is enough. 2012-09-13 21:44:49 +00:00
martin
5a79cb1f57 Do not build npftest without shared libraries - it can't work. 2012-09-13 21:02:50 +00:00
wiz
2ea831cdd8 Fix typo in syslog message.
From Edgar Fuß in PR 46950.
2012-09-13 11:09:41 +00:00
rjs
5abdc4ce9a Allow build with MKRUMP=no. 2012-09-12 19:20:37 +00:00
martin
9cf2fc91c7 Fix printf format 2012-09-12 16:26:02 +00:00
martin
18d0240310 Install the npftest binary 2012-09-12 14:06:02 +00:00
martin
a76a87c096 Add two new command line options to help integration into ATF:
-L lists the available test cases, -T executes a single named test.
2012-09-12 08:47:14 +00:00
wiz
43eaa46ea3 Use emalloc in one more place, like the rest of the code does.
From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2012-09-07 11:29:04 +00:00
wiz
ab20ab348a Fix usage, from Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>. 2012-09-07 11:28:46 +00:00
riz
d41e703879 Disable default build of debugging info. 2012-09-06 16:39:07 +00:00
rmind
8f51214c07 npfctl usage: minor formatting fix. 2012-09-01 19:08:01 +00:00
wiz
498ab6ee99 cgd and sjg relicensed this under 2-clause-BSD.
Reported by Ed Schouten <ed@FreeBSD.org> to tech-userlevel.

Adapt license to match FreeBSD's version, leaving Ed out
since according to CVS logs, he didn't touch NetBSD's version.
2012-08-31 19:55:23 +00:00
skrll
3bbaf20745 Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not
2012-08-31 11:52:39 +00:00
drochner
629e6fc4b6 fix for archs w/o cpu ucode driver: add dummy definition 2012-08-31 07:27:27 +00:00
wiz
e93044e5ab Add -Q flag:
Print only fatal error messages (i.e., when the database is left in
an inconsistent state and needs manual intervention).

From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2012-08-29 20:33:01 +00:00
drochner
312c339026 Extend the CPU microcode update framework to support Intel x86 CPUs.
Contrary to the AMD implementation, it doesn't use xcalls to distribute
the update to all CPUs but relies on cpuctl(8) to bind itself to the
right CPU -- to keep it simple and avoid possible problems with
hyperthreading.
Also, it doesn't parse the vendor supplied file to pick the right
part for the present CPU model but relies on userland to prepare
files with specific filenames. I'll commit a pkg for this in a minute
(pkgsrc/sysutils/intel-microcode).
The ioctl interface changed; compatibility is provided (should be
limited to COMPAT_NETBSD6 as soon as this is available).
2012-08-29 17:13:21 +00:00
wiz
e700cc04ea Dots as macro arguments need quoting.
Bug reported by Paul Goyette.
2012-08-26 14:50:45 +00:00
wiz
3450e15562 Sync usage with manpage. 2012-08-25 12:37:12 +00:00
wiz
6110b05d8f Sort options in SYNOPSIS. 2012-08-25 12:37:00 +00:00
rmind
b8c27e4a39 npftest:
- Do not stop running other tests, if some tests fail.
- Fix some endianness bugs in the test cases.

Tested on sparc64 by martin@, all tests pass.
2012-08-21 20:52:11 +00:00
zafer
d4798304b1 Pretty print multipath routes. From FreeBSD.
ok christos@
2012-08-16 00:40:28 +00:00
rmind
e0cfa502eb Add npf_state_setsampler() for _NPF_TESTING case. This also fixes the build. 2012-08-15 19:47:38 +00:00
apb
03766ceab0 Remove the ability to specify multiple colon-separated file names with
a single "-s" option.  Multiple "-s" options must now be used instead.
We have been printing a warning about this since 2008-09-14.
2012-08-15 16:26:41 +00:00
apb
1de7d5f1b7 Remove the ability to specify multiple colon-separated fiel names with
a single "-s" option.  Multiple "-s" options must now be used instead.
We have been printing a warning about this since 2008-09-14.
2012-08-15 16:21:41 +00:00
apb
74a992e866 Don't rely on stat(1) with format "%SHr" to print the correct names.
That uses devname(3) internally, which doesn't work at all in a cross
build environment, and doesn't do what I thought even in a native
environment.

Instead, parse the device major numbers for the pty master and slave
devices from the output of "MAKEDEV -s pty0" and check those against the
actual device node that we are thinking of removing.
2012-08-15 12:48:19 +00:00
joerg
dcdf3b2d8d Fix memset usage. 2012-08-15 00:16:06 +00:00
rmind
68f7a7bc54 Move and rename librumpdev_npf to librumpnet_npf. 2012-08-14 22:31:43 +00:00
apb
508b448a57 Change do_ptyfsoldnodes to use stat(1) to check whether a file is
a device node of the correct type.  We no longer need to get the
major number from searching the MAKEDEV script, because the output
from stat(1) will contain the strings "tty" or "pty" instead of
the numeric major numbers.  We also no longer rely on "find -ls".
2012-08-14 13:11:24 +00:00
apb
0c31a5f126 Use grep -E and grep -F instead of egrep and fgrep. This reduces the
number of tools that may need to be passed in the environment.
2012-08-14 12:07:57 +00:00
apb
beaffa0794 Remove the "stat" shell function (stat op format target value).
It has been unused since revision 1.14 dated 2006-05-30.
2012-08-14 10:38:40 +00:00
christos
c3c4374a7d use freeaddrinfo() 2012-08-14 08:23:30 +00:00
dholland
9011835d97 Improve DESCRIPTION, fix up English usage. 2012-08-14 08:08:29 +00:00
dholland
4ce2ad59b6 Grr. The ATF quota tests demand failing silently in certain circumstances.
For netbsd-6 we will just have to go with the flow, as I'm not touching
anything outside edquota tonight.
2012-08-14 04:53:43 +00:00
dholland
c9817be0c7 three more minor fixes. 2012-08-14 04:48:42 +00:00
dholland
40b0b3a839 Make editor-based edquota work again.
The format is somewhat different; I'm operating under the assumption
that nobody has automated editing scripts for the old format because
it's much easier just to use the command-line interface of
edquota. The new format is more scalable and more parseable.

Also, do a better job of diagnosing editing errors, and don't blindly
erase all quota information for the user being edited when a parse
error occurs after editing.
2012-08-14 03:55:48 +00:00
dholland
b743f28223 Bail out early if none of the mounted volumes support quotas. Avoids a
null print in interactive use.
2012-08-13 23:08:58 +00:00
dholland
e8ef0182c9 Minor cleanup: use bitfields instead of a flags word for private state
flags, remove now-unused qfname field.
2012-08-13 22:21:05 +00:00
martin
ff5fcf4714 Cleanup temporary file 2012-08-13 18:22:25 +00:00
martin
1d5deaee0c Make "fix ptyfsoldnodes" more verbose 2012-08-13 15:17:16 +00:00
wiz
5c9a0052ca Sync usage with manpage. End it with a newline. 2012-08-13 12:37:18 +00:00
wiz
a0b9ae45e4 Sort options in SYNOPSIS. New sentence, new line. Improve descriptions.
Use more markup. Sort option descriptions. Add arguments to option descriptions.
Punctuation nits.
2012-08-13 12:37:05 +00:00
pgoyette
f283cd004e Add -4 and -6 options to rpd.lockd for consistent control over the
protocols to which it listens.  As discussed on tech-userlevel.
2012-08-13 12:22:21 +00:00
martin
d08b85050c Add a ptyfsoldnodes item that checks/removes old /dev/{p,t}ty* nodes
if ptyfs is used.
2012-08-13 10:20:52 +00:00
wiz
b8117286a3 Sort descriptions. Fix macro. Move example to new EXAMPLES section. Add EXIT STATUS section 2012-08-13 08:39:28 +00:00