Commit Graph

10747 Commits

Author SHA1 Message Date
wiz 4a591a0994 Wording improvements from Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com> 2013-11-29 23:58:23 +00:00
joerg ed478d1345 Mark usage as dead. 2013-11-29 23:01:05 +00:00
christos 1d7c1fad3f Remove pppd 2013-11-28 22:38:59 +00:00
christos 09c7a4bf31 Unhook pppd 2013-11-28 22:34:44 +00:00
christos fc0ed55151 CID 1132759: Abort on dehumanize_number error on constant built-in string. 2013-11-27 20:48:28 +00:00
mlelstv ffb41b3a17 Fix fallout from circleq->tailq transition. 2013-11-24 13:13:12 +00:00
rmind 1e9541dade npftest: adjust for the npf_bpf_filter() change. 2013-11-23 19:40:11 +00:00
rmind e636c1e87f npfctl: need to rewind the list after calling print_table(). XXX libnpf. 2013-11-22 18:42:02 +00:00
rmind 805a41fbfe Add npf_tableset_syncdict() to sync the table IDs in the proplib dictionary,
as they can change on reload now.  Also, fix table name checking in npfctl.
2013-11-22 00:25:51 +00:00
christos 905fa31223 From Brooks Davis:
When comparing a directory to an mtree file NetBSD mtree has output like
this:

xxx:	size (4, 5)
	md5digest (0x6de9439834c9147569741d3c9c9fc010, 0xa5d119ab8edcda0ef7f381da8=
f52f92f)
=2E/yyy missing

FreeBSD's historical behavior is this:

xxx changed
	size expected 4 found 5
	md5digest expected 6de9439834c9147569741d3c9c9fc010 found a5d119ab8edcda0e=
f7f381da8f52f92f
=2E/yyy missing

FreeBSD's mergemaster -U command depends on the latter behavior so
the following patch alters the freebsd9 mode of mtree to output
that format.  I don't think programs should rely on this output one way
or another since it's clearly meant for humans, but this seems like the
easiest short term fix.
2013-11-21 18:39:50 +00:00
christos 8216c37c22 CID 1129614: dereference after null 2013-11-19 17:01:45 +00:00
christos 12768cae83 CVE 1129617: negative arg 2013-11-19 16:42:16 +00:00
rmind d116583e69 Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.
2013-11-19 00:28:41 +00:00
rmind 3fb1890bf5 Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.
2013-11-18 21:39:03 +00:00
rmind 2566fe9fff Add bsd.own.mk for MKSLJIT, reorder some vars. 2013-11-16 17:12:35 +00:00
alnsn a36c412b37 Link to -lrumpnet_bpfjit and -lrumpkern_sljit iff MKSLJIT != "no". 2013-11-16 15:58:30 +00:00
rmind 467de1619d Enable bpfjit for npftest. 2013-11-16 01:41:43 +00:00
hannken 30f40cbb12 Describe the differences between file system internal and external snapshots. 2013-11-15 09:13:57 +00:00
msaitoh b1a32cacda Modify some macros and add some new macros for CPU family and model
to reduce code duplication and to avoid bug.

CPUID_TO_STEPPING(cpuid)	(not changed)

CPUID_TO_FAMILY(cpuid)		(new)
CPUID_TO_MODEL(cpuid)		(new)

	Return the display family and the display model.
	The macro names are the same as FreeBSD.

CPUID_TO_BASEFAMILY(cpuid)	(The old name was CPUID2FAMILY)
CPUID_TO_BASEMODEL(cpuid)	(The old name was CPUID2MODEL)

	Only for the base field.

CPUID_TO_EXTFAMILY(cpuid)	(The old name was CPUID2EXTFAMILY)
CPUID_TO_EXTMODEL(cpuid)	(The old name was CPUID2EXTMODEL)

	Only for the extended field.

See http://mail-index.netbsd.org/port-amd64/2013/11/12/msg001978.html
2013-11-15 08:47:55 +00:00
christos 3d281e09f8 CID 1125875: Fix memory leak 2013-11-13 21:22:46 +00:00
christos 04ffc4cd1c CID 1125876: File descriptor leak 2013-11-13 21:20:21 +00:00
christos a0e4a7ac42 CID 1125882: Don't use unitialized variable; move code inside conditional
where it was intended.
2013-11-13 21:19:17 +00:00
wiz 0f54719895 Skip files of size 0 from indexing.
From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2013-11-13 18:46:33 +00:00
wiz d8099589ae Remove trailing whitespace. 2013-11-12 06:07:30 +00:00
rmind 1e7342c150 NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes.  Bump NPF_VERSION.
2013-11-12 00:46:34 +00:00
christos ea5463304e CID 1128379: Fix TOCTOU, always open the file first with non-blocking I/O,
do that stat later and leave the file as non-blocking because it does not
make a difference for plain files.
2013-11-11 16:39:21 +00:00
wiz 130f1c4a78 Bump date for FIFO support. 2013-11-10 00:13:50 +00:00
christos f55ff5e8dd vax specific gcc 4.8.1 hacks 2013-11-09 21:39:27 +00:00
christos d15656b177 add support for outputting to FIFO's (Anthony Mallet) 2013-11-09 19:00:18 +00:00
christos 06a74ca997 fix two bugs related to queues (Anthony Mallet)
- the default values are in humanized number form so strtol does not work
- fix reversed size tests
2013-11-09 18:58:22 +00:00
christos f7bfce339d more sh3 hacks. 2013-11-09 00:33:48 +00:00
christos 553f814b0d remove unused variable 2013-11-08 01:10:23 +00:00
rmind a79812ea10 NPF: add support for specifying the interfaces before they are attached.
If an interface is or gets detached, all associated rules and connections
will be deactivated (it might be useful to have an option to invalidate
the associated connections).  Once the interface is reattached they will
become active.

Bump NPF_VERSION.
2013-11-08 00:38:26 +00:00
msaitoh 3b5f820d76 Fix typo. From jnemeth. 2013-11-07 18:59:01 +00:00
msaitoh a9491a8185 Update some processor names. 2013-11-07 18:18:59 +00:00
kefren 915c0cd28e sync an example with the latest group syntax change 2013-11-05 13:09:12 +00:00
rmind 05a7a9a52e npfctl: optimise fetch_l3() to avoid unnecessary call to NPF_COP_L3. 2013-11-05 01:50:30 +00:00
christos 2a26fd0cf9 sprinkle vax 2013-11-03 00:48:52 +00:00
mrg ea1cef97af avoid uninitialised variable use. 2013-10-30 08:42:16 +00:00
mrg ef05d8864c ensure variables are initialised 2013-10-30 08:41:57 +00:00
msaitoh c622541618 Support prefetch size. 2013-10-28 05:41:49 +00:00
apb 3d4c34e695 Now that tools/compat/compat_defs.h defones __USE, there's no
need to treat the tools build as a special case.
2013-10-24 14:01:01 +00:00
christos a74a5abffb XXX: gcc initialize a variable 2013-10-21 15:37:46 +00:00
msaitoh ea7bd36351 Check cpuid leaf 4 for newer Intel CPU to know the cache information. 2013-10-21 06:33:11 +00:00
msaitoh 0380541841 No functional change:
- Add prototypes.
- Make some function static.
- Sort functions.
2013-10-21 06:28:15 +00:00
mrg e392147a46 avoid using __USE() in the tools version of this. 2013-10-19 20:49:22 +00:00
christos 0a77b69ab6 fix unused variable warnings. 2013-10-19 17:16:37 +00:00
christos 94a96ec4ae use new scopeid functions 2013-10-19 17:16:25 +00:00
christos a18b60aecf move all the necessay code inside ifdef 2013-10-19 17:10:17 +00:00
christos b02f1063c3 using sizeof(char *) to compute the size of a buffer is not going to work
very well.
2013-10-19 17:09:38 +00:00