]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoCorrect argument order of kiconv_add_xlat16_cspairs().
R. Imura [Fri, 29 Jul 2005 14:56:16 +0000 (14:56 +0000)]
Correct argument order of kiconv_add_xlat16_cspairs().

Security:

19 years agoFix typo and check correct (rsp) pointer against the NULL value.
Maksim Yevmenkin [Fri, 29 Jul 2005 14:44:17 +0000 (14:44 +0000)]
Fix typo and check correct (rsp) pointer against the NULL value.

Submitted by: Oliver < urnenfel at tiscali dot es >
MFC after: 1 day

19 years agoChange API of mb_copy_t in libmchain so that netsmb can handle
R. Imura [Fri, 29 Jul 2005 13:22:37 +0000 (13:22 +0000)]
Change API of mb_copy_t in libmchain so that netsmb can handle
multibyte character share name correctly.

Reviewed by: bp

19 years agoFix a comparison that broke ``set console=vidconsole'' and even the
Brian Somers [Fri, 29 Jul 2005 12:47:42 +0000 (12:47 +0000)]
Fix a comparison that broke ``set console=vidconsole'' and even the
loader.conf line ``console="vidconsole"''.

Sponsored by: ActiveState/Sophos
MFC after: 1 week

19 years agoMention that console= can set multiple consoles.
Brian Somers [Fri, 29 Jul 2005 12:41:37 +0000 (12:41 +0000)]
Mention that console= can set multiple consoles.
Relate boot_ options to their kernel command line flags and make it clear
how kenv(1) is used.

Sponsored by: ActiveState/Sophos
MFC after: 1 week

19 years agoUpdate SEE ALSO section.
Giorgos Keramidas [Fri, 29 Jul 2005 11:31:16 +0000 (11:31 +0000)]
Update SEE ALSO section.

PR: docs/84273
Submitted by: Gary W. Swearingen

19 years agoIn realpath(), make sure each path component consists only of safe
Dag-Erling Smørgrav [Fri, 29 Jul 2005 11:28:03 +0000 (11:28 +0000)]
In realpath(), make sure each path component consists only of safe
characters, and untaint it.

19 years agoDifferentiate between empty and short reports, and raise the bar for what
Dag-Erling Smørgrav [Fri, 29 Jul 2005 11:25:10 +0000 (11:25 +0000)]
Differentiate between empty and short reports, and raise the bar for what
we consider a short report to 128 characters.  Canonicalize %%HOME%%.

19 years agoUpdate manual page after ggate rewrite.
Pawel Jakub Dawidek [Fri, 29 Jul 2005 11:22:13 +0000 (11:22 +0000)]
Update manual page after ggate rewrite.

MFC after: 1 day

19 years agoDon't email reports that are empty or very short, as can happen if tbmaster
Dag-Erling Smørgrav [Fri, 29 Jul 2005 11:18:35 +0000 (11:18 +0000)]
Don't email reports that are empty or very short, as can happen if tbmaster
fails to exec the tinderbox script.

19 years agohw.ata.wc can cause data loss on crashes too. This brings the
Giorgos Keramidas [Fri, 29 Jul 2005 10:47:46 +0000 (10:47 +0000)]
hw.ata.wc can cause data loss on crashes too.  This brings the
description of the hw.ata.wc in sync with tuning(7)

PR: docs/84264
Submitted by: Gary W. Swearingen

19 years agoI actually do need libmd.
Pawel Jakub Dawidek [Fri, 29 Jul 2005 10:06:57 +0000 (10:06 +0000)]
I actually do need libmd.

19 years agoCreate /etc/opiekeys with 0600, not 0644
Andrey A. Chernov [Fri, 29 Jul 2005 09:59:24 +0000 (09:59 +0000)]
Create /etc/opiekeys with 0600, not 0644

PR:     84221

19 years agoDocument the ECONNRESET errno value.
Diomidis Spinellis [Fri, 29 Jul 2005 07:42:10 +0000 (07:42 +0000)]
Document the ECONNRESET errno value.

19 years agoterminate when all interfaces have been removed; since we do not
Sam Leffler [Fri, 29 Jul 2005 05:58:35 +0000 (05:58 +0000)]
terminate when all interfaces have been removed; since we do not
do interface discovery there's no point in sticking around

MFC after: 3 days

19 years agoCorrect problems with handling interfaces that go away (e.g. when
Sam Leffler [Fri, 29 Jul 2005 05:57:28 +0000 (05:57 +0000)]
Correct problems with handling interfaces that go away (e.g. when
a card is ejected).  wpa_supplicant requires that internal events
for interfaces coming+going include a name but after an interface
is removed you cannot use if_indextoname to map the interface index
in the RTM_IFINFO (or RTM_IFANNOUNCE) msg to an interface name.
Instead record the interface index in the driver-private data area
and use that to filter msgs from the routing socket.  This insures
that when we have a message to process we know the interface name.
The end result is that we can now dispatch an "interface removed"
event that is understood when notified than an interface went away
(where previously the event dispatched was ignored because the
interface name was unrecognized).

This change also insures we only process events for our interface.

The only downside is that we can no longer wait for an interface
to arrive as we need to map the interface name to an index at
startup.  This is not important as wpa_supplicant should be launched
by devd and not include a separate mechanism for doing interface
discovery.

MFC after: 3 days

19 years agoclear eloop registration when deinit'd the l2 packet support
Sam Leffler [Fri, 29 Jul 2005 05:48:00 +0000 (05:48 +0000)]
clear eloop registration when deinit'd the l2 packet support

MFC after: 3 days

19 years agoPrint the actual disk device we failed to complete i/o on.
Paul Saab [Fri, 29 Jul 2005 01:53:45 +0000 (01:53 +0000)]
Print the actual disk device we failed to complete i/o on.

19 years agoDon't allow ioctl commands to be interrupted by the user.
Paul Saab [Fri, 29 Jul 2005 01:47:36 +0000 (01:47 +0000)]
Don't allow ioctl commands to be interrupted by the user.

19 years agoMake ichsmb unloadable.
Brian Somers [Fri, 29 Jul 2005 00:20:50 +0000 (00:20 +0000)]
Make ichsmb unloadable.

It seems that the unload problems were due to a dodgy sc->smb usage and a
missing mtx_destroy().

Sponsored by: ActiveState/Sophos
MFC after: 3 weeks

19 years agoFix core dump when "smbutil lc".
R. Imura [Thu, 28 Jul 2005 22:35:38 +0000 (22:35 +0000)]
Fix core dump when "smbutil lc".

OK'ed by: bp

19 years agoDon't compile ral and ural in the PAE kernel, because
R. Imura [Thu, 28 Jul 2005 22:25:07 +0000 (22:25 +0000)]
Don't compile ral and ural in the PAE kernel, because
they have dependency on wlan and usb.

Reported by: make universe

19 years agoCorrect column alignment.
Nate Lawson [Thu, 28 Jul 2005 19:41:52 +0000 (19:41 +0000)]
Correct column alignment.

19 years agoAdd descriptions for the sysctls.
Nate Lawson [Thu, 28 Jul 2005 19:34:51 +0000 (19:34 +0000)]
Add descriptions for the sysctls.

MFC after: 1 day

19 years agoFix nits in reporting battery information and add battery status reporting.
Nate Lawson [Thu, 28 Jul 2005 19:31:28 +0000 (19:31 +0000)]
Fix nits in reporting battery information and add battery status reporting.
Rate units are mA/mW, not mAh/mWh.  Get full battery status and time
remaining from ACPIIO_BATT_GET_BATTINFO instead of BST.

PR: bin/83672
MFC after: 2 days

19 years agoSpell "protections" correctly.
Giorgos Keramidas [Thu, 28 Jul 2005 18:28:11 +0000 (18:28 +0000)]
Spell "protections" correctly.

19 years agoZero the _BST, _BIF, and battinfo allocations. This is needed since we
Nate Lawson [Thu, 28 Jul 2005 18:19:50 +0000 (18:19 +0000)]
Zero the _BST, _BIF, and battinfo allocations.  This is needed since we
later sum capacities for all batteries, even those that weren't actually
present.  We only need to do this for _BST but do it for all of them.

Reported by: Eric Anderson
MFC after: 1 day

19 years agosimplied the fix to FreeBSD-SA-04:06.ipv6. The previous one worried
Hajimu UMEMOTO [Thu, 28 Jul 2005 18:07:07 +0000 (18:07 +0000)]
simplied the fix to FreeBSD-SA-04:06.ipv6.  The previous one worried
too much even though we actually validate the parameters.  This code
also is more compatible with other *BSDs, which do copyin within
setsockopt().

Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
Reviewed by: security-officer (nectar)
Obtained from: KAME

19 years agoAddress minor locking issues. Use taskqueue_swi instead of taskqueue_swi_giant.
Maksim Yevmenkin [Thu, 28 Jul 2005 17:43:20 +0000 (17:43 +0000)]
Address minor locking issues. Use taskqueue_swi instead of taskqueue_swi_giant.

MFC after: 1 month

19 years agoSpell "currently" correctly.
Giorgos Keramidas [Thu, 28 Jul 2005 15:59:52 +0000 (15:59 +0000)]
Spell "currently" correctly.

19 years agoFurther fix receive_packet() by using BPF_WORDALIGN to insure the offset
Brooks Davis [Thu, 28 Jul 2005 15:30:19 +0000 (15:30 +0000)]
Further fix receive_packet() by using BPF_WORDALIGN to insure the offset
is properly aligned when we move to the next packet.

Obtained from: ISC dhclient via krw at OpenBSD

19 years agoIf a "hole" opens up in the ruleset (i.e.: remove 5), do not return
Tom Rhodes [Thu, 28 Jul 2005 13:55:12 +0000 (13:55 +0000)]
If a "hole" opens up in the ruleset (i.e.: remove 5), do not return
unknown error.  Instead, just return error.

Submitted by: avatar
Tested by: trhodes

19 years agoSpell "committing" correctly.
Giorgos Keramidas [Thu, 28 Jul 2005 13:53:45 +0000 (13:53 +0000)]
Spell "committing" correctly.

19 years agoSpell "referred" correctly.
Giorgos Keramidas [Thu, 28 Jul 2005 13:03:19 +0000 (13:03 +0000)]
Spell "referred" correctly.

19 years agoSpell "background" correctly.
Giorgos Keramidas [Thu, 28 Jul 2005 12:40:23 +0000 (12:40 +0000)]
Spell "background" correctly.

19 years agoSpell "partition" correctly.
Giorgos Keramidas [Thu, 28 Jul 2005 10:48:07 +0000 (10:48 +0000)]
Spell "partition" correctly.

PR: docs/84198
Submitted by: Gary W. Swearingen
MFC after: 3 days

19 years agoFix for PR 83885.
George V. Neville-Neil [Thu, 28 Jul 2005 10:10:01 +0000 (10:10 +0000)]
Fix for PR 83885.

Make sure that there actually is a next packet before setting
nextrecord to that field.

PR: 83885
Submitted by: hirose@comm.yamaha.co.jp
Obtained from: Patch suggested in the PR
MFC after: 1 week

19 years agoShorten src / obj paths while capturing logs, making them both smaller and
Dag-Erling Smørgrav [Thu, 28 Jul 2005 10:09:22 +0000 (10:09 +0000)]
Shorten src / obj paths while capturing logs, making them both smaller and
easier to read.

19 years agoMinor syntax tweaks:
Robert Watson [Thu, 28 Jul 2005 09:45:08 +0000 (09:45 +0000)]
Minor syntax tweaks:

- Remove some extra blank lines.
- Remove comments that don't contribute to understanding.
- Remove additional blank lines in output added to maximize compatibility
  with older vmstat output, but that is actually somewhat gratuitous.

Submitted by: bde
MFC with: other vmstat libmemstat(3) changes

19 years agoAdd a couple of missing nic interfaces that have been added: iwi, ipw,
Warner Losh [Thu, 28 Jul 2005 03:51:54 +0000 (03:51 +0000)]
Add a couple of missing nic interfaces that have been added: iwi, ipw,
ral and ural.  Add a comment about this regexp being lame, which
should shock no-one.  Add a comment about why rescans are disabled on scsi
cards.

19 years agoCast to uintptr_t to avoid compiler warning, it was broken by
David Xu [Thu, 28 Jul 2005 03:34:54 +0000 (03:34 +0000)]
Cast to uintptr_t to avoid compiler warning, it was broken by
the recent atomic_ptr() change.

19 years agoForgot to add this change when commiting geli.
Pawel Jakub Dawidek [Thu, 28 Jul 2005 00:53:47 +0000 (00:53 +0000)]
Forgot to add this change when commiting geli.

Reported by: cperciva

19 years agoDon't reject packets with server names containing characters that are
Brooks Davis [Thu, 28 Jul 2005 00:24:39 +0000 (00:24 +0000)]
Don't reject packets with server names containing characters that are
not allowed in domain names.  RFC 2132 does not list valid or invalid
characters and the ISC client accepts anything here.

Reported by: ps

19 years agoI think I found the problem, reconnect geli to the build.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 23:56:32 +0000 (23:56 +0000)]
I think I found the problem, reconnect geli to the build.

19 years ago- Reduce WARNS level to 3, so it will be compilabe on alpha.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 23:56:01 +0000 (23:56 +0000)]
- Reduce WARNS level to 3, so it will be compilabe on alpha.
- Don't link libmd, it is not needed.
- Connect manual page to the build.

MFC after: 1 week

19 years agoDisconnect geli from the build for now.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 23:30:50 +0000 (23:30 +0000)]
Disconnect geli from the build for now.
I need to find out first what is the cause of sha2.c compilation problem
on alpha.

19 years agoFix the way how "InUse" column in 'vmstat -m' output works:
Pawel Jakub Dawidek [Wed, 27 Jul 2005 23:17:31 +0000 (23:17 +0000)]
Fix the way how "InUse" column in 'vmstat -m' output works:
- increase number of allocations count only on successfull malloc(9),
  so it doesn't confuse people;
- because we need to check if 'size > 0', hide 'mtsp->mts_memalloced += size;'
  under the check as well, as for size=0 it is of course a no-op;
- avoid critical_enter()/critical_exit() in case of failure in
  malloc_type_allocated() as there will be nothing to do.

OK'ed by: rwatson
MFC after: 2 days

19 years agoMFp4: Export more informations about encrypted providers.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 22:31:57 +0000 (22:31 +0000)]
MFp4: Export more informations about encrypted providers.

MFC after: 1 week

19 years agoAdd regression tests (121 in total) for GEOM_ELI class.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 22:27:30 +0000 (22:27 +0000)]
Add regression tests (121 in total) for GEOM_ELI class.
To use them, run:

# prove /usr/src/tools/regression/geom_eli

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
MFC after: 1 week

19 years agoReduce default debug level to 0.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 21:48:47 +0000 (21:48 +0000)]
Reduce default debug level to 0.

MFC after: 1 week

19 years agoConnect GEOM_ELI class to the build.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 21:47:55 +0000 (21:47 +0000)]
Connect GEOM_ELI class to the build.

MFC after: 1 week

19 years agoAdd GEOM_ELI class which provides GEOM providers encryption.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 21:43:37 +0000 (21:43 +0000)]
Add GEOM_ELI class which provides GEOM providers encryption.
For features list and usage see manual page: geli(8).

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
MFC after: 1 week

19 years agomsdosfs_conv.c references cmos_wall_clock and adjkerntz. Since these
Warner Losh [Wed, 27 Jul 2005 21:19:28 +0000 (21:19 +0000)]
msdosfs_conv.c references cmos_wall_clock and adjkerntz.  Since these
are 0 for arm, define them as such to make msdosfs_conv.c compile
again on arm.

19 years agoReorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
Maksim Yevmenkin [Wed, 27 Jul 2005 21:03:35 +0000 (21:03 +0000)]
Reorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
are called outside of AN_LOCK()/AN_UNLOCK. This fixes the following
WITNESS warning (produced when an(4) PCMCIA card is detached).

taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex an0 (network driver) r = 0 (0xc59af168) locked @ /usr/src/sys/dev/an/if_an.c:2836

MFC after: 3 days
Silence from: current@

19 years agoAdd extra constraints to tell the compiler that the memory be modified
John Baldwin [Wed, 27 Jul 2005 20:01:45 +0000 (20:01 +0000)]
Add extra constraints to tell the compiler that the memory be modified
in the arm __swp() and sparc64 casa() and casax() functions is actually
being used as an input and output and not just the value of the register
that points to the memory location.  This was the underlying source of
the mbuf refcount problems on sparc64 a while back.  For arm this should be
a nop because __swp() has a constraint to clobber all memory which can
probably be removed now.

Reviewed by: alc, cognet
MFC after: 1 week

19 years agoUse a + constraint modifier for a register arg in __bswap16_var().
John Baldwin [Wed, 27 Jul 2005 19:59:21 +0000 (19:59 +0000)]
Use a + constraint modifier for a register arg in __bswap16_var().

Reviewed by: cognet

19 years agoFix a bug in the handling of cases where we got a short (or zero)
Brooks Davis [Wed, 27 Jul 2005 19:25:46 +0000 (19:25 +0000)]
Fix a bug in the handling of cases where we got a short (or zero)
capture.  Zero length captures caused an infinte loop and short captures
probably caused memory corruption and a crash.

Reported by: many
MFC After: 3 days

19 years agoSimplify SMBIOS loader variables and drop `hint.smbios.0.enabled'.
Jung-uk Kim [Wed, 27 Jul 2005 19:11:10 +0000 (19:11 +0000)]
Simplify SMBIOS loader variables and drop `hint.smbios.0.enabled'.

They are not real hints.

Reported by: des
Pointed out by: peter
Approved by: anholt (mentor)

19 years agoCorrect the order of some if tests so that we don't complain about being
John Baldwin [Wed, 27 Jul 2005 15:21:32 +0000 (15:21 +0000)]
Correct the order of some if tests so that we don't complain about being
unable to route an IRQ when we do route an IRQ ok but bootverbose is off.

Reported by: Ben Kaduk minimarmot at gmail dot com

19 years agoFIx for a bug in the change that made nfs_timer() MPSAFE. We need to
Paul Saab [Wed, 27 Jul 2005 15:06:26 +0000 (15:06 +0000)]
FIx for a bug in the change that made nfs_timer() MPSAFE. We need to
grab Giant before calling pru_send() (if running with mpsafenet = 0).

Found by: Jeremie Le Hen.
Fixed by: Maxime Henrion

19 years agoIn nfs_nget() if two threads race on the same filehandle, the loser should
Paul Saab [Wed, 27 Jul 2005 15:05:31 +0000 (15:05 +0000)]
In nfs_nget() if two threads race on the same filehandle, the loser should
cause the nfsnode to get freed. This fixes a potential vnode (and nfsnode)
leak in that path.

Submitted by: Mohan Srinivasan
Reviewed by: phk

19 years agodon't accept invalid form of an address like 1:2:3:4:5:6:7::8.
Hajimu UMEMOTO [Wed, 27 Jul 2005 14:33:36 +0000 (14:33 +0000)]
don't accept invalid form of an address like 1:2:3:4:5:6:7::8.

PR: bin/84106
Obtained from: BIND9
MFC after: 2 days

19 years ago- Use callout_*() rather than timeout() to periodically poll the media.
John Baldwin [Wed, 27 Jul 2005 13:51:01 +0000 (13:51 +0000)]
- Use callout_*() rather than timeout() to periodically poll the media.
- Add locking to protect the softc and mark this driver as MP safe.  There
  are still some edge cases with multiport cards that need more locking
  work.

MFC after: 1 week
Tested on: alpha

19 years agoFix a typo in the name of the dmamap for a bus_dmamap_sync().
John Baldwin [Wed, 27 Jul 2005 13:48:45 +0000 (13:48 +0000)]
Fix a typo in the name of the dmamap for a bus_dmamap_sync().

MFC after: 3 days

19 years agoUse root_mount KPI for RAID3 to delay root file system mount.
Pawel Jakub Dawidek [Wed, 27 Jul 2005 09:03:51 +0000 (09:03 +0000)]
Use root_mount KPI for RAID3 to delay root file system mount.
Actually, one cannot setup root file system on RAID3 device, but when
other file system exist in /etc/fstab which are placed on RAID3 device,
boot process will be interrupted when these devices are missing.

MFC after: 3 days
X-MFC-note: MFC only to RELENG_6, as RELENG_5 doesn't have root_mount KPI.

19 years agoCorrect a buffer overflow which can occur when decompressing a
Colin Percival [Wed, 27 Jul 2005 08:41:17 +0000 (08:41 +0000)]
Correct a buffer overflow which can occur when decompressing a
carefully crafted deflated data stream. [1]

Correct problems in the AES-XCBC-MAC IPsec authentication algorithm. [2]

Submitted by: suz [2]
Security: FreeBSD-SA-05:18.zlib [1], FreeBSD-SA-05:19.ipsec [2]

19 years agoAdd -o/-O options to pkg_version:
Kirill Ponomarev [Wed, 27 Jul 2005 07:55:12 +0000 (07:55 +0000)]
Add -o/-O options to pkg_version:

   -o  Show the origin recorded on package generation instead of the
       package name.

   -O  Only list packages whose registered origin is origin.

Based on PR: bin/78640
Submitted by: Marcus Grando <marcus at corp dot grupos.com.br>, flz

19 years agoThe 575A doesn't have funcregs in memio. So don't claim that it does.
Warner Losh [Wed, 27 Jul 2005 06:38:55 +0000 (06:38 +0000)]
The 575A doesn't have funcregs in memio.  So don't claim that it does.
This gets my 575A card probing.

Card provided by: James Flemer
MFC After: 3 days

19 years agowhen bridging internally bypass the bss node as traffic to it
Sam Leffler [Wed, 27 Jul 2005 04:41:25 +0000 (04:41 +0000)]
when bridging internally bypass the bss node as traffic to it
must follow the normal input path

Submitted by: Michal Mertl
MFC after: 5 days

19 years agobandaid ni_fails handling so ap's with association failures are
Sam Leffler [Wed, 27 Jul 2005 02:53:09 +0000 (02:53 +0000)]
bandaid ni_fails handling so ap's with association failures are
reconsidered after a bit; a proper fix involves more changes to
the scanning infrastructure

Reviewed by: avatar, David Young
MFC after: 5 days

19 years agoDon't cross-reference VFS_START.9
Scott Long [Wed, 27 Jul 2005 02:08:59 +0000 (02:08 +0000)]
Don't cross-reference VFS_START.9

19 years agoNow that VFS_START.9 has been removed, don't try to reference it from the
Scott Long [Wed, 27 Jul 2005 02:08:21 +0000 (02:08 +0000)]
Now that VFS_START.9 has been removed, don't try to reference it from the
Makefile.

19 years agoRemove the VFS_START(9) manual page because it's no longer relevant. The
Hiten Pandya [Tue, 26 Jul 2005 23:57:37 +0000 (23:57 +0000)]
Remove the VFS_START(9) manual page because it's no longer relevant. The
entry point was removed as its only consumer was MFS.

Approved by: re (hrs)

19 years agoAdd a description for bpfstat
Christian S.J. Peron [Tue, 26 Jul 2005 21:44:40 +0000 (21:44 +0000)]
Add a description for bpfstat

19 years agoIntroduce a bpfstat utility. This program can be used to retrieve
Christian S.J. Peron [Tue, 26 Jul 2005 21:38:54 +0000 (21:38 +0000)]
Introduce a bpfstat utility. This program can be used to retrieve
stats provided by bpf(4). This program will live in tools/ for now
until we figure out where it will live permanently. Based on some
discussions on developers@, it is likely that we will be adding
this functionality to netstat(1) at some point.

19 years agoAdd an entry for a file that was removed in BIND 9.3.1
Doug Barton [Tue, 26 Jul 2005 19:21:10 +0000 (19:21 +0000)]
Add an entry for a file that was removed in BIND 9.3.1

19 years agoAdd the first snapshot at rewriting the nanobsd build to be a shellscript.
Poul-Henning Kamp [Tue, 26 Jul 2005 18:52:50 +0000 (18:52 +0000)]
Add the first snapshot at rewriting the nanobsd build to be a shellscript.

The overall idea is to get a single build script which will not need
editing, but instead overrides and changes happen by config files passed
as arguments.

19 years agos/if_defaulroute/if_defaultroute/
Brooks Davis [Tue, 26 Jul 2005 18:27:37 +0000 (18:27 +0000)]
s/if_defaulroute/if_defaultroute/

We may now handle route updates better.

19 years agoDo not reference gifconfig, it is gone.
Tom Rhodes [Tue, 26 Jul 2005 18:14:22 +0000 (18:14 +0000)]
Do not reference gifconfig, it is gone.

Sponsored by: Chaffee::Interactive

19 years agoRather than hold a mutex over calls to SYSCTL_OUT allocate a
Christian S.J. Peron [Tue, 26 Jul 2005 17:21:56 +0000 (17:21 +0000)]
Rather than hold a mutex over calls to SYSCTL_OUT allocate a
temporary buffer then pass the array to user-space once we have
dropped the lock.

While we are here, drop an assertion which could result in a
kernel panic under certain race conditions.

Pointed out by: rwatson

19 years agonuke duplicate inclusion of scope6_var.h.
Hajimu UMEMOTO [Tue, 26 Jul 2005 11:46:15 +0000 (11:46 +0000)]
nuke duplicate inclusion of scope6_var.h.

19 years agoo add fragthreshold support now that the ioctl exists
Sam Leffler [Tue, 26 Jul 2005 06:00:33 +0000 (06:00 +0000)]
o add fragthreshold support now that the ioctl exists
o accept rtsthreshold - (or any) as a shorthand for rtsthreshold 2346

MFC after: 3 days

19 years agoSilence the de-bouncing of dhclient start up. The previous output
Brooks Davis [Tue, 26 Jul 2005 00:37:19 +0000 (00:37 +0000)]
Silence the de-bouncing of dhclient start up.  The previous output
caused significant mental anguish for some portions of the user
population. :)

19 years agoinclude scope6_var.h for in6_clearscope().
Hajimu UMEMOTO [Tue, 26 Jul 2005 00:19:58 +0000 (00:19 +0000)]
include scope6_var.h for in6_clearscope().

19 years agoTeach vmstat -m and vmstat -z to use libmemstat(3). Certain
Robert Watson [Mon, 25 Jul 2005 22:35:10 +0000 (22:35 +0000)]
Teach vmstat -m and vmstat -z to use libmemstat(3).  Certain
statistics from -z are now a bit different due to changes in the
way statistics are now measured.  Reproduce with some amount of
accuracy the slightly obscure layouts adopted by the two kernel
sysctls.  In the future, we might want to normalize them.

GC dosysctl(), which is now no longer used.

MFC after: 1 week

19 years agoRemove an erroneous m_freem() call. If m_defrag() returns a non-NULL
Maxime Henrion [Mon, 25 Jul 2005 22:21:11 +0000 (22:21 +0000)]
Remove an erroneous m_freem() call.  If m_defrag() returns a non-NULL
pointer, it has already freed the original mbuf chain, so we shouldn't
do it again.

This is an MFC candidate.

19 years agoChange host-name from type "X" to type "t". This allows the client to
Brooks Davis [Mon, 25 Jul 2005 22:19:09 +0000 (22:19 +0000)]
Change host-name from type "X" to type "t".  This allows the client to
accept NUL-terminated strings as required by RFC 2132.

This solution is not perfect as it removes the ability to send
NUL-terminated host-name options which may be required by some broken
servers.  Given the current lack of an existance proof of such servers
and the fact that servers that send NUL-terminated domain names do
exist, this seems like an acceptable compromise.  A discussion of these
issues can be found at:

http://marc.theaimsgroup.com/?l=dhcp-client&m=96837107208382&w=2

PR: bin/83468
Reported by: Sean Winn <sean at gothic dot net dot au>
MFC-after: 3 days

19 years agoBy design I left a tiny race in updating the I/O statistics based on
Poul-Henning Kamp [Mon, 25 Jul 2005 21:12:54 +0000 (21:12 +0000)]
By design I left a tiny race in updating the I/O statistics based on
the assumption that performance was more important that beancounter
quality statistics.

As it transpires the microoptimization is not measurable in the
real world and the inconsistent statistics confuse users, so revert
the decision.

MT6 candidate: possibly
MT5 candidate: possibly

19 years agoMove initialization above point of first possible reference to
Matthew N. Dodd [Mon, 25 Jul 2005 17:57:15 +0000 (17:57 +0000)]
Move initialization above point of first possible reference to
avoid overwriting ty_status values set from the 'type' field.

Previously TTY_DIALUP and TTY_NETWORK flags did not match
specified type.

19 years agoCorrect minor output bug. When the battery being queried is charging or
Nate Lawson [Mon, 25 Jul 2005 17:44:10 +0000 (17:44 +0000)]
Correct minor output bug.  When the battery being queried is charging or
the overall discharge rate is 0, mark the battery remaining time as
"unknown", not 0.

Reported by: Eric Kjeldergaard
MFC after: 4 days

19 years agooops, make it compilable. i need sleep. X-(
Hajimu UMEMOTO [Mon, 25 Jul 2005 17:28:39 +0000 (17:28 +0000)]
oops, make it compilable.  i need sleep. X-(

19 years agoremove a pointless comment with a more helpful one...
John-Mark Gurney [Mon, 25 Jul 2005 17:18:25 +0000 (17:18 +0000)]
remove a pointless comment with a more helpful one...

Submitted by: Tobias Roth
MFC after: 5 days

19 years agoUpdate (correct autotools usage, copy generated headers, --disable-threads)
Dag-Erling Smørgrav [Mon, 25 Jul 2005 17:14:00 +0000 (17:14 +0000)]
Update (correct autotools usage, copy generated headers, --disable-threads)

19 years agorestore locks which disappeared wrongly by my previous commit.
Hajimu UMEMOTO [Mon, 25 Jul 2005 17:05:37 +0000 (17:05 +0000)]
restore locks which disappeared wrongly by my previous commit.

19 years agopowerd(8) requires root permissions to run so notify the user if they
Nate Lawson [Mon, 25 Jul 2005 16:43:12 +0000 (16:43 +0000)]
powerd(8) requires root permissions to run so notify the user if they
try to start it without this.

Submitted by: Philip S. Schulz
MFC after: 2 days

19 years agoreflect scope change.
Hajimu UMEMOTO [Mon, 25 Jul 2005 16:26:47 +0000 (16:26 +0000)]
reflect scope change.

Obtained from: KAME

19 years agoMove DNS configuration before sendmail configuration, because
Tilman Keskinoz [Mon, 25 Jul 2005 16:04:30 +0000 (16:04 +0000)]
Move DNS configuration before sendmail configuration,  because
newaliases(1) may hang without proper DNS configuration.

Approved by: brueffer

19 years agoDisable thread support in BIND. It appears to reduce performance rather
Dag-Erling Smørgrav [Mon, 25 Jul 2005 14:44:11 +0000 (14:44 +0000)]
Disable thread support in BIND.  It appears to reduce performance rather
than increase it, and seems to be the cause of the memory leaks which some
users have reported.

Requested by: dougb
MFC after: 5 days

19 years agoinclude netinet6/scope6_var.h.
Hajimu UMEMOTO [Mon, 25 Jul 2005 12:36:43 +0000 (12:36 +0000)]
include netinet6/scope6_var.h.

19 years agoscope cleanup. with this change
Hajimu UMEMOTO [Mon, 25 Jul 2005 12:31:43 +0000 (12:31 +0000)]
scope cleanup.  with this change
- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.

Submitted by: JINMEI Tatuya <jinmei__at__isl.rdc.toshiba.co.jp>
Obtained from: KAME