Commit Graph

10327 Commits

Author SHA1 Message Date
wiz 4f36cb9e44 - Sort order of options mentioned in text;
- improve wording;
- remove unneeded macros (fixes mandoc(1) warnings);
- in the `EXAMPLES' section, for `-d', mention the use of `-U'
  besides that of `-u' (as the former is a variant on the latter).

From Bug Hunting.
2012-10-03 19:27:48 +00:00
rmind e7cdd21f2e npfctl/yyerror(): print the right line number if we already parsed the line. 2012-10-02 23:38:52 +00:00
wiz df3325de63 Wording, more macros. 2012-09-30 21:15:08 +00:00
rmind 395bd44a04 Add some content to the Procedures section. 2012-09-30 21:09:30 +00:00
wiz cda4ed683f Use more markup. New sentence, new line. 2012-09-30 13:15:03 +00:00
spz 34865a25d0 Add some content to the "Rules" section. 2012-09-30 12:59:31 +00:00
wiz c92c93101c Whitespace fixes, remove unnecessary Pp
XXX: Subsections Rules and Procedures seem empty?
2012-09-30 07:43:03 +00:00
rmind 703f289235 npf.conf(5): add syntax section and a first cut describing the structural
elements.  Some improvements and fixes from spz@.
2012-09-29 19:50:03 +00:00
spz 6d80dd36ba re-work the description part of the man page, as discussed with rmind@ 2012-09-28 18:36:02 +00:00
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