Commit Graph

10261 Commits

Author SHA1 Message Date
hannken a8055efc22 Initialize `fss_flags' before setting an individual bit.
Not a real problem as there is only one valid bit yet.

From Edgar Fuss via tech-kern@netbsd.org
2012-07-28 15:09:44 +00:00
rmind 4ad5029440 - npf_fetch_tcpopts: fix off-by-one when validating TCP option length
against the maximum allowed.
- npf_tcp_inwindow: be more liberal with npf_fetch_tcpopts().
- Few minor improvements to npftest.
2012-07-21 17:11:01 +00:00
manu 075ba0e590 - Fix same vnodes associated with multiple cookies
The scheme used to retreive known nodes on lookup was flawed, as it only
used parent and name. This produced a different cookie for the same file
if it was renamed, when looking up ../ or when dealing with multiple files
associated with the same name through link(2).

We therefore abandon the use of node name and introduce hashed lists of
inodes. This causes a huge rewrite of reclaim code, which do not attempt
to keep parents allocated until all their children are reclaimed

- Fix race conditions in reclaim
There are a few situations where we issue multiple FUSE operations for
a PUFFS operation. On reclaim, we therefore have to wait for all FUSE
operation to complete, not just the current exchanges. We do this by
introducing node reference count with node_ref() and node_rele().

- Detect data loss caused by FAF
VOP_PUTPAGES causes FAF writes where the kernel does not check the
operation result. At least issue a warning on error.

- Enjoy FAF shortcut on setattr
No need to wait for the result if the kernel does not want it. There is
however an exception for setattr that touch the size, we need to wait
for completion because we have other operations queued for after the
resize.

- Fix fchmod() on write-open file
fchmod() on a node open with write privilege will send setattr with both mode and size set. This confuses some FUSE filesystem. Therefore we send two FUSE operations, one for mode, and one for size.

- Remove node TTL handling for netbsd-5 for simplicity sake. The code
still builds on netbsd-5 but does not have the node TTL feature anymore.
It works fine with kernel support on netbsd-6.
2012-07-21 05:49:42 +00:00
rmind 083c690112 - npfctl_print_stats: beautification a la French style.
- npfctl_icmpcode: fix the build break.
2012-07-19 22:22:53 +00:00
spz 7cf84a83d6 teach npf ipv6-icmp
reviewed by rmind@
2012-07-19 21:52:29 +00:00
joerg 7219ead3a1 Add missing __dead. 2012-07-19 06:31:26 +00:00
spz b1a40de246 resource leak (Coverity issues 274383 and 274384) 2012-07-15 09:08:29 +00:00
rmind a3b239f6f3 - Rework NPF tables and fix support for IPv6. Implement tree table type
using radix / Patricia tree.  Universal IPv4/IPv6 comparator for ptree(3)
  was contributed by Matt Thomas.
- NPF tables: update regression tests, improve npfctl(8) error messages.
- Fix few bugs when using kernel modules and handle module autounloader.
- Few other fixes and misc cleanups.
- Bump the version.
2012-07-15 00:22:58 +00:00
christos 550109f835 MKCRYPTO_IDEA is no more 2012-07-14 04:03:44 +00:00
uwe 4b084fb4d9 Fix typo in a message. 2012-07-08 23:18:23 +00:00
wiz ac0c6a8e78 From Bug Hunting: Add vndcompress(1) to SEE ALSO, bump date.
While here:
New sentence, new line.
2012-07-08 22:49:55 +00:00
rmind 33b678d7e0 NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.
2012-07-01 23:21:06 +00:00
kefren 690d3837f6 add ldpd rc.d script here too 2012-06-28 16:34:06 +00:00
rmind 4940c18bab Fix and update npf.conf(5), npfctl(8) and its usage message. 2012-06-27 23:05:28 +00:00
jdf 17ec07bc2d * Remove spurious period in name section
* remove spurious argument to Nm macro
Patch supplied by Bug Hunting.
2012-06-23 20:49:14 +00:00
rmind 53e5b8cc71 NPF:
- Rename some functions for consistency and de-inline them.
- Fix few invalid asserts (add regressoin test).
- Use pserialize(9) for ALG interface.
- Minor fixes, sprinkle many comments.
2012-06-22 13:43:17 +00:00
sjg 07f6254fe3 Add -Z to enable sparse files - for ffs at least.
Based on a patch from shesha at juniper.
2012-06-22 06:15:18 +00:00
christos 8565a6a499 remove dup O_NDELAY. 2012-06-20 01:39:34 +00:00
christos 0787d10414 - fix writev1() to pre-decrement count.
- always open ttys with O_NDELAY.
2012-06-19 13:44:35 +00:00
tron dd5f61399d Fix broken IPv6 support. My Mac OS X Lion NFS client now happily
talks to my NetBSD 6.0_BETA2 NFS server over IPv6.
2012-06-18 20:30:32 +00:00
christos dafeb4b2c4 don't call isatty() to the fd before opening it. 2012-06-18 19:17:42 +00:00
christos b416920400 remove error(1) output 2012-06-16 01:34:10 +00:00
christos 55cd49b90e make this compile again. 2012-06-16 01:31:33 +00:00
rmind 7a3e0c216a - Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.
2012-06-15 23:24:08 +00:00
hannken 58d3be794f File system snapshots are no longer experimental.
Forgot to chang this man page in Nov 2011.
2012-06-11 15:25:14 +00:00
christos 92dd06985f WARNS=4 2012-06-06 00:33:45 +00:00
christos a480a96956 Open and write to ttys using non-blocking I/O to prevent DoS when hardware
or software flow control prevents tty writes or when the tty line is too
slow to respond.
2012-06-05 19:33:17 +00:00
manu 1d0360b1c9 Add placeholder so that we can later add allbacks without breaking the ABI 2012-06-05 15:04:18 +00:00
riastradh b8c3b27f99 Kill the IN_RENAME in-core inode flag in ufs and ext2fs.
Now that rename works we need not to wave this sort of voodoo at it.

ok dholland
2012-06-04 20:13:47 +00:00
rmind 79afee64f7 npftest: add a module for TCP state tracking and add few test cases. 2012-06-04 00:28:34 +00:00
joerg 1907ec3a61 Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-06-03 21:42:44 +00:00
jnemeth 5a5317f49b PR/46500 - Henning Petersen -- wrong permissions on create .seq files 2012-06-02 03:32:53 +00:00
jnemeth 220a7d2bb0 add _tss to uid and gid checks 2012-06-01 21:59:06 +00:00
wiz 1c095f6bdd Remove superfluous Pp 2012-05-30 22:00:44 +00:00
rmind fb07f475c0 npftest: add a stream processor, which prints out the TCP state information.
A tool for debugging connection tracking from tcpdump -w captured data.
2012-05-30 21:38:03 +00:00
rmind ac69c0c39c npfctl(8): add show-config command. Also, update syntax. 2012-05-30 21:30:07 +00:00
uebayasi 6b4d01fdae Rename wake(8) to wakeonlan(8). Approved by core@. 2012-05-26 01:58:17 +00:00
christos 99b3039fe6 improve error handling. 2012-05-15 01:22:50 +00:00
wiz 06b206851a Bump date for previous. 2012-05-12 21:42:38 +00:00
dholland faaf15b7e2 Remove traces of -D flag, which no longer does anything. 2012-05-12 19:47:26 +00:00
njoly 8b220255d1 Fix alignment display for temperature, fans and integer units. 2012-05-11 18:41:12 +00:00
joerg 52222de363 KNF 2012-05-10 15:36:09 +00:00
wiz d099c69274 PR 46419 by Abhinav Upadhyay using his updated patch:
Clean up after removing man page aliases.
2012-05-07 11:18:16 +00:00
wiz 66c3a8d39a The new apropos(1) incorrectly displays hyphens in the first line
of the search results for a few man pages (for man(7) based man
pages).

Use patch from Abhinav Upadhyay in PR 46408 to fix this.
2012-05-04 23:50:26 +00:00
joerg 17770eb834 usage is dead. name_len should be read as unsigned byte. 2012-04-29 13:32:21 +00:00
dogcow d5de483ef7 As this code is used by tools, and thus needs to be portable,
eliminate all the mucking around for an undocumented, seemingly
unused field and use 0.
2012-04-27 20:58:54 +00:00
martin ac1de44af3 "errs" might be clobbered by longjmp, so declare it volatile. 2012-04-25 22:35:00 +00:00
christos f9d287c05c forgot the %s for the error 2012-04-25 18:07:45 +00:00
christos 1ce3b4a502 - don't declare victory when there are errors.
- better error messages.
2012-04-25 17:33:49 +00:00
wiz 7ee504a202 Sync with reality, From Abhinav Upadhyay in private mail. 2012-04-22 21:29:27 +00:00