Commit Graph

9866 Commits

Author SHA1 Message Date
joerg ff53df718a Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.
2011-03-21 05:09:33 +00:00
plunky 0e26bab8bd provide more informative error messages 2011-03-20 19:46:13 +00:00
ahoka ab7aeea36d Fix markbad command 2011-03-20 06:10:27 +00:00
christos ade14f59b9 don't decrement if children are 0 2011-03-17 19:43:34 +00:00
joerg 080ec811b2 Remove chrtbl(8). Since NetBSD 1.6, the rune type based file format for
LC_CTYPE has been used.
2011-03-17 02:35:27 +00:00
christos 155180a9df - safer way to count kids
- if we are really bombarded with connections, don't bother to fork() and
  converse.
2011-03-16 20:17:00 +00:00
christos 976d43ec5c provide unconst for the havenots 2011-03-16 20:15:59 +00:00
pooka 8a0861f462 remove unnecessary superuser check -- bind will fail if bind fails 2011-03-14 12:03:45 +00:00
erh b0e49f7e0c Fix the usage of the -s option to mention using it multiple times, rather
than the deprecated colon separated syntax.
2011-03-12 23:04:16 +00:00
njoly d96aa7b8c7 - Protect flags to avoid macro expansion by mandoc.
- Explicitely close display block.
2011-03-07 17:44:37 +00:00
bouyer 5fd63a9777 Don't use the same char b0[] for BLOCK and FILE timeprt(), they would
override each others.
2011-03-07 11:56:31 +00:00
christos e73fcb7199 KNF 2011-03-06 23:41:47 +00:00
christos 6a453cd117 more code deduplication 2011-03-06 23:25:42 +00:00
christos cb869888d4 use common utils 2011-03-06 23:24:33 +00:00
christos 412de05f04 more KNF 2011-03-06 23:13:22 +00:00
christos a518d1d73c use merged out code. 2011-03-06 23:07:23 +00:00
christos 3f339fb13b - KNF
- merge code
- fix error printing
- don't use static buffers
2011-03-06 22:33:55 +00:00
wiz 54f3ceb271 Sort options, split "file system". 2011-03-06 17:36:32 +00:00
wiz 9758975014 Remove trailing whitespace; remove dot at end of SEE ALSO; new sentence, new line;
split "file system"; more markup.
2011-03-06 17:34:57 +00:00
wiz ee43c34a26 Split "file system" like usual. Improve SYNOPSIS. Various other fixes. 2011-03-06 17:32:38 +00:00
bouyer 063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
wiz 537c852bde Fix a typo, sort commands. 2011-02-27 23:28:12 +00:00
ahoka f338bae6fa Add manpage for flashctl 2011-02-27 17:51:45 +00:00
ahoka 2b6ee22130 Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary.

The commit includes:
 - Flash layer, which gives a common API to access flash devices
 - NAND controller subsystem for the flash layer
 - An example OMAP driver which is used on BeagleBoard or alike ARM boards
2011-02-26 18:07:13 +00:00
jmcneill 6c24ed80e8 make pcictl pci0 list dump all busses by default, unless a bus number is
specified with -b
2011-02-25 21:40:48 +00:00
wiz 1cc61a3b95 Add quoting for minus, for PostScript output. 2011-02-25 14:11:25 +00:00
jmcneill 29a080d47e Today I learned that 'pcictl pci0 list -b -1' lists devices on all busses. 2011-02-25 13:50:18 +00:00
hannken 05e91bfee8 fss(4): Allow FSSIOCSET to set the initial flags. Add a new flag
"FSS_UNLINK_ON_CREATE" to unlink the backing store before
        the snapshot gets created.

With this change dump(8) no longer dumps the zero-sized, but named
snapshot it is working on.  Same applies to fsck_ffs(8).
2011-02-24 09:38:57 +00:00
dyoung 6c185a0be8 Don't use bool as a variable name.
Remove a bunch of parameter names form function prototypes.
2011-02-23 01:23:03 +00:00
jmcneill 623e90f32d fix printing of padlock features 2011-02-19 13:34:38 +00:00
wiz 3d273e44b9 Sort option descriptions. Merge single-letter options in SYNOPSIS. 2011-02-17 17:05:05 +00:00
jruoho e96937f774 Provide a definition for the size of the RSDP in ACPI 1.0.
Appears to be missing in the new ACPICA.
2011-02-17 15:06:34 +00:00
jmcneill 0a87e1998a document -c and -s flags 2011-02-17 10:21:02 +00:00
jmcneill d34a996f1f - when dumping table bytes, make sure to dump our header and not the next one
- also dump tables with bad checksums, unless the -s flag is specified
2011-02-17 10:18:05 +00:00
jmcneill d91f7d5299 dump bytes for tables that acpidump doesn't decode, and print them
as characters instead of hex if '-c' flag is provided
2011-02-17 02:55:16 +00:00
uebayasi dbb2d01c6b Suppress a superfluous whitespace after "time=..." in the output. 2011-02-14 16:27:58 +00:00
kefren a9e39e843e get rid of unused variable/assignments 2011-02-14 11:43:59 +00:00
enami e8824b0da4 A number greater than or equal to 1.0 is a positive number. 2011-02-14 02:43:37 +00:00
enami 5a1e40df4f Put space after comma and around binary operator. 2011-02-14 02:42:26 +00:00
tron cdfb116b0f Install "etc/gpio.conf" if it is missing. 2011-02-13 20:25:35 +00:00
tron 85add3c312 Add "npf" to the list of startup scripts that get checked. 2011-02-13 20:17:26 +00:00
tsutsui 14d39e456d Fix botch in previous revision. Sorry for a stupid change. 2011-02-10 23:25:11 +00:00
kefren d2ac267049 stop processing a label mapping message if we don't have a route for it.
This way we avoid failing an assert later in mpls_add_label()
2011-02-10 12:44:41 +00:00
kefren 34493327dd use RT_ROUNDUP provided by net/route.h 2011-02-09 11:38:57 +00:00
rmind bb9ae7c0c2 Restore historic SCCS IDs in the comments (were removed in previous commit).
Noted by wiz@.
2011-02-09 10:25:40 +00:00
plunky 9119e9c88f the default socket rcvbuf for L2CAP is only 4Kbytes which is only
2 and a bit ethernet packets. Check and increase SO_RCVBUF on startup
so that we have buffers for 10 complete packets, should solve a
reported problem with overruns at higher connection speeds (our L2CAP
does not have any flow control).

(the default can still be adjusted upwards using sysctl)
2011-02-08 21:59:50 +00:00
plunky bc0aea6bfb check number of filters received against max possible 2011-02-08 21:43:45 +00:00
rmind 9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
tsutsui 7efd442c9a Retire legacy grfinfo and hilinfo derived from HPBSD
since finally hp300 got wscons.
2011-02-07 18:11:28 +00:00
dholland b0b5abdaa0 Fix typo, from Henning Petersen in PR 44513. 2011-02-07 01:37:12 +00:00
yamt 6825a3d2a8 whitespace. no functional changes. 2011-02-05 13:32:32 +00:00
martin 82fe9809af Use RT_ROUNDUP() and friends from sys/route.h instead of homegrown
variants.
2011-02-04 14:31:23 +00:00
rmind 3bb326c464 Fix sun2 builds. Noted by joerg@. 2011-02-04 00:19:51 +00:00
rmind 07ac07d35f NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
  Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.
2011-02-02 02:20:24 +00:00
chuck f46c12c85c remove no-longer-valid wustl email address for me.
no functional change with this commit.
2011-02-01 21:00:25 +00:00
chuck e2bf3ae6ea udpate license clauses on my code to match the new-style BSD licenses.
remove no-longer-valid wustl email address for me.

no functional change with this commit.
2011-02-01 20:58:15 +00:00
plunky 9a8271a39a when a BNEP channel is opened, clear any NetType or MulticastAddress
filters that may be in effect at the remote side.
2011-01-27 12:19:48 +00:00
plunky a14e16bfe0 style nit 2011-01-27 11:13:59 +00:00
pooka 5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
kefren 716840ec3a avoid advertising 0/8 transport address (conforming RFC1122
Section 3.2.1.3)
2011-01-22 19:46:46 +00:00
kefren 0c3c6bf2b7 use SLIST_FOREACH_SAFE when deleting a peer in loop 2011-01-22 19:35:00 +00:00
ginsbach 818c8e81ff - Replace fatal2() with the appropriate err(3)/errx(3) calls. 2011-01-20 15:48:11 +00:00
rmind f938371887 NPF checkpoint:
- Add the concept of rule procedure: separate normalization, logging and
  potentially other functions from the rule structure.  Rule procedure can be
  shared amongst the rules.  Separation is both at kernel level (npf_rproc_t)
  and configuration ("procedure" + "apply").
- Fix portmap sharing for NAT policy.
- Update TCP state tracking logic.  Use TCP FSM definitions.
- Add if_byindex(), OK by matt@.  Use in logging for the lookup.
- Fix traceroute ALG and many other bugs; misc clean-up.
2011-01-18 20:33:45 +00:00
minoura 1dfc739f1d Whitespace. 2011-01-14 13:31:47 +00:00
minoura c98325a1d2 Fix restore() (-r option). It didn't read the input file.
Apparently I did not test that code.
Pointed out by wiz@, thanks.
2011-01-14 13:25:16 +00:00
haad 6f5bb5ac37 Move chown from usr.sbin to sbin and chgrp from usr.bin to bin directories.
This was discussed and oked on tech-userlevel I have run full build release,
test anita cycle with this patch.
2011-01-13 22:28:35 +00:00
jakllsch a96fe1437c Fix copy/paste error that resulted in a extra space after the KB/t column. 2011-01-09 03:35:23 +00:00
jakllsch 65d4cff419 NetBSD/vax libm now has fmax, use it again.
Also, display average transfer size using dynamic precision too.
2011-01-09 02:40:19 +00:00
jakllsch 208ac54ed2 NetBSD/vax does not implement fmax(3), substitute with existing MAX() macro. 2011-01-08 02:36:52 +00:00
jakllsch 5637a88e80 Maintain 5-character width of MB/s column by dynamically adjusting the
decimal precision.

This should work until disk transfer rates exceed 99999 MB/s.
2011-01-07 03:12:27 +00:00
christos 63a6577561 make error messages more consistent. 2011-01-04 20:45:12 +00:00
kefren 57323b5589 check from_cidr_to_union() result 2011-01-04 10:58:15 +00:00
wiz b6d5645a8f Fix fd leaks. Found by cppcheck. 2011-01-04 10:32:34 +00:00
wiz e57ebdb6c5 Close masterfd after reading from it. Found by cppcheck. 2011-01-04 10:30:21 +00:00
wiz ecde3f3716 Fix possible NULL pointer dereference in #ifdef AS_DEBUG_FILE.
Found by cppcheck.
2011-01-04 10:26:56 +00:00
wiz 57af1dbb63 unifdef -U RCSSTAT
This code was added in 1.2 by brezak with changes for the commit message:
"Change <sys/dir.h> to <dirent.h>"
and looks like it never worked.
2011-01-04 10:23:40 +00:00
kefren 53e5c5d4ca Fix more memory leaks in case malloc fails 2011-01-04 10:18:42 +00:00
wiz 28f00e2eeb Fix fd leaks in error cases. Found by cppcheck. 2011-01-04 10:14:25 +00:00
wiz 74431f1f44 Fix fd leak in error case. Found by cppcheck. 2011-01-04 10:10:39 +00:00
wiz ff17b1fa3b Use pclose() after popen(). Found by cppcheck. 2011-01-04 10:05:55 +00:00
wiz a148caca6e Fix fd leaks in error cases. Found by cppcheck. 2011-01-04 10:01:51 +00:00
wiz 89152edad2 Fix memory leak in error case. Found by cppcheck. 2011-01-04 09:58:03 +00:00
wiz 613c28210d Fix fd leaks in error cases. Found by cppcheck. 2011-01-04 09:48:21 +00:00
wiz c15af5889a Fix fd leak in error cases. Found by cppcheck. 2011-01-04 09:43:39 +00:00
wiz f5249cc468 Fix memory leak in error case. Found by cppcheck.
XXX: so_tag has same problem?
2011-01-04 09:42:21 +00:00
wiz bcfe662395 Fix fd leaks in error cases. Found by cppcheck. 2011-01-04 09:32:31 +00:00
wiz f5e448fd74 Fix fd leaks. Found by cppcheck.
While here, fix typo in warning message.
2011-01-04 09:28:44 +00:00
wiz 7892952169 Fix fd leak in error case. Found by cppcheck. 2011-01-04 09:25:21 +00:00
wiz 7e975aaf96 Add missing breaks in switch statement. Found by cppcheck. 2011-01-04 09:16:17 +00:00
wiz baacf5e062 Fix fd leak in error case. Found by cppcheck. 2011-01-04 09:14:42 +00:00
wiz f5bd7d1980 Close fd in error case. Found by cppcheck. 2011-01-04 09:13:22 +00:00
wiz 260bd09a04 Use format string for err(). From Henning Petersen in PR 44326. 2011-01-04 09:04:24 +00:00
kefren 1eed43ba6c show in neighbour information if peer is MD5 authenticated 2010-12-31 11:29:33 +00:00
wiz 8e0432a723 Make usage match SYNOPSIS. 2010-12-31 06:16:17 +00:00
wiz 0161387400 Sort SYNOPSIS, use Pa for path. 2010-12-31 06:15:08 +00:00
christos 92b36398b7 - detect calloc failure
- int -> size_t
- cache strlen
- proper cast for ctype macro
2010-12-30 21:26:00 +00:00
kefren e64aab24d3 * add config file so one can control id, timers and label assignment and
use neighbour specific options - XXX: needs documentation
* add peer authentication using TCP_MD5SIG. Interoperability tested with
  Cisco IOS
* use SLIST_FOREACH_SAFE when deleting labels instead of re-looping.
2010-12-30 11:29:21 +00:00
pgoyette eab26c47c1 Rump-ify powerd. 2010-12-19 22:52:08 +00:00
jruoho 2f16bead08 Fix theoretical buffer overflow by using MAXPATHLEN for realpath(3). 2010-12-19 16:25:16 +00:00
joerg 879c335754 Don't assign CFLAGS. Use default WARNS from usr.sbin/Makefile.inc. 2010-12-18 04:25:37 +00:00
rmind 628e094cdc NPF checkpoint:
- Add support for session saving/restoring.
- Add packet logging support (can tcpdump a pseudo-interface).
- Support reload without flushing of sessions; rework some locking.
- Revisit session mangement, replace linking with npf_sentry_t entries.
- Add some counters for statistics, using percpu(9).
- Add IP_DF flag cleansing.
- Fix various bugs; misc clean-up.
2010-12-18 01:07:25 +00:00
njoly 29263bd796 Add _tcpdump uid/gid checks. 2010-12-17 22:56:22 +00:00
jruoho 27cfff3b3e Make tcpdump(8) to drop root privileges and chroot(2) by default. 2010-12-17 09:54:27 +00:00
wiz 3d3c5d42cb Observe the following spelling:
- wide character (noun)
- wide-character (adjective)

Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
pgoyette 120c01c6d1 When skipping output for a temperature of absolute zero, don't forget to
skip past the display columns that the value would otherwise occupy.

Fixes display issue when swsensor(4) is used and it has a value of 0K,
as reported by njoly@
2010-12-16 14:37:23 +00:00
wiz 8d07e89e04 Merge single-letter options in SYNOPSIS. 2010-12-15 18:11:01 +00:00
pgoyette 5702902fe1 Add an option to not actually run the power management scripts, and
when in debug mode send all error messages to stderr rather than to
syslog(8).
2010-12-15 17:12:40 +00:00
cegger 473a16d6eb beautify printing of SVM features across multiple lines 2010-12-15 17:09:07 +00:00
pooka a7c3e616ee RLIMIT_NOFILE stabilized in NetBSD 17 years ago, so it's safe now
to remove the #ifdef's from around code which uses it.
2010-12-15 15:36:15 +00:00
pooka d84441777f Don't need prog_ioctl here, it's a leftover of the previous approach.
pointed out by Paul Goyette
2010-12-15 15:07:54 +00:00
pooka 7d769f0a0f Nuke conditionally compiled MULOG stuff. Itojun wanted to do it
already 8 years ago when he fixed the compilation last time, and
again it hasn't been buildable in years.
2010-12-15 13:13:28 +00:00
pooka 3b00d9689f Use RUMPPRG. I think it's safe to say there's not going to be a
new upstream version of traceroute to import.

AS# lookup is still done using host networking.  Rationale: the
relevance to where that data comes from with respect to network
tracing is zero (be it socket, local file, db, whatever).
2010-12-15 00:09:41 +00:00
christos e64c554fe8 fix uninitialized variable by elimination. 2010-12-14 21:32:43 +00:00
pooka 57ec646236 Use a consistent approach for rump kernel calls made by libs.
Should investigate a dynamic approach in the future.
2010-12-14 08:04:14 +00:00
christos 89d498aa24 moved to external 2010-12-14 03:07:07 +00:00
joerg 674a655551 Prefix ctype bitmask macros with _CTYPE 2010-12-14 02:28:57 +00:00
pooka 3d4766ce57 RUMP_ACTION -> RUMPPRG 2010-12-13 18:00:38 +00:00
christos fc494df71d - no casts for malloc and free
- malloc(type) -> malloc(*value)
- malloc+strcpy -> strdup
2010-12-13 16:52:53 +00:00
cegger 10cb97e079 PR bin/44230: Missing close. 2010-12-13 11:51:23 +00:00
christos 976857bd1b fix build. 2010-12-13 01:44:25 +00:00
christos 38a17f8f2b fix possibly uninitialized variable 2010-12-13 01:25:19 +00:00
christos dc449ddee1 use new tcpdump. 2010-12-12 18:50:31 +00:00
christos 14db3bb9d8 - no cast for malloc
- malloc + memset = calloc
- sizeof(type) -> sizeof(*var)
- small indents
2010-12-09 00:10:59 +00:00
wiz 99b0b43bfa Add all options to usage. 2010-12-08 09:43:28 +00:00
wiz 0b2ab2c48b Add all options to SYNOPSIS. New sentence, new line. Some rewording.
Use more macros.
2010-12-08 09:43:22 +00:00
kefren 6d46555eb8 Remove accidentally added file 2010-12-08 07:34:08 +00:00
kefren e7341ada4c Add ldpd, a RFC 3036 compatible LDP speaker. 2010-12-08 07:20:14 +00:00
pooka 39f08af21d mirror change of -lrumpcrypto ==> -lrumpkern_crypto 2010-12-05 20:13:26 +00:00
christos 185f0723f8 unhook tcpdump 2010-12-05 05:59:17 +00:00
njoly aab4946261 Adjust obsolete_libs to handle both the libraries (unchanged) and the
corresponding .debug files if exists.
2010-11-30 14:35:38 +00:00
plunky 5cf7cee741 don't try to imitate the kernel while doing a reset, just
set the init flags and poll until they are cleared
2010-11-28 20:37:24 +00:00
christos 2579358a05 KNF, pass lint. 2010-11-26 18:58:43 +00:00
plunky 52ea709089 update for ioctl improvements
- use SIOCGBTFEAT to recover device features rather than
  querying the device
- print also the max ACL/SCO buffers
2010-11-22 20:02:06 +00:00
pooka b4c2ac23fe regen 2010-11-22 07:56:54 +00:00
pooka c21dcb457e include script rcsid in generated file
(no change to rendered output)
2010-11-22 07:56:31 +00:00
pooka 7cd2722c7b these files are no longer autogenerated, so remove them 2010-11-22 01:09:34 +00:00
pooka a0afe062df regen 2010-11-22 01:08:23 +00:00
pooka 5e0d1e96f8 Generate different manpages for 1) disk 2) net 3) fictional file systems. 2010-11-22 01:07:51 +00:00
christos 30b8bfbace - don't bitch if /usr/X11R6/lib/X11 does not exist, if /usr/X11R6 does not
exist either. We might have never installed X11R6 on this system.
- spell nonexistent
2010-11-21 22:50:37 +00:00
jym d0e5481abd Sort options. 2010-11-21 21:07:46 +00:00
pooka 76f518f570 regen 2010-11-21 19:32:16 +00:00
pooka 41308443e5 * document disk.img%DISKLABEL:p%
* tweaks
2010-11-21 19:29:01 +00:00
tsutsui 41610f52e9 cd9960 -> cd9660 2010-11-19 15:47:32 +00:00
rmind 97b932f123 NPF checkpoint:
- Add proper TCP state tracking as described in Guido van Rooij paper,
  plus handle TCP Window Scaling option.
- Completely rework npf_cache_t, reduce granularity, simplify code.
- Add npf_addr_t as an abstraction, amend session handling code, as well
  as NAT code et al, to use it.  Now design is prepared for IPv6 support.
- Handle IPv4 fragments i.e. perform packet reassembly.
- Add support for IPv4 ID randomization and minimum TTL enforcement.
- Add support for TCP MSS "clamping".
- Random bits for IPv6.  Various fixes and clean-up.
2010-11-11 06:30:39 +00:00
christos d7b55f9d71 PR/44077: Dr. Wolfgang Stukenbrock: redundant xdr_passwd implementation should
be removed, and the one from -lrpcsvc should be used.
2010-11-10 18:56:17 +00:00
njoly 9220c212a8 Add _atf to uid/gid checks. 2010-11-08 09:01:44 +00:00
wiz 8f582fbe68 Sort options in SYNOPSIS. 2010-11-07 11:49:21 +00:00
uebayasi 4cca618331 Handle md(4)'s embedded root disk image and size symbol names other
than the default ones ("md_root_image" / "md_root_size").

(References to xmd(4) are deliberately removed.)
2010-11-06 16:03:23 +00:00
pooka 7d1c54af24 adapt to new rumpclient_init() signature 2010-11-05 13:52:41 +00:00
pooka 1ec3731938 support rump client mode 2010-11-05 13:42:37 +00:00
pooka 080506bc5d Make error message more userfriendly in cases where server does
not support sftp.
2010-10-29 16:13:51 +00:00
christos 2ec6e0f18a Handle > 2GB images. Thanks to Greg Troxel for testing! 2010-10-27 18:51:34 +00:00
christos 203850f0b2 - simple fseek->fseeko conversion. probably needs more work.
- use a constant instead of sprinkling 2048 everywhere.
2010-10-22 00:49:15 +00:00
christos aeccdbb591 improve error handling and logging. 2010-10-20 17:05:54 +00:00
plunky b40385c1f1 move debug output before the loop, which possibly changes the value of fd 2010-10-18 20:43:23 +00:00
uebayasi 5b00191068 Typo in an error message. 2010-10-17 16:13:56 +00:00
plunky 5b17090754 be more explicit 2010-10-17 12:45:28 +00:00
wiz 8a0067feb7 Sort sections, use serial comma. 2010-10-12 21:49:08 +00:00
plunky b6cf5bddb1 some extra information about "page timeout" option 2010-10-11 15:37:55 +00:00
plunky 2cf0f09d1d add a reference in the SEE ALSO section to "The NetBSD Guide" for
detailed examples of device configuration
2010-10-11 15:30:57 +00:00
manu f4f951a0c1 Remove code supporting SOCK_STREAM, as SOCK_DGRAM works fine 2010-10-11 05:37:58 +00:00
manu 160a586559 Interm hack raising buffers for /dev/fuse socket used in the filesystem.
This works around read(2) system callsfailing with ENOBUFS.

This is a hack bedause there is no way to know that 4 * FUSE_BUFSIZE
will be enough to hold queued FUSE frames. It seems good enough at
mine.
2010-10-11 01:12:25 +00:00
christos b2af84a88a bump PROTOMAX 2010-10-07 01:28:50 +00:00
njoly 830a6e0073 Add option k to synopsis. 2010-10-05 10:03:53 +00:00
pgoyette 87b1c2cb4e Apply proper conversion (which is _no_ conversion) when setting limit
values for sensors of type ENVSYS_INTEGER.
2010-10-05 05:03:49 +00:00
pgoyette 58f7870b48 Some Integer-type sensors can have limits, so allow them to be displayed. 2010-10-05 00:14:55 +00:00
manu bcf6f2f32a == file close operations ==
- use PUFFS_KFLAG_WTCACHE to puffs_init so that all writes are
immediatly send to the filesystem, and we do not have anymore write
after inactive. As a consequence, we can close files at inactive
stage, and there is not any concern left with files opened at
create time. We also do not have anymore to open ourselves in readdir and
fsync.

- Fsync on close (inactive stage). That makes sure we will not need to
do these operations once the file is closed (FUSE want an open file).
short sircuit the request that come after the close, bu not fsinc'ing
closed files,

- Use PUFFS_KFLAG_IAONDEMAND to get less inactive calls

== Removed nodes ==
- more ENOENT retunred for operations on removed node (but there
are probably some still missing): getattr, ooen, setattr, fsync

- set PND_REMOVE before sending the UNLINK/RMDIR operations so that we avoid
races during UNLINK completion. Also set PND_REMOVED on node we overwirte
in rename

== Filehandle fixes ==
- queue open operation to avoid getting two fh for one file

- set FH in getattr, if the file is open

- Just requires a read FH for fsyncdir, as we always opendir in read
mode. Ok, this is misleading :-)

== Misc ==
- do not set FUSE_FATTR_ATIME_NOW in setattr, as we provide the time

- short circuit nilpotent operations in setattr

- add a filename diagnostic flag to dump file names
2010-09-23 16:02:34 +00:00
manu 7ba588b3fb - Add debug santity checks
- Do not request peer creds anymore once we have them.
2010-09-20 06:45:38 +00:00
rmind 63012b51f1 NPF checkpoint:
- Add support for bi-directional NAT and redirection / port forwarding.
- Finish filtering on ICMP type/code and add filtering on TCP flags.
- Add support for TCP reset (RST) or ICMP destination unreachable on block.
- Fix a bunch of bugs; misc cleanup.
2010-09-16 04:53:27 +00:00
manu e9a8a6acc0 - Use SOCK_DGRAM instead of SOCK_STREAM, as the filesystem seems to
assume datagram semantics: when using SOCK_STREAM, if perfused sends
frames faster than the filesystem consumes them, it will grab multiple
frames at once and discard anything beyond the first one. For now the
code can work both with SOCK_DGRAM and SOCK_STREAM, but SOCK_STREAM
support will probably have to be removed for the sake of readability.

- Remeber to sync parent directories when moving a node

- In debug output, display the requeue type (readdir, write, etc...)
2010-09-15 01:51:43 +00:00
kim cd552cca7d Fix remaining references for npf.conf(8) to npf.conf(5) 2010-09-14 11:04:57 +00:00
manu 1e672db8d2 - Do not checkfor peer credentials when perfused is autostarted and
therefore runs with filesystem privileges

- shut up warnings and debug messages when perfused is autostarted

- make perfused patch modifiable with CFLAGS for easier pkgsrc integration

- Fix build warnings
2010-09-07 02:11:04 +00:00
wiz 95b8a1f9e8 Fix some typos in messages. Make usage match manpage. 2010-09-06 13:15:29 +00:00
manu 5536686b23 More LP64 fixes 2010-09-06 01:40:24 +00:00
manu ef7e1877ae Build fixes for LP64 2010-09-01 14:57:24 +00:00
dholland 2b2d4bc113 On LP64 platforms, uid_t is not the same size as u_long, so the key
comparison function being given to db was comparing 4 extra bytes of
rubbish.

This may or may not be the *only* source of the corrupted
/var/account/usracct files I've been seeing occasionally on amd64, but
it's clearly *a* source.
2010-08-30 02:49:17 +00:00
joerg c1e0a5bd50 Replace the current usage of Elf64_Half with Elf64_Word and rename
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
2010-08-28 21:30:02 +00:00
kardel 925a7aaa61 unhook ntp 4.2.4 reachover build 2010-08-28 15:45:48 +00:00
wiz cd9eb5b6d8 Various fixes and improvements. 2010-08-27 18:12:51 +00:00
manu 1326029781 - if perfused is not already started (cannot connect to /dev/fuse),
FUSE filesystems will attempt to start it on their own, and will
communicate using a socketpair

- do not advertise NULL file handle as being valid when sending themback to the FUSE filesystem.

- unmount if we cannot talk to the FUSE process anymore

- set calling process gid properly

- debug message cleanup
2010-08-27 09:58:17 +00:00
christos fdda333719 bye old wpa. 2010-08-26 14:58:29 +00:00
manu 516b1c9016 - open the file before doing fsync: glusterfs wants that.
- Automatically call fsync on close for files. If we just close, fsync
will come later and we will have to reopen

- Add a PND_DIRTY flag to keep track of files that really need a sync.
perfuse_node_fsync only calls the FUSE fsync method if there are data
to push.

- Add a PND_OPEN flag to keep track of open files. Checking non NULL
fh is not enough, as some filesystems will always set fh to 0.

- Add a sync diagnostic flag, to watch fsync and dirty flag activity.
Make the fh diagnostic flag more verbose

- Send the fh in setattr (it was hardcoded to 0)

I am now able to build libperfuse in a glusterfs mounted filesystem. Yeah!
2010-08-26 13:29:01 +00:00
cegger 3cc4951138 show crom:
Print calculated crc. When crc does not match then print expected crc.
2010-08-26 07:04:04 +00:00
jruoho d439ff278b Use <paths.h>. Remove trailing white space. 2010-08-26 05:25:57 +00:00
manu a18d4c5a69 perfused(8) creates a /dev/fuse socket and performs PUFFS to FUSE relaying.
This is still a work in progress.
2010-08-25 07:18:01 +00:00
rmind 3b6fdb92e5 Move npf.conf(5-8) into the correct section, hence npf.conf(5). 2010-08-24 23:55:04 +00:00
cegger 188054e855 Backport improvements from FreeBSD.
Introduce two new options:
-f : force root node
-i : set priority budget where supported
developped, tested and reviewed by kiyohara@ and me.
2010-08-24 08:41:24 +00:00
jnemeth 08e3aa9c11 fix build failure -- correct printf sizes 2010-08-23 06:01:04 +00:00
rmind 2e6f2099c6 Import NPF - a packet filter. Some features:
- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
  Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
  supporting generic RISC-like and specific CISC-like instructions for
  common patterns (e.g. IPv4 address matching).  See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@
2010-08-22 18:56:18 +00:00
wiz 3d5790d7f6 Sort sections. 2010-08-18 10:00:49 +00:00
christos d8bfbcfa53 add syslog logging. 2010-08-18 08:06:39 +00:00
wiz 70f1aeef21 Revert unimprovement from previous. 2010-08-16 06:56:48 +00:00
cegger 9442479bbf backout accidentally committed changes 2010-08-15 22:05:14 +00:00
cegger 5a10adf510 spelling fix 2010-08-15 22:01:57 +00:00
cegger f15046fcff Feed improvements from FreeBSD 2010-08-15 21:52:30 +00:00
pgoyette 1009226e90 Fix a typo 2010-08-14 16:32:26 +00:00
cegger b3454b7a0b fwcontrol -> fwctl 2010-08-14 16:23:49 +00:00
joerg 045886139e Include the type of non-complex pins in the label. 2010-08-10 13:52:13 +00:00
pooka 0a80f65755 support CTLTYPE_BOOL 2010-08-06 15:26:16 +00:00
pooka c7528563f1 If compiled with RUMP_ACTION, access rump kernel instead of host
kernel.  This is an easy way to browse & modify the sysctl tree
offered by a rump kernel instance.
2010-08-06 15:04:13 +00:00