Commit Graph

183713 Commits

Author SHA1 Message Date
wiz
76e34094ac Fix section for sysctl xref (it is 3, not 2). 2009-09-13 09:17:26 +00:00
tsutsui
e7713433d4 Move declaration of ufs_hashlock into <ufs/ufs_extern.h> from each c source. 2009-09-13 05:17:36 +00:00
elad
a363352277 Checkin work in progress to make netstat use sysctl rather than kvm(3).
This commit mostly adds code written by Claudio Jeker for OpenBSD to
support sysctl in the interface printing parts (-i, -I, -w). The port has
been ported to NetBSD with tiny adjustments -- of course all bugs etc.
are mine.

Also add and document a -X flag to force sysctl usage. The documentation
notes this flag may be removed at any time and its presence should not be
relied on.

Some misc. comments/#ifdef changes/code snippet moves as well.

Please note that no functionality should change as the routing and
interface printing code is still not fully supported.

Mailing list reference:

    http://mail-index.netbsd.org/tech-userlevel/2009/09/09/msg002604.html
2009-09-13 02:53:17 +00:00
apb
2cb613da61 In the rc_silent change, mention "boot netbsd -z" because it's a common
case, even though it's boot loader dependent.
2009-09-12 22:22:33 +00:00
tsutsui
c34277381a Make sure to set length in AARP-response packets. PR kern/41124 2009-09-12 20:43:18 +00:00
tsutsui
ad62cf6bd2 Fix an incomplete device_xname change in rev 1.69. PR kern/41861 2009-09-12 19:55:29 +00:00
tsutsui
cf95004b5c Remove an extra parenthesis in #ifdef'ed out part. PR kern/41858 2009-09-12 19:39:12 +00:00
tsutsui
df9cde870d Fix warnings by -Wpointer-sign, which is disabled by default. PR kern/33965 2009-09-12 19:16:35 +00:00
tsutsui
5113172f58 Add MI and ISA gpib(4) stuff. (compile test only) 2009-09-12 18:53:22 +00:00
tsutsui
f3f3dfb33a Make compile with options DEBUG. 2009-09-12 18:52:25 +00:00
tsutsui
d25ce32e44 - fix warnings of printf(9) format and void pointer arithmetic
- use DTYPE_HPIB for now instead of nonexistent DTYPE_GPIB
2009-09-12 18:46:42 +00:00
tsutsui
0762f69189 Fix warnings of printf(9) format. 2009-09-12 18:44:36 +00:00
tsutsui
055ae9c82d Add a missing parentheses. PR kern/41859 2009-09-12 18:43:03 +00:00
tsutsui
d41f17e277 Make compile with options DEBUG. 2009-09-12 18:41:05 +00:00
tsutsui
05afd01963 MALLOC() -> malloc() 2009-09-12 18:38:00 +00:00
plunky
0ae8e53b57 slight reordering, plus only deal with ACL links 2009-09-12 18:31:46 +00:00
tsutsui
46d031a1e7 Fix typo:
-		pcinfo = kmem_zalloc(sizeof_puffs_cacheinfo) + runsize,
+		pcinfo = kmem_zalloc(sizeof(struct puffs_cacheinfo) + runsize,
in #ifdef'ed out code, per paired kmem_free() in the same function.
Closes PR kern/41840.
2009-09-12 18:17:55 +00:00
tsutsui
bc210dec04 +options RTSOCK_DEBUG 2009-09-12 18:09:47 +00:00
tsutsui
c412ca027b Make this compile with options RTSOCK_DEBUG.
Noticed by PR kern/41842, but fixed differently.
2009-09-12 18:09:25 +00:00
tsutsui
8caedfaab4 Make this compile on ports with __HAVE_OLD_DISKLABEL
(though currently no such ports which have mscp).
Noticed by PR kern/41862.
2009-09-12 18:01:50 +00:00
apb
2fc6cb0baa It's print_rc_metadata, not rc_print_metadata. 2009-09-12 17:40:01 +00:00
drochner
1e4e3d1be4 fix some confusion between highest DMA address and the boundary not to
be crossed in a transfer,
back out previous fixes which only added to the confusion
2009-09-12 17:16:41 +00:00
tsutsui
80d52b1bc6 Use proper macro, some KNF, fix typo. 2009-09-12 14:59:59 +00:00
pgoyette
12a1a3a9db Actually install disklabel_rdb.h
(Hello, phx!)
2009-09-12 13:57:10 +00:00
pooka
df6e37fb47 Convert POOL_INITs to proper cons/destructors. 2009-09-12 12:52:21 +00:00
tsutsui
58c74e6160 Whitespace nits. 2009-09-12 11:35:46 +00:00
tsutsui
a811b3a680 Migrate from u_intNN_t to uintNN_t. 2009-09-12 11:27:39 +00:00
apb
06867cdace If there are errors in creating a ${set}.tgz tar file, then don't
just press on regardless.
2009-09-12 11:01:55 +00:00
phx
51108c4538 New header file <sys/disklabel_rdb.h>. 2009-09-12 10:33:44 +00:00
jnemeth
baf62bbf6a mention ./etc/mtree/set.<set name> 2009-09-12 09:24:32 +00:00
jnemeth
25c1684bb8 get rid of some prehistoric obsolete info 2009-09-12 09:21:31 +00:00
phx
3bef245803 Make disklabel.h from amiga and amigappc include the MI sys/disklabel_rdb.h.
amiga/amiga/adosglue.h was deleted and moved into sys_disklabel_rdb.h, as both
are always needed together (disksubr.c and ofppc/stand/ofwboot/rdb.c).
2009-09-12 09:18:42 +00:00
phx
e628320bfd RDB partition definitions, used by several ports: amiga, amigappc, ofppc
(ofwboot).
2009-09-12 08:23:25 +00:00
skrll
4b849729b2 Fix the start symbol. 2009-09-12 07:22:16 +00:00
skrll
08d80ad4aa Switch hppa to binutils 2.19.
There is a lot of rump breakage for hppa. Hopefully it will be fixed soon.
2009-09-12 07:21:09 +00:00
tsutsui
d592174fdd Reduce diffs a bit between ext2fs_reload() and ffs_reload(). 2009-09-12 02:50:38 +00:00
tsutsui
2620184bc7 Add a missed brelse(9) call after bread(9) in ext2fs_reload().
This may close PR kern/28712 (ext2fs hang on mount after fsck).
2009-09-12 02:32:14 +00:00
tsutsui
91f14b108d Pull a fix from ffs_vfsops.c rev 1.248:
> Fix bug introduced in revision 1.174(*) where a NULL fspec with an MNT_UPDATE
> command would always return EINVAL. This broke fsck on root, where fsck'ing
> a dirty root would always return an error causing rc to resort in a reboot.
(*) This is "Apply the NFS exports list rototill patch" change
    in ext2fs_vfsops.c rev 1.91.
2009-09-12 02:25:39 +00:00
tsutsui
f551f24480 Pull a fix for mount function from ffs_vfsops.c rev1.186:
> Change ffs_mount, in MNT_UPDATE case, to check dev_t's for equality
> instead of just vnode pointers.  Fixes erroneous "does not match mounted
> device" errors from mount(8) in the presence of MFS /dev, init.root, &c.
2009-09-12 01:43:52 +00:00
dyoung
230fd8c662 This should fix 'carpdev <ifname>' or, at least, not break it more
badly than before.
2009-09-11 23:22:28 +00:00
mrg
f5adb56565 fix build for HAVE_BINUTILS=219. 2009-09-11 22:36:53 +00:00
mrg
572b798264 "regenerate" this based on the non-compat version updating. 2009-09-11 22:36:39 +00:00
mrg
90e6d8c1fe replace a LDADD/DPADD with LIBDPLIBS 2009-09-11 22:36:12 +00:00
mrg
3832fa3fd6 add ./etc/mtree/set.modules so that modules.tgz is created with
actual files in it, rather than a 20 byte .gz file (ie, empty file.)


HI JNEMETH!
2009-09-11 22:32:50 +00:00
dyoung
31f5c6b4b5 Bump version for the change to struct domain. 2009-09-11 22:07:43 +00:00
dyoung
c5d5f7697a Make ifconfig(8) set and display preference numbers for IPv6
addresses.  Make the kernel support SIOC[SG]IFADDRPREF for IPv6
interface addresses.

In in6ifa_ifpforlinklocal(), consult preference numbers before
making an otherwise arbitrary choice of in6_ifaddr.  Otherwise,
preference numbers are *not* consulted by the kernel, but that will
be rather easy for somebody with a little bit of free time to fix.

Please note that setting the preference number for a link-local
IPv6 address does not work right, yet, but that ought to be fixed
soon.

In support of the changes above,

1 Add a method to struct domain for "externalizing" a sockaddr, and
  provide an implementation for IPv6.  Expect more work in this area: it
  may be more proper to say that the IPv6 implementation "internalizes"
  a sockaddr.  Add sockaddr_externalize().

2 Add a subroutine, sofamily(), that returns a struct socket's address
  family or AF_UNSPEC.

3 Make a lot of IPv4-specific code generic, and move it from
  sys/netinet/ to sys/net/ for re-use by IPv6 parts of the kernel and
  ifconfig(8).
2009-09-11 22:06:29 +00:00
cegger
e72611bc37 backout rev. 1.59. Will be re-done differently. 2009-09-11 21:25:07 +00:00
dyoung
21904877ab Nothing uses sockaddr_in6_cmp() right now, and the generic
sockaddr_cmp() is probably as fast or faster than calling
sockaddr_in6_cmp() through a function pointer, so let's stop
compiling it.
2009-09-11 20:10:06 +00:00
wiz
0b645b22fc Bump date for previous. Whitespace nit. Use Nm instead of Xr to itself. 2009-09-11 19:48:52 +00:00
wiz
31bddcb483 Bump date for previous. 2009-09-11 19:47:27 +00:00