Commit Graph

9673 Commits

Author SHA1 Message Date
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