Compare commits

...
Author SHA1 Message Date
Ken Smith 665ce17da4 Get ready for the 6.3-RELEASE builds.
Approved by:	re (implicit)
2008-01-15 15:46:21 +00:00
Ken Smith 4dfc2a9d07 Add theoretical date of 6.3-RELEASE.
Approved by:	re (implicit)
2008-01-15 15:45:07 +00:00
Andrew Gallatin 4b81b9d4b9 MFC: Update to firmware version 1.4.29 from 1.4.25
Approved by: re (kensmith)
2008-01-15 15:41:30 +00:00
Hiroki Sato e6a99ff64f Document FreeBSD-SA-08:01.pty and FreeBSD-SA-08:02.libc.
Approved by:	re (implicitly)
2008-01-15 02:34:11 +00:00
Colin Percival 8a642c9425 Fix issues which allow snooping on ptys. [08:01]
Fix an off-by-one error in inet_network(3). [08:02]

Security: FreeBSD-SA-08:01.pty
Security: FreeBSD-SA-08:02.libc
Approved by:	re (kensmith)
Thanks to:	re@ for being so patient with us holding up the release
2008-01-14 22:56:18 +00:00
Ken Smith 8745233043 MFRELENG_6 v1.6.2.11
> Add the various packages we've ejected from the CD sets through
> recent years back on disc3.

Approved by:    re (hrs)
2008-01-14 17:42:09 +00:00
Hiroki Sato ba86d89173 Update page footer for release.
Approved by:	re (implicitly)
2008-01-14 09:58:55 +00:00
Hiroki Sato 5012fd4fd1 Bump &release.*; for 6.3R.
Approved by:	re (implicitly)
2008-01-14 09:47:24 +00:00
Doug Barton 3dfc154adc MFC the change from 1.27, removal of zones from the empty zone list that
may theoretically be allocated some day.

Approved by:	re (kensmith)
2008-01-13 20:51:09 +00:00
Gabor Kovesdan 3784aa50c6 MFC r1.5:
- This driver will first appear in FreeBSD 6.3, not 7.0

Approved by:	re (hrs)
2008-01-08 15:37:57 +00:00
John Baldwin 23da803376 MFC: Use devclass_get_count() instead of devclass_get_maxunit().
Approved by:	re (hrs)
2008-01-07 21:27:50 +00:00
Xin LI 39cd379459 - Reflect tzdata2007k update;
- Simplified Chinese translation: catchup with English version.

Approved by:	re (hrs)
2008-01-07 21:00:18 +00:00
Gabor Kovesdan 51f1c14be6 MFC r1.10:
- ipmi(4) appeared in FreeBSD 6.2, not in 6.3

Approved by:	re (hrs)
2008-01-07 14:53:59 +00:00
Peter Wemm a174ff12b1 MFC: rev 1.4: forward compatability with cvs-1.12 repository
Approved by: re (kensmith)
2008-01-07 09:08:53 +00:00
Edwin Groothuis 4fabc4e8db MFC of tzdata2007k.
Approved by:	re (ken smith)
2008-01-06 07:36:08 +00:00
Edwin Groothuis bf2fff9689 Update iso3166 with the data from Newsletter VI-1 2007-09-21:
Added SAINT BARTHELEMY (BL) and SAINT MARTIN (MF).

MFC of rev 1.17

Approved by: re (ken smith)
2008-01-06 07:25:43 +00:00
Gabor Kovesdan 49f7801ee2 MFC
r1.62:
- Document icase variable of make search, which can be used to control
  case-sensitivity
r1.63:
- Document PORT_DBDIR
r1.64:
- Remove incomplete sentence fragment

Approved by:	re (hrs)
2008-01-04 13:33:01 +00:00
Gabor Kovesdan f0727e3c7c MFC r1.7
- This driver has already appeared in 6.2

Approved by:	re (hrs)
2008-01-04 13:15:02 +00:00
Gabor Kovesdan c70d37f758 MFC r1.4
- This driver will first appear in 6.3, not 7.0

Approved by:	re (hrs)
2008-01-04 13:14:32 +00:00
Gabor Kovesdan 8f19e086a1 MFC r1.13
- This driver will first appear in 6.3, not 7.0

Approved by:	re (hrs)
2008-01-04 13:14:06 +00:00
Gabor Kovesdan 9754196968 MFC r1.3
- This driver will first appear in 6.3, not 7.0

Approved by:	re (hrs)
2008-01-04 13:13:44 +00:00
Gabor Kovesdan 945e02ca3d MFC r1.9
- This driver will first appear in 6.3, not 7.0

Approved by:	re (hrs)
2008-01-04 13:12:19 +00:00
Gabor Kovesdan 1291c3363b MFC r1.2
- This driver will first appear in 6.3, not 7.0

Approved by:	re (hrs)
2008-01-04 13:11:59 +00:00
Gabor Kovesdan 91324bfc44 MFC r1.8
- This driver will first appear in 6.3, not 7.0

Approved by:	re (hrs)
2008-01-04 13:09:04 +00:00
Warner Losh a52d0fd7f4 MFC: Happy new year
Approved by: re@
2008-01-01 09:37:09 +00:00
Andrew Thompson f3931b63eb MFC r1.8
Fix a panic where if the mbuf was consumed by the filter for requeueing
  (dummynet), ipsec_filter() would return the empty error code and the ipsec
  code would continue to forward/deference the null mbuf.

Approved by:	re (gnn)
2007-12-29 17:29:11 +00:00
Ken Smith 4b2d1164e8 MFC v1.117:
> Plug a memory leak.  Once any given package (e.g. perl) was installed
> we would leak a saved screen for every other package we tried to install
> that listed perl as one of its dependencies.  When installing things
> like gnome and kde that wound up being a LOT of leaked memory.

While here fix up some whitespace nits that show up as differences
from the other branches.

Approved by:	re (bmah)
2007-12-29 06:22:56 +00:00
Ken Smith 292c474cc5 MFC v1.78 and v1.79:
Remove process limits for datasize and stacksize which are unlimited
during a "normal login" (thanks to /etc/login.conf) but not when
sysinstall is running as part of an installation.  Fixups for error
messages and a comment that became untrue.

Build test help from:	rwatson
Approved by:		re (bmah)
2007-12-29 06:21:59 +00:00
Warner Losh 04a6d14346 MFC: Update to 2008.
Approved by: re@ (kensmith)
2007-12-26 16:49:12 +00:00
Ken Smith d92b0d8d4f MFC v1.116:
> For the INDEX file to be used on disc1 of the 7.0-RELEASE the longest
> "build dependencies" field is 5,108 characters which overflows the
> length of the junk buffer by a teeny bit.  This whole section needs
> much more error checking but for now just completely ignore stuff
> we have no interest in instead of copying it to someplace we don't
> use in the process.

Approved by:    re (bmah)
2007-12-24 06:42:35 +00:00
Doug Barton 6e402d3117 MFC version 1.55, safety belt for the (unlikely) disappearance of
the temproot before a -r run.

Approved by:	re (kensmith)
2007-12-24 05:51:45 +00:00
Marius Strobl 12b20befe5 MFC: 1.8
In openprom_ioctl() ensure appropriate permissions and that data isn't
NULL and doesn't point to a NULL pointer before dereferencing it.

Approved by:	re (kensmith)
2007-12-23 11:31:24 +00:00
Robert Watson 36b3e34efe Merge in_pcb.c:1.165.2.7 from RELENG_6 to RELENG_6_3:
When IPSEC fails to allocate policy state for an inpcb, and MAC is in use,
  free the MAC label on the inpcb before freeing the inpcb.

  Submitted by:   tanyong <tanyong at ercist dot iscas dot ac dot cn>,
                  zhouzhouyi

Approved by:	re (kensmith)
2007-12-22 21:01:53 +00:00
Robert Watson 63891de9b7 Merge mac_posix_sem.c:1.1.2.1 from HEAD to RELENG_6_3:
Fix a MAC label leak for POSIX semaphores, in which per-policy labels
  would be properly disposed of, but the global label structure for the
  semaphore wouldn't be freed.

  Reported by:    tanyong <tanyong at ercist dot iscas dot ac dot cn>,
                  zhouzhouyi

Approved by:	re (kensmith)
2007-12-22 17:04:16 +00:00
Robert Watson 55813e26c7 Merge in6_pcb.c:1.62.2.6 from RELENG_6 to RELENG_6_3:
Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC label
  destroy call; this transpired because the inpcb alloc path for IPv4/IPv6
  is the same code, but IPv6 has a separate free path.  The results was
  that as new IPv6 TCP connections were created, kernel memory would
  gradually leak.

  Reported by:    tanyong <tanyong at ercist dot iscas dot ac dot cn>,
                  zhouzhouyi

Approved by:    re (kensmith)
2007-12-22 16:49:20 +00:00
Ken Smith a2b33fe311 Prepare for RC2 builds.
Approved by:	re (implicit)
2007-12-22 06:52:56 +00:00
Ken Smith a964c7817f MFS of v1.6.2.10:
> Initial pass at shifting packages around for 6.3-REL layout.  There
> is a lot of space left on disc3 that we can put to use by adding back
> in lots of the packages we've been slowly ejecting through the years.
> We'll decide exactly which ones a little bit later.

Approved by:	re (rwatson)
2007-12-22 06:33:58 +00:00
Ken Smith ef22fd9354 MFC v1.887.2.22:
> Add support for disc3.  Depending on architecture the combination of
> kde3 and gnome2 is at least 670Mb which would mean if we stick with
> just disc1/disc2 the only packages we could provide on the iso's
> would be X11, kde3, and gnome2...

Approved by:    re (rwatson)
2007-12-22 06:30:01 +00:00
Ken Smith e1b4478f4a MFC v1.253 of dist.c and v1.71 of dist.h:
> A few more adjustments needed because of changes in xorg.  Just installing
> xorg-server doesn't include any video drivers so install xorg-drivers as
> well.  And if font-alias isn't installed the X server won't start,
> complaining it can't find the font "fixed".

Approved by:    re (rwatson)
2007-12-22 06:26:54 +00:00
Andrew Thompson 64455cad26 MFC r1.25
- Use the macro to check the port status has it will also test if its
   administratively down (!IFF_UP)
 - Use the same parameters to lagg_link_active() to get the backup port as in
   the output path, this didnt actually matter in practice as sc_primary is
   always the first on the port list.

Approved by:	re (kensmith)
2007-12-21 05:35:29 +00:00
Andrew Thompson 9ca01152e8 MFC r1.108
When the bridge has an address and a packet comes in for it then drop it if
 the link has been marked discarding by Spanning Tree.

Approved by:    re (kensmith)
2007-12-21 05:30:47 +00:00
David E. O'Brien f34d9cc44c MF6: gdbserver is back.
Approved by:	re(kensmith)
2007-12-20 07:02:48 +00:00
Rui Paulo 6536499f7d MFC revision 1.679:
Disallow the legacy USB circuit to generate an SMI# via an ICH
  register (MacBooks only).
  This allows MacBooks to boot in SMP mode without any trick and
  solves the timer problems with HZ=1000.

Approved by:	     re (kensmith), njl (mentor)
2007-12-19 21:08:33 +00:00
Rui Paulo edc309ced3 MFC revision 1.662 and 1.663:
Disallow the legacy USB circuit to generate an SMI# via an ICH
  register (MacBooks only).
  This allows MacBooks to boot in SMP mode without any trick and
  solves the timer problems with HZ=1000.

Approved by:	re (kensmith), njl (mentor)
2007-12-19 21:05:43 +00:00
Peter Wemm 6b2521f3b4 MFC: Specify minimum retransmit scale factor in fractions of hz, not ticks.
Approved by:  re (kensmith)
2007-12-18 04:13:52 +00:00
John Baldwin 892b55384b MFC: Only pass paths to directories or config files that exist for ldconfig
for 32-bit binaries.

Approved by:	re (kensmith)
2007-12-18 01:35:26 +00:00
John Baldwin 46e6d5f628 MFC: Update posix_openpt(3) to handle 512 ptys.
Approved by:	re (gnn)
2007-12-18 00:36:21 +00:00
Scott Long 17cef3e101 Add the hptrr driver.
Submitted by: Highpoint
Approved by: re
2007-12-15 06:32:34 +00:00
cvs2svn 6591ff2ad5 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-12-15 00:56:19 +00:00
Doug Barton 62ee8eeee8 Merge from RELENG_6 all updates to date *except* for the combination
of the fortunes-o.real and fortunes2.o files.

Approved by:	re (kensmith)
2007-12-13 06:09:08 +00:00
John Baldwin edc0b087c3 MF6: Add the workaround in busdma for busted PYXIS chipsets along with
the 'machdep.busdma_pyxis_bug' loader tunable.

Approved by:	re (kensmith, blanket on sys/alpha)
2007-12-10 20:16:07 +00:00
Ed Maste 49e4438dd7 MFC to RELENG_6_3
aac_pci.c:1.63-1.65
aac.4 1.37-1.39

  Add PCI IDs for controllers obtained from Adaptec's latest drivers.

Approved by:    re (kensmith)
2007-12-10 19:35:43 +00:00
Ed Maste 13aae9c16d MFC to RELENG_6_3
aac_debug.c:1.23

  Respell 'Conatainer' as 'Container'.

Approved by:    re (kensmith)
2007-12-10 19:30:54 +00:00
Gabor Kovesdan 36413fd02b MFC rev 1.13:
- Add doc/hu_* and doc/mn_* to the refuse examples so that include all
  of the currently used languages

Approved by:	re (kensmith)
2007-12-10 18:47:05 +00:00
Gabor Kovesdan bc726df6ec MFC rev 1.14:
- Add doc/hu_* and doc/mn_* to the sample refuse file so that it includes all
  of the languages

Approved by:	re (kensmith)
2007-12-10 18:46:20 +00:00
Jung-uk Kim 6036d78c07 MFC: 1.3
Teach dhclient(8) about net80211 link (association) status.

Reviewed by:	brooks
Approved by:	re (kensmith)
2007-12-10 17:58:47 +00:00
Scott Long 89f4d9ca29 MFC: Support new ARC120x generation of cards.
Approved by: re
Submitted by: Erich Chen @ Areca
2007-12-09 19:53:59 +00:00
Xin LI 2e79acad5f Sync up ata(4) work by sos@ on -HEAD:
* Add preliminary SATA ATAPI support for sii 3132/3124 chips.
 * Fix speed report on Intel SATA chips in compat mode.
 * Fix broken detect of JMicron 368.

Related revisions:
 - ata-chipset.c: 1.208, 1.210
 - ata-disk.c.c:  1.205

Approved by:	re (kensmith), sos
2007-12-09 19:27:19 +00:00
cvs2svn ef3bafb1ea This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-12-09 11:02:00 +00:00
Nate Lawson f0e0b13341 MFC: 1.149-1.150. Hold Giant over device_suspend/resume() methods in apm.
Approved by:	re
2007-12-09 00:24:16 +00:00
David Malone 412c054fad Regen.
Approved by:	re (kensmith)
2007-12-08 13:46:03 +00:00
David Malone e2ccfdec35 MFC: Linuxulator statfs64 fixes.
Approved by:	re (kensmith)
2007-12-08 13:43:48 +00:00
Remko Lodder 6ded5b3a3c MFC rev 1.6 msk.4
MFC rev 1.26 if_msk.c
MFC rev 1.11 if_mskreg.h

  Bring in support for: Marvell Yukon 8039

  PR:             118401
  Submitted by:   Skip Ford <skip at menantico dot com>
  Approved by:    imp (mentor), yongari
  MFC After:      3 days

Approved by:	re (kensmith), imp (mentor, implicit)
2007-12-08 12:19:13 +00:00
Ulf Lilleengen 93d9ea5d2d - Add support for all geom class command options in the Fixit environment by
pointing GEOM_LIBRARY_PATH to the geom libraries.

PR:		misc/113543
Submitted by:	Ed Schouten <ed -at- fxq.nl>
Approved by:	re (kensmith), pjd (mentor)
2007-12-08 10:05:32 +00:00
Xin LI 01c7c45203 em(4) is updated to 6.7.2.
Approved by:	re (hrs)
2007-12-08 06:01:34 +00:00
Kip Macy 89f88be1c1 MFC: 1.317, 1.318, 1.319
Fix bit macros to work on multi-byte types

Approved by: re(kensmith)
2007-12-07 23:22:57 +00:00
Olivier Houchard a86845d51e MFC:
sys/arm/include/asmacros.h rev 1.7
sys/arm/include/atomic.h rev 1.23

Close a race.

The RAS implementation would set the end address, then the start
address.  These were used by the kernel to restart a RAS sequence if
it was interrupted.  When the thread switching code ran, it would
check these values and adjust the PC and clear them if it did.

However, there's a small flaw in this scheme.  Thread T1, sets the end
address and gets preempted.  Thread T2 runs and also does a RAS
operation.  This resets end to zero.  Thread T1 now runs again and
sets start and then begins the RAS sequence, but is preempted before
the RAS sequence executes its last instruction.  The kernel code that
would ordinarily restart the RAS sequence doesn't because the PC isn't
between start and 0, so the PC isn't set to the start of the sequence.
So when T1 is resumed again, it is at the wrong location for RAS to
produce the correct results.  This causes the wrong results for the
atomic sequence.

The window for the first race is 3 instructions.  The window for the
second race is 5-10 instructions depending on the atomic operation.
This makes this failure fairly rare and hard to reproduce.

Mutexs are implemented in libthr using atomic operations.  When the
above race would occur, a lock could get stuck locked, causing many
downstream problems, as you might expect.

Also, make sure to reset the start and end address when doing a syscall, or
a malicious process could set them before doing a syscall.

Reviewed by: imp, ups (thanks guys)
Approved by:	re (kensmith)
Pointy hat to:  cognet
2007-12-07 22:08:02 +00:00
Xin LI 7f80e86632 MFC revision 1.209
date: 2007/11/26 19:08:08;  author: sos;  state: Exp;  lines: +1 -1
Use device_set_desc_copy in the generic ident as its used on a temp buffer.

Approved by:	re (kensmith)
2007-12-07 17:59:39 +00:00
Konstantin Belousov 6426331ee1 MFC rev. 1.181:
Check for the program headers alignment of the ELF images before
dereferencing. Unaligned access could cause panic on strict alignment
architectures.

Approved by:	re (kensmith)
2007-12-07 14:30:26 +00:00
Konstantin Belousov 1f0aa93ebc MFC rev. 1.5, 1.6:
Restore the branding of the ELF executables. The structure was optimized out.

Approved by:	re (kensmith)
2007-12-07 14:16:53 +00:00
Kevin Lo 560a040057 MFC r1.18:
zic(8) should exit the loop when the end of the string is reached
due to the call to error(). The problem found by doing fuzz testing.

Approved by: re (kensmith)
2007-12-07 05:17:34 +00:00
Xin LI 3473a51bfc Bring in the latest snapshot of Simplified Chinese translation for the release
notes documentation for 6.3-RELEASE.  This is a collective work by the FreeBSD
Simplified Chinese Project team.

Submitted by:	Junfeng Wen <wjf at cn.FreeBSD.org>
		Chifeng Qu <chifeng at gmail.com>
		delphij
Obtained from:	The FreeBSD Simplified Chinese Project CVS
Approved by:	re (kensmith)
2007-12-07 04:04:52 +00:00
Andrew Thompson 38ac70031f MFC r1.209
Apply a workaround for the unkillable jail problem where some devices created
  within the jail are never freed.

Approved by:	re (kensmith)
2007-12-07 03:46:23 +00:00
Philip Paeps 6015633f10 MFC r1.33: Add a cross-reference to newgrp(1).
Approved by:	re (kensmith)
2007-12-06 10:50:35 +00:00
Philip Paeps 846d2046c0 MFC r1.13:
Fix a use-after-free.

Submitted by:	Ilja van Sprundel <ilja -at- netric.org>
Reviewed by:	secteam
Approved by:	re (kensmith)
2007-12-06 10:24:29 +00:00
Philip Paeps c78c61ea80 MFC if_iwi.c:1.59
if_ipw.c:1.34

  Plug two potential (root-only, local) information leaks.  buf is not
  initialized before use and returned integrally instead of up to size.

Submitted by:	Ilja van Sprundel <ilja -at- netric.org>
Reviewed by:	secteam
Approved by:	re (kensmith)
2007-12-06 10:23:15 +00:00
John Baldwin 3785ce0ed0 MFC: Always assume type #1 PCI config transactions for amd64 and relax the
probe for type #1 on i386.

Approved by:	re (kensmith)
2007-12-06 08:27:03 +00:00
John Baldwin 75c29c3f05 MFC: Change pci_cfgdisable() into a nop for type #1 similar to what other
OSs do.

Approved by:	re (kensmith)
2007-12-06 08:19:00 +00:00
John Baldwin b672f930d6 MFC: Don't delete files in the X11 socket directories under /tmp.
Approved by:	re (kensmith)
2007-12-06 08:11:19 +00:00
Pyun YongHyeon b6a9024bad MFC if_re.c, rev 1.98 to RELENG_6_3
Always honor promiscuous flag prior to programming Rx multicast
filter. This fixes a regression introduced in rev 1.89.

PR:	114632
Approved by:	re (kensmith)
2007-12-06 06:02:43 +00:00
Ariff Abdullah 1f95d1b8c7 Headphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.
Tested by:	Liyu, She
Approved by:	re (kensmith)
2007-12-06 05:21:07 +00:00
Kip Macy 9179a53af5 Common code changes for firmware update.
Approved by: re(kensmith)
2007-12-06 00:02:00 +00:00
Kip Macy 11fd3fc4d1 - fix qset to port binding as a proper fix for the problems encountered on the 4-port
- fix the use after free seen when sending packets small enough to fit as an immediate
     and bpf peers are present
   - update to firmware rev 4.7 along with various small vendor fixes

Approved by: re(kensmith)
2007-12-05 23:46:44 +00:00
Robert Watson e9a6c4793a Merge kern_mbuf.c:1.9.2.10 from RELENG_6 to RELENG_6_3:
Call NET_LOCK_GIANT/NET_UNLOCK_GIANT around calls to protocol drain
  methods in mb_reclaim().  This is not an MFC, as debug.mpsafenet is
  not present in 7.x or 8.x.  In practice, this likely resulted in
  instability only on kernels with INVARIANTS, as the protocol drain
  paths are generally MPSAFE.

  PR:             116034
  Reported by:    Dan Lukes <[email protected]>
  Discussed with: kmacy, alc
  Approved by:    re (kensmith)
  Tested by:      Eugene Grosbein <eugen at grosbein dot pp dot ru>
2007-12-05 00:47:48 +00:00
Colin Percival 6e92d79cc6 MFC revision 1.3: Add /root/, /.cshrc, and /.profile to the default
UpdateIfUnmodified directive in order to avoid overwriting these when
users upgrade to future versions of FreeBSD.

Approved by:    re (kensmith)
2007-12-04 22:51:36 +00:00
Xin LI 8f9668f065 MFC: less v416.
Approved by:	re (kensmith)
2007-12-04 22:41:44 +00:00
David E. O'Brien 21c88ae71d MFC: turn on gdbserver for the arch that supports it.
Approved by:	re(kensmith)
2007-12-04 18:02:47 +00:00
David E. O'Brien 64c1891e95 MFC:
+ Turn on gdbserver for the arch that supports it.
+ Fix static/extern mismatch.
+ Remove extern int verbose declaration.

Approved by:	re(kensmith)
2007-12-03 21:05:20 +00:00
Joe Marcus Clarke 6a9f60381f Forced commit to correct file handle reversal in previous commit. The
message should have read:

This is a partial MFC of rev 1.126 from HEAD's libkse.  This only merges the
fix which causes stderr_debug to write output to STDOUT_FILENO instead
of STDERR_FILENO.  This is known to fix (or workaround) some mono-related
build problems.

Approved by:	re (kensmith)
2007-12-02 23:46:27 +00:00
Joe Marcus Clarke b3e34e3178 MFC: rev 1.126
This is a partial MFC of rev 1.126 from HEAD's libkse.  This only merges the
fix which causes stderr_debug to write output to STDERR_FILENO instead
of STDOUT_FILENO.  This is known to fix (or workaround) some mono-related
build problems.

Approved by:	re (kensmith)
2007-12-02 23:42:38 +00:00
Olivier Houchard df6cda3c36 MFC:
gnu/usr.bin/gdb/arch/arm/nm-fbsd.h rev 1.2
gnu/usr.bin/gdb/arch/arm/Makefile rev 1.2
gnu/usr.bin/gdb/arch/arm/armfbsd-nat.c 1.2
gnu/usr.bin/gdb/arch/arm/armfbsd-tdep.c rev 1.2
gnu/usr.bin/gdb/arch/arm/init.c rev 1.2
Allow gdb to attach live process.
Thread support for arm.

Approved by:	re (kensmith)
2007-12-02 14:38:21 +00:00
Olivier Houchard 7cf3e7ee51 MFC:
arm/at91/kb920x_machdep.c rev 1.24, 1.25 and 1.26
arm/at91/std.at91 rev 1.4
arm/at91/std.kb920x rev 1.5
arm/at91/at91rm92reg.h rev 1.6
conf/options.arm 1.18
Small tweaks to be able to load the kernel at a different address than
0x20000000 + add an option to override the default value of the master clock
frequency.
arm/at91/if_ate.c rev 1.21:
In ate_get_mac(), try to get the mac address in the right order, at least
in the same order as it's set in ate_set_mac.

arm/conf/HL200: config file for the Hot-e HL200

Approved by:	re (kensmith)
2007-12-02 14:21:27 +00:00
cvs2svn c2cbeda1e4 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-12-02 13:10:44 +00:00
Remko Lodder 279a95ed00 MFC rev 1.29 atacontrol.8
Expand the EXAMPLES section for atacontrol.8

  PR:             docs/117310
  Submitted by:   Ted Mittelstaedt <tedm at ipinc dot net>
                  with minor modifications by me.

Approved by:    re (hrs)
2007-12-02 09:09:44 +00:00
Remko Lodder 4c67461f0a MFC rev 1.64 sysctl.8
Remove mentionings of kern.dumpdev which is no longer available.

  PR:             docs/113570
  Submitted by:   lawrance
  MFC After:      3 days (where applicable)

Approved by:    re (hrs)
2007-12-02 09:08:45 +00:00
Remko Lodder ab064722fb MFC rev 1.41, 1.42 mdconfig.8
Sync with md(4)'s information regarding the swap backend.

  PR:             docs/115721
  Submitted by:   Stefan Lambrev <[email protected]>
  MFC After:      3 days

  Every newline should start on it's own line. I didn't do that in the
  previous commit, so make it happen now.

  Prodded by:     brueffer

Approved by:    re (hrs)
2007-12-02 09:07:48 +00:00
Remko Lodder e85c901792 MFC rev 1.7 newsyslog.conf.5
s/effect/affect/

  PR:             docs/118266
  Submitted by:   "Kim Scarborough" <sluggo at unknown dot nu>
  MFC After:      3 days

Approved by:    re (hrs)
2007-12-02 09:06:42 +00:00
Remko Lodder bf26f95050 MFC rev 1.8 ichsmb.4
Add information about the ICH6 and ICH7 being supported since recently.

MFC rev 1.20 ichsmb_pci.c

  Add the Intel 82801FB (ICH6) SMBus controller and the
  Intel 82801GB (ICH7) SMBus controller.

  PR:             85106 [1]
  PR:             99663 [2]
  Approved by:    imp (mentor), jhb
  Submitted by:   Oliver Fromme <olli at lurza.secnetix dot de>, [1]
                  Arthur Hartwig <arthur dot hartwig at nokia dot com>, [1]
                  Lowell Gilbert <lgfbsd at be-well dot ilk dot org> [2]@
  MFC After:      3 days

Approved by:    re (hrs), imp (mentor, implicit)
2007-12-02 09:05:38 +00:00
Remko Lodder 404123cef8 MFC rev 1.45 rl.4
Add the Planex FNW-3603TX card to the list.

MFC rev 1.172 if_rl.c
MFC rev 1.68  if_rlreg.h

  Add the FNW3603TX Planex NIC.

  PR:             76081
  Approved by:    imp (mentor)
  Submitted by:   umi at pocke dot org
  MFC After:      3 days

Approved by:    re (hrs), imp (mentor, implicit)
2007-12-02 09:04:11 +00:00
Darren Reed e1bc400aa8 MFC:
Fix 3 issues relating to the use of "auth" rules in IPFilter, from sourceforge:
1837014 Kernel panics after authentication of an outgoing packet
1836992 Potential bugs in packet auth code (w/patches)
1836967 Kernel panic when using auth rule with keep state
and another reported only to FreeBSD by Andiry (see PR)

PR:             kern/118251
Submitted by:   Andriy Syrovenko <[email protected]>
Reviewed by:    darrenr
Approved by:    re
2007-12-01 00:53:41 +00:00
Ariff Abdullah 1983dff4e5 MFC: (revision 1.47, 1.48)
- Add missing MCP65 id which was accidentally removed in previous commit.
- Add Analog Devices AD1984 codec id.
- Enable pcbeep control for Acer + ALC268 (nid 29). Give enough (fake)
  hints so the parser will grab it and allocate "speaker" control.
- Fix regression while preparing DAC and ADC for multichannel
  format. Since playback policy is to output to every possible path,
  ensure that each DAC is started.

Reported / Tested by:	Guy Brand
Approved by:		re (kensmith)
2007-11-30 15:12:06 +00:00
Bruce A. Mah f656099089 Use X.org 7.2 and FreeBSD 6.3-RELEASE manpage hyperlinks.
Approved by:	re (implicitly)
2007-11-30 05:38:35 +00:00
Bruce A. Mah 0e74c5ca31 MFC: SA-07:09.random.
Approved by:	re (implicitly)
2007-11-30 05:28:03 +00:00
Andrew Thompson 8057d81ec7 MFC r1.22
Have the lagg interface generate link up/down events, this fixes using
 carp+lagg together.

Approved by:	re (kensmith)
2007-11-29 19:05:22 +00:00
Bruce A. Mah 17501dfed7 MFC: freebsd-update(8) upgrade, ipfwpcap(8), IPFilter 4.1.28.
Approved by:	re (implicitly)
2007-11-29 17:43:30 +00:00
Simon L. B. Nielsen 99d77ab486 Correct a random value disclosure in random(4).
Security:	FreeBSD-SA-07:09.random
Approved by:	re (kensmith)
2007-11-29 16:06:54 +00:00
Tai-hwa Liang 8acd51193d MFC(1.14): Fixing a double free bug which will cause tail to dump core when
there's no tailing newline(\n) character.

PR:		bin/118267
Reviewed by:	kib
Approved by:	re (kensmith)
2007-11-29 03:54:56 +00:00
David E. O'Brien a793975d0d MFC: fix situation where GDB gives incorrect backtraces when a signal
handler is in the call chain.

Approved by:	re(kensmith)
2007-11-28 16:55:39 +00:00
David E. O'Brien 31c1d654ac Sync with HEAD.
Approved by:	re(gnn)
2007-11-28 16:41:47 +00:00
Ariff Abdullah 067993cfde * Fix support for followings:
o Acer Aspire 4520 laptop
    - jack sensing / automute
  o Toshiba Satellite A135-S4527 laptop
    - jack sensing / automute
      Tested by: lioux
  o Apple Macbook 3 (is it?)
    - require gpio0 (for speakers) and ovref50 (for headphone)
      to make it works
    - jack sensing / automute
      Tested by: Ed Schouten
* Add Nvidia MCP67 controller ids.
* Be sensible about simmilar controller with multiple pci ids.
* Connect unused DAC/ADC to stream#0 rather than forcing each of them
  managing their own stream.

Approved by:	re (kensmith)
2007-11-27 23:37:48 +00:00
Marius Strobl 2a70b4aa1e MFC: UPDATING 1.512, sys/sparc64/conf/DEFAULTS 1.11
Let sunkbd(4) emulate an AT keyboard by default.
This has the following benefits:
- allows to use the AT keyboard maps in share/syscons/keymaps with
  sunkbd(4),
- allows to use kbdmux(4) with sunkbd(4),
- allows Sun RS232 keyboards to be configured and used the same
  way as Sun USB keyboards driven by ukbd(4) (which also does AT
  keyboard emulation) with X.Org, putting an end to the problem
  of native support for the former in X.Org being broken over and
  over again.

Approved by:	re (kensmith)
2007-11-27 20:48:13 +00:00
Dmitry Morozovsky e3f2c87593 MFC revision 1.31:
devinfo(8) manual page refers to pciconfr(8).  Add back reference for
	completeness.

Approved by:	re (kensmith)
2007-11-27 20:00:29 +00:00
John Baldwin 3a76a88a0d MFC: Bump up the number of ttys supported by pty(4) to 512.
Approved by:	re (kensmith)
2007-11-27 18:43:09 +00:00
John Baldwin 9addff1cb5 MFC: Expand critical section coverage for ithread scheduling.
Approved by:	re (kensmith)
2007-11-27 17:46:18 +00:00
John Baldwin a6c0a4ae53 MF6: Sync with i386 and expand support for bounce pages, etc.
Approved by:	re (kensmith)
2007-11-27 17:45:59 +00:00
Tai-hwa Liang 93d321a90c MFC(if_an.c:1.85, if_anreg.h:1.24): Trying to eliminate a racing as well as
reducing the chance of device removal(PCCARD) panic by replacing the
timeout(9) with callout(9) APIs.

Approved by:	re (gnn)
2007-11-27 08:22:37 +00:00
Ken Smith 78fe411920 Get ready for 6.3-RC1 builds.
Approved by:	re (implicit)
2007-11-26 15:51:15 +00:00
Scott Long 1a3fe001fc MFC: Expand critical section coverage so that shared fast and ithread handlers
don't stall.  Unlike 8-CURRENT and 7-STABLE, sparc64 and powerpc in 6-STABLE
do not appear to have this problem.

Approved by: re
2007-11-26 15:42:43 +00:00
Rong-En Fan 511f2283f0 - Put __mb_sb_limit symbol back to libc to ease users' pain when upgrading
their 6-STABLE system. This is necessary because we have this symbol
  exported between 20071025 and 20071030. Binaries built during that perios
  will be broken after 602115.

Requested by:	many
Approved by:	re (kensmith)
2007-11-26 03:29:17 +00:00
David Xu b4d58a20fd MFC revision 1.27:
In _pthread_key_create() ensure that libkse is initialized.

Approved by: re (kensmith)
2007-11-26 02:52:20 +00:00
Bruce A. Mah 265d576fc9 New release notes: freebsd-update(8) -r, OpenBSM 1.0.
Approved by:	re (implicitly)
2007-11-25 18:13:09 +00:00
Bruce A. Mah 3a603deb13 Bump version numbers in the release documentation for 6.3-RELEASE.
Some more changes are required in this file to make manpage hyperlinks
work correctly.

Approved by:	re (implicitly)
2007-11-25 17:51:48 +00:00
Bruce A. Mah abb2f160d4 Update upload location for release note renderings for 6.3-RELEASE.
Approved by:	re (implicitly)
2007-11-25 17:42:08 +00:00
Bruce A. Mah 4c313eeee1 Trim release errata for 6.3-RELEASE.
Approved by:	re (implicitly)
2007-11-25 17:41:31 +00:00
Jean-Sébastien Pédron 62ecd0a768 MFC 1.193:
The kernel uses two ways to write data on a pipe:
      o  buffered write, for chunks smaller than PIPE_MINDIRECT bytes
      o  direct write, for everything else

  A call to writev(2) may receive struct iov of various size and the
  kernel may have to switch from one solution to the other. Before doing
  this, it must wake reader processes and any select/poll/kqueue up.

  This commit fixes a bug where select/poll/kqueue are not triggered
  when switching from buffered write to direct write. It adds calls to
  pipeselwakeup().

  I give more details on freebsd-arch@:
  http://lists.freebsd.org/pipermail/freebsd-arch/2007-September/006790.html

  This should fix issues with Erlang (lang/erlang) and kqueue.

Reported by:	Rickard Green (Erlang)
Approved by:	re (kensmith)
2007-11-25 17:33:54 +00:00
Ken Smith 832724a318 Prepare for packages-6.3-release to exist.
Approved by:	re (implicit)
2007-11-25 06:36:32 +00:00
Ken Smith 779c287192 Adjust __FreeBSD_version now that RELENG_6_3 exists.
Approved by:	re (implicit)
2007-11-25 06:34:58 +00:00
Ken Smith 430befc57f Adjust branch tag in example.
Approved by:	re (implicit)
2007-11-25 06:32:51 +00:00
Ken Smith 381a8fe24f Adjust build name.
Approved by:	re (implicit)
2007-11-25 06:27:23 +00:00
Ken Smith 97dafd3d02 Switch to RELENG_6_3 for "make update".
Approved by:	re (implicit)
2007-11-25 06:23:43 +00:00
cvs2svn 0ef2db398f This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-24 19:45:58 +00:00
Robert Watson 8116773406 Merge kern_proc.c:1.255 from HEAD to RELENG_6:
Test that p_textvp is non-NULL be dereferencing, as no executable vnode is
  set for kernel processes.

  Reported by:    Skip Ford <skip at menantico dot com>

Approved by:    re (kensmith)
2007-11-24 19:45:57 +00:00
Gregory Neil Shapiro 530bcac492 Forced commit to .mc files to force creation of new .cf files for mergemaster.
Approved by:    re (kensmith)
2007-11-22 16:20:31 +00:00
Søren Schmidt 1d0d900b63 Update with the latest fixes from -current.
Approved by: re@
2007-11-22 07:50:37 +00:00
Maksim Yevmenkin fb508866be Fix bug in handling SDP continuation state.
Approved by:	re (kensmith)
Reported by:	Eric Millbrandt emillbrandt at coldhaus dot com
2007-11-21 17:36:14 +00:00
Maksim Yevmenkin a81e2c5c90 Allow search for any UUID entered by user.
Approved by:	re (kensmith)
2007-11-21 17:30:50 +00:00
cvs2svn 91fdbf85cf This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-21 16:47:16 +00:00
John Baldwin 3b9d5cb8c3 MFC: Teach kgdb how to handle double fault frames on i386.
Approved by:	re (kensmith)
2007-11-21 16:47:15 +00:00
John Baldwin 5b2692f676 MFC: Add support for debugging double fault frames.
Approved by:	re (kensmith)
2007-11-21 16:41:51 +00:00
John Baldwin 8dd718f381 MFC: Add a trailing \0 to the read error string.
Approved by:	re (kensmith)
2007-11-21 16:22:34 +00:00
Colin Percival 6d0a2c3f81 MFC revisions 1.11,1.12: Unbreak "freebsd-update rollback" applied to
minor version upgrades, by being more careful about the order in which
files are rolled back to their old versions.

Approved by:	re (kensmith)
2007-11-21 14:37:03 +00:00
Daniel Hartmeier 82fab275f3 forced commit (no change) to fix PR number
PR:		kern/118154
Approved by:	re (obrien)
2007-11-21 13:52:04 +00:00
Gleb Smirnoff f75b19aafe MFC:
- Merge all the ng_send_fn2* functions into one - ng_send_fn2(),
    removing some copy&pasted code.
  - Reduce copy and paste in ng_apply_item().
  - Resurrect ng_send_fn() as a valid symbol, not a define.

  Reviewed by:	mav, julian

Approved by:	re (kensmith)
2007-11-21 12:14:00 +00:00
Daniel Hartmeier 7076980988 restrict the tcp.finwait timeout (45s) to state combinations where we have seen a FIN from both sides (whether ACKed or not) and use tcp.closing (900s) for half closed connections. otherwise half closed connections will time out within 45s.
PR:		kern/11854
Submitted by:	Jan Srzednicki
Approved by:	re@ (kensmith@)
Obtained from:	OpenBSD (r1.494)
2007-11-21 06:25:59 +00:00
cvs2svn d18bde5885 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-21 01:31:51 +00:00
cvs2svn 1da0a15938 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-21 01:31:50 +00:00
Rong-En Fan b718b356e1 - Back out previous ctype(3) fix for UTF-8 locale due to forward ABI
compatibility is still broken as we add new symbols to libc. Those
  symboles are __sbmaskrune, __sbistype, __sbtoupper and __sbtolower.
  The latter three are directly referred by binaries use ctype(3) family
  functions (see include/ctype.h for details). This means if a binary
  built on 6.3, it uses these symbols that are not available on older
  system.
- As this has been in 6 for a month, I intentionally leave these symbols
  in libc but map them to original version. So binary built after 602113
  will not be broken after this commit.
- Bump __FreeBSD_version for this back-out

PR:		116363
Discussed with:	kris, kensmith
Approved by:	re (kensmith)
2007-11-21 01:31:49 +00:00
Darren Reed 3e76862c9c Updates to build infrastructure for the MFC of IPFilter into RELENG_6 2007-11-19 00:48:39 +00:00
cvs2svn 8685a14be7 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-18 18:11:18 +00:00
cvs2svn 00e9679584 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-11-18 18:11:17 +00:00
cvs2svn 185ee3fe74 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-18 11:03:30 +00:00
Darren Reed 9d836d1401 MFC IPFilter update from 4.1.13 to 4.1.28, including additional fixes applied
post 4.1.28 for FreeBSD.  See src/contrib/ipfilter/HISTORY for more details
of the bugs fixed, etc.
2007-11-18 11:03:29 +00:00
John Birrell 98ad88d25e MFC Add pathname to the linker_file structure. 2007-11-18 00:15:32 +00:00
Robert Watson d7365f2387 Re-add $FreeBSD$ lost during vendor merge of OpenBSM 1.0 to RELENG_6.
No $FreeBSD$ tags in the vendor code, but we need them in FreeBSD to
support mergemaster and related tools.

Spotted by:	Pawel Worach
2007-11-17 22:14:29 +00:00
Olivier Houchard 6333effe3d MFC arm/xscale/ixp425/files.ixp425 up to rev 1.4, add IxNpeMicrocode.dat.uu
Now that Intel changed the license for the NPE firmware, import it directly
hexed into our tree, instead of requiring the user to download it.
2007-11-17 18:24:46 +00:00
Olivier Houchard 82cb32eebc MFC:
sys/arm/xscale/ixp425/ixp425_npe.c rev 1.6
sys/arm/xscale/ixp425/if_npe.c rev 1.6
sys/arm/xscale/ixp425/ixp425_npevar.h rev 1.2

date: 2007/05/24 16:31:22;  author: sam;  state: Exp;  lines: +3 -3
Search for a proper ucode image to use by incrementing the minor
release number up to the max.  This should eliminate the need to
tweak the default imageid define for later releases that are found
on the Intel web site.

Approved by:	re (kensmith)
2007-11-17 18:22:57 +00:00
John Baldwin 20ae8d4b99 MFC: Add the bump of the doc date missed in previous MFC. 2007-11-17 16:51:58 +00:00
John Baldwin b0fd55de47 MFC: Some minor whitespace and style fixes. 2007-11-17 16:50:20 +00:00
John Baldwin 9c9b147439 MFC: Document -w flag. 2007-11-17 16:49:45 +00:00
John Baldwin c4fb3bee9d MFC: Rename the private lookup() routine in kthr.c to kgdb_lookup() and
make it public so other parts of kgdb can use it.
2007-11-17 16:45:38 +00:00
Stephan Uphoff f50d14ee9d MFC: nfs_socket.c 1.148
Log: 	NetApp filers return corrupt post op attrs in the wcc on NFS error responses.
	This is easy to reproduce for EROFS. I am not sure if the attrs can be corrupt
	for other NFS error responses. For now, disabling wcc pre-op attr checks and
	post-op attr loads on NFS errors (sysctl'ed).
2007-11-16 21:24:54 +00:00
Max Khon 30d20daa37 MFC:
Import two binutils header files from FSF 2.15 branch.
These fix binutils compilation on i386/amd64 with GCC 4.1 and
have no other effect.

This fixes RELENG_6 build on RELENG_7/HEAD.

Approved by:	re (kensmith)
2007-11-16 04:29:01 +00:00
cvs2svn 4f8445a66c This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-15 20:20:55 +00:00
John Baldwin f13867e3d6 MFC: Make it easier to add more ptys to the pty(4) driver.
Approved by:	re (kensmith)
2007-11-15 20:20:54 +00:00
Robert Watson be79406a02 Merge audit.c:1.32 from HEAD to RELENG_6:
Spell statistics more correctly in comments.
2007-11-15 20:06:58 +00:00
Robert Watson 8c74e4d580 Merge audit.c:1.31, audit_arg.c:1.14, audit_bsm.c:1.18 from HEAD to
RELENG_6:

  Clean up, and sometimes remove, a number of audit-related implementation
  comments.

Note that because of other unrelated changes in HEAD, some portions of
audit.c:1.31 can't be merged verbatim (or at all).
2007-11-15 19:59:54 +00:00
Robert Watson b6114855c4 Merge audit_bsm_token.c:1.13 from HEAD to RELENG_6:
synchronize white space to congruent user-space code in OpenBSM.
2007-11-15 19:39:49 +00:00
Robert Watson 7c923a67fe Merge audit.c:1.35, audit_bsm_klib.c:1.8 from HEAD to RELENG_6:
Replace use of AU_NULL with 0 when no audit classes are in use; this
  supports the removal of hard-coded audit class constants in OpenBSM
  1.0.  All audit classes are now dynamically configured via the
  audit_class database.
2007-11-15 19:31:15 +00:00
Robert Watson 441dcc61f7 Merge audit_bsm_token.c:1.12 from HEAD to RELENG_6:
Remove $P4$ that snuck into CVS from Perforce.
2007-11-15 19:30:37 +00:00
Robert Watson b412ecfcec Merge audit_bsm_token.c:1.11 from HEAD to RELENG_6:
Merge OpenBSM 1.0 alpha 14 changes to src/sys/security/audit:

  - au_to_attr64(), au_to_process64(), au_to_subject64(),
    au_to_subject64_ex(), au_to_zonename(), au_to_header64_tm().
  - Extended address token fixes.
2007-11-15 19:29:39 +00:00
Robert Watson 7441eafe15 Merge OpenBSM 1.0 parts into src/sys/bsm in RELENG_6:
- Remove AU_.* hard-coded audit class constants, as udit classes are now
    entirely dynamically configured using /etc/security/audit_class.
  - Synchronized audit event list to Solaris, picking up the *at(2) system call
    definitions, now required for FreeBSD and Linux.  Added additional events
    for *at(2) system calls not present in Solaris.
  - Add support for zonename tokens.
  - Additional audit event identifiers for listen, mlockall/munlockall,
    getpath, POSIX message queues, and mandatory access control.
2007-11-15 19:28:32 +00:00
Robert Watson 48b82ffc21 Merge OpenBSM 1.0 from HEAD to RELENG_6:
OpenBSM 1.0

  - Fix bug in auditreduce(8) which resulted in a memory fault/crash when
    the user specified an event name with -m.
  - Remove AU_.* hard-coded audit class constants, as udit classes are now
    entirely dynamically configured using /etc/security/audit_class.

  OpenBSM 1.0 alpha 15

  - Fix bug when processing in_addr_ex tokens.
  - Restore the behavior of printing the string/text specified while
    auditing arg32 tokens.
  - Synchronized audit event list to Solaris, picking up the *at(2) system call
    definitions, now required for FreeBSD and Linux.  Added additional events
    for *at(2) system calls not present in Solaris.
  - Bugs in auditreduce(8) fixed allowing partial date strings to be used in
    filtering events.

  OpenBSM 1.0 alpha 14

  - Fix endian issues when processing IPv6 addresses for extended subject
    and process tokens.
  - gcc41 warnings clean.
  - Teach audit_submit(3) about getaudit_addr(2).
  - Add support for zonename tokens.

  OpenBSM 1.0 alpha 13

  - compat/clock_gettime.h now provides a compatibility implementation of
    clock_gettime(), which fixes building on Mac OS X.
  - Countless man page improvements, markup fixes, content fixs, etc.
  - XML printing support via "praudit -x".
  - audit.log.5 expanded to include additional BSM token types.
  - Added encoding and decoding routines for process64_ex, process32_ex,
    subject32_ex, header64, and attr64 tokens.
  - Additional audit event identifiers for listen, mlockall/munlockall,
    getpath, POSIX message queues, and mandatory access control.
2007-11-15 19:27:12 +00:00
Stefan Eßer cfcfc4f3cf MFC: Extend buffer to match maximum possible string length. 2007-11-15 18:59:46 +00:00
Ariff Abdullah ac20b087c5 MFC (revision 1.54):
Limit total playback channels to just 1, for ALi M5451.
The reliability of it's multi DAC / playback channels is
not that good. Enabling vchans make the bug more visible
since playback allocation will look for possible free
hardware channels first (i.e: the next DAC, the very first
has been consumed by vchan mixer) which in this case has
been proven faulty.

Reported / Tested by:   Sascha Klauder
2007-11-15 16:59:54 +00:00
Ken Smith 00d034da25 MFC another adjustment to the X related distributions based on xorg-7.3
layout.  xorg-printserver still exists in the ports tree but it's marked
as depreciated and scheduled for removal.

Versions MFCed:
        dist.c:         1.252
        dist.h:         1.70
        menus.c:        1.428
2007-11-15 16:58:45 +00:00
Rink Springer 67f0825c5f MFC
Approved by:    imp (mentor)

rink        2007-08-05 16:55:40 UTC

  FreeBSD src repository

  Modified files:
    lib/libdisk          open_disk.c
  Log:
  Improve error handling in libdisk while parsing the kern.geom.conftxt sysctl.
  Previously, any parse error will result in the calling program exiting with an
  unpleasant message. This change will cause libdisk to issue a warning and
  ignore lines it cannot parse instead of bluntly terminating the unfortunate
  enough program.

  This change will allow you to use sysinstall if you have a NTFS parition with
  a space in the name (such as 'Win Xp'). In such a case, a line like the
  following will appear in the kern.geom.conftxt output:

  2 LABEL ntfs/Win Xp 209818635264 512 i 0 o 0

  As the fields are space-separated, libdisk would go beserk and exit the program.
  This would happen if using FreeBSD 7.0 snapshot images (as GEOM_LABEL is in
  the installation kernel as well), thus making it impossible to install FreeBSD
  without renaming your NTFS paritions.

  Reported by:    Dwight Berendse <dwight at berendse dot org>
  Nod from:       phk
  Reviewed by:    imp
  Approved by:    re (bmah), imp (mentor)
  MFC after:      1 month

  Revision  Changes    Path
  1.11      +38 -19    src/lib/libdisk/open_disk.c
2007-11-15 16:18:05 +00:00
Remko Lodder 854b7699c2 MFC rev 1.96 if_re.c
Add support for D-Link DGE-528(T) Rev.B1

  PR:		112774
  Submitted by:	Denis Fortin <fortin at acm dot org>
  Approved by:	imp (mentor), yongari
  MFC After:	3 days

Approved by:	imp (mentor, implicit)
2007-11-15 07:10:04 +00:00
Remko Lodder db98a2437a MFC rev 1.7 nfsmb.c
Add SMB support for the MCP61 chipset.

  PR: 108830
  Submitted by: Edwin Mons <freebsd at edwinm dot ik dot nu>
  Approbed by: imp (mentor)

Approved by:	imp (mentor, implicit)
2007-11-14 09:52:15 +00:00
Colin Percival 64a02918e7 Sync with HEAD: MFC "freebsd-update upgrade", mdoc fixes. 2007-11-14 05:20:28 +00:00
Luigi Rizzo 69901fa4cc Unbreak building picobsd's login now that login_access.c is not
more available in usr.bin/login (fixes to HEAD and RELENG_7 will
be committed after i have cleaned up the picobsd build infrastructure).
2007-11-13 15:23:10 +00:00
Luigi Rizzo 521470b58c correct a minor bug when printing the list of files excluded.
This does not prevent the build but it is nicer to do it right.
(the problem affects also HEAD and RELENG_7 but there is probably
a lot more to be fixed there in order to produce buildable picobsd
images).
2007-11-13 15:19:35 +00:00
Christian S.J. Peron 43214e50cf Back out the last change, RELENG_6 doesn't have PTS support yet and
its not clear when it will come in.  So un-hiding these devices has
no effect.

Reported by:	delphij
2007-11-13 04:10:30 +00:00
Christian S.J. Peron 08bbfcdb84 MFC revision 1.5
Un-break logins to jailed environments when PTS is in use.
2007-11-11 22:56:12 +00:00
cvs2svn 4dcafe4d81 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-11 17:07:38 +00:00
Gregory Neil Shapiro 2cb7b94916 MFC: sendmail 8.14.2
Approved by:	re (kensmith)
2007-11-11 17:07:37 +00:00
Remko Lodder 57db319614 MFC rev 1.33 getaddrinfo.3
Document getaddrinfo(3)'s AI_ADDRCONFIG

  PR: docs/78357
  Submitted by: Matthias Andree <matthias dot andree at gmx dot de>
  Patch by: asmodai
2007-11-11 11:57:11 +00:00
Remko Lodder 7c37848566 MFC rev 1.32 Makefile
This MLINKS security with securelevel, this is one of the things
that was for:

PR:		docs/104402 (this change is not within the PR itself)
2007-11-11 11:55:16 +00:00
Remko Lodder 9b03e1cfcf MFC rev 1.23 tty.4
Fix reference within TIOCNOTTY from TIOSCTTY to TIOCSCTTY.

  PR: docs/114058
  Submitted by: David Sanderson <dsanderson at panasas dot com>
  Approved by: re (bmah)
2007-11-11 11:50:46 +00:00
Remko Lodder ffdd118aa3 MFC rev 1.14 axe.4
Specify which Dlink chip is supported (D-Link DUB-E100 ver A) because
  others (D-Link DUB-E100 ver B1) are not.

  PR: docs/109664
  Submitted by: Martin Nilsson<martin at mullet dot se>
  Patch by: asmodai
2007-11-11 11:40:03 +00:00
Kirill Ponomarev 6757bdba3f MFC: match.c: 1.21
date: 2007/11/02 20:18:47;  author: krion;  state: Exp;  lines: +57 -11
  Memoize the results of isinstalledpkg()

  PR:             bin/116452
  Submitted by:   wollmann
2007-11-10 22:04:31 +00:00
Christian S.J. Peron e9fd6aa3fc MFC the following revisions:
1.14      +1 -0      src/sys/security/audit/audit.h
1.15      +22 -0     src/sys/security/audit/audit_arg.c
1.19      +35 -2     src/sys/security/audit/audit_bsm.c
1.14      +2 -2      src/sys/security/audit/audit_bsm_token.c
1.21      +7 -2      src/sys/security/audit/audit_syscalls.c (partial)

- Add support for auditing arguments in setaudit_addr(2)
- Fix bug which which would result in in_addr_ex tokens not being
  parsed properly
- Calculate the size of an ip6 address correctly
2007-11-10 17:08:41 +00:00
Christian S.J. Peron 440c4e00d0 MFC the following revisions:
1.25      +1 -1      src/sys/security/audit/audit.c
1.10      +1 -1      src/sys/security/audit/audit.h
1.11      +2 -2      src/sys/security/audit/audit_arg.c
1.16      +34 -10    src/sys/security/audit/audit_bsm.c
1.10      +12 -12    src/sys/security/audit/audit_bsm_token.c
1.13      +2 -0      src/sys/security/audit/audit_private.h
1.13      +52 -7     src/sys/security/audit/audit_syscalls.c
1.475     +1 -1      src/sys/sys/proc.h

This brings extended subject state support into RELENG_6 for audit
records.  This means that applications like sshd can take advantage
of extended subject for IPv6.  It should be noted that sshd has not
been modified.
2007-11-10 15:32:03 +00:00
Marius Strobl 8b746d7211 MFC: 1.7
In _pthread_key_create() ensure that libthr is initialized. This
fixes a NULL-dereference of curthread when libstdc+ initializes
the exception handling globals on archs we can't use GNU TLS due
to lack of support in binutils 2.15 (i.e. arm and sparc64), yet,
thus making threaded C++ programs compiled with GCC 4.2.1 work
on these archs.
2007-11-10 12:34:28 +00:00
Remko Lodder 9dbd169fd1 MFC rev 1.29 phys_pager.c
Correct a copy and paste'o in phys_pager.c, we are talking about phys here
  and not about devices.

  PR:           93755
  Approved by:  imp (mentor, implicit when re-assigning the ticket to me).

This includes another fix that is not part of CURRENT and RELENG_7 because
that is not part of the code there anymore.

Approved by:    re (kensmith), imp (mentor)
2007-11-10 11:23:01 +00:00
cvs2svn 85c2655867 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-11-10 10:21:30 +00:00
Xin LI a407dfec77 MFC: Sync the -HEAD state of ata(4) back to RELENG_6, except interrupt filtering,
CAM MPSAFE, BIO_FLUSH and alpha support removal, which are not suitable for
RELENG_6.

This makes RELENG_6 to support the same set of ATA devices as RELENG_7 and -CURRENT
did.

Reviewed by:	sos
2007-11-09 09:58:08 +00:00
John Baldwin d78c070e24 MFC: Don't look for GPT primary and secondary tables on a disk unless we
have a valid PMBR.
2007-11-09 02:48:03 +00:00
Ken Smith 5d22eb451f MFC changes to X11 distributions based on xorg-7.3 layout.
Versions:
        dist.c v1.250
        dist.h v1.68
        menus.c v1.426

Approved by:    re (bmah)
2007-11-08 23:32:26 +00:00
John Baldwin c948c26ec6 MFC: Update copyright attribution. 2007-11-08 21:33:49 +00:00
John Baldwin 9a3d5fe386 MFC: Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is
defined.
2007-11-08 21:31:53 +00:00
Nate Lawson 15532db50e MFC: improve HPET table probe and give it a lower priority as a timer,
fix divide by zero if battery status invalid

Approved by:	re
2007-11-08 21:22:20 +00:00
John Baldwin 2a41ceff76 MFC: Split agp_generic_detach() up into two routines: agp_free_cdev() and
agp_free_res().
2007-11-08 20:50:13 +00:00
John Baldwin 125430e696 MFC: Don't always re-route IRQs on resume. 2007-11-08 20:24:53 +00:00
John Baldwin 048e7f05f9 MFC: Rework the read/write support in the bios disk driver some to cut down
on duplicated code and support 64-bit LBAs for GPT.  This also changes the
code to always use EDD on devices that support it which matches the rest of
the x86 bootstrap.

Approved by:	re (kensmith)
2007-11-08 20:13:04 +00:00
John Baldwin d2e6652514 MFC: Don't test the APIC flag in the cpuid features for amd64 to see if a
local APIC is present or not.
2007-11-08 20:09:45 +00:00
Alan Cox b2a9de29b3 MFC
Add comments explaining why all stores updating a non-kernel page table
  must be globally performed before calling any of the TLB invalidation
  functions.

  With one exception, on amd64, this requirement was already met.  Fix this
  one case.  Also, as a clarification, change an existing atomic op into a
  release.
2007-11-08 18:02:27 +00:00
Robert Watson 77849c6925 Merge audit_trigger.c:1.5 from HEAD to RELENG_6:
Close a very narrow race that might cause a trigger allocation to be
  leaked if a trigger is delivered as the trigger device is closed.

  Obtained from:  TrustedBSD Project
2007-11-08 16:40:01 +00:00
Robert Watson 6a4adcaffe Merge audit.c:1.29, audit.h:1.12, audit_arg.c:1.12, audit_bsm.c:1.17,
audit_bsm_klib.c:1.7, audit_pipe.c:1.11, audit_private.h:1.16,
audit_worker.c:1.16 from HEAD to RELENG_6:

  Clean up audit comments--formatting, spelling, etc.
2007-11-08 16:38:49 +00:00
Robert Watson 4885a269ea Merge audit.c:1.28, audit_private.h:1.15, audit_worker.c:1.15 from HEAD to
RELENG_6:

  Remove AUDIT_PRINTF() debugging statements and definition; clean up or
  remove associated comments.

  Slip audit_file_rotate_wait assignment in audit_rotate_vnode() before
  the drop of the global audit mutex.

  Obtained from:  TrustedBSD Project
2007-11-08 16:32:29 +00:00
Robert Watson 6b74a58a66 Merge audit.h:1.11, audit_syscalls.c:1.16 from HEAD to RELENG_6:
Remove unused !AUDIT audit_proc_*() prototypes: unlike in Mac OS X, we
  don't define or use these functions if AUDIT isn't configured.

  Obtained from:  TrustedBSD Project
2007-11-08 16:26:06 +00:00
Robert Watson f70e540013 Merge audit_syscalls.c:1.15 from HEAD to RELENG_6:
Consistent white space after .'s in comments.
2007-11-08 16:23:03 +00:00
Robert Watson 9c706bb497 Merge audit.c:1.26 from HEAD to RELENG_6:
No need to force __inline__ of currecord(), as the compiler will usefully
  inline it when needed already, and the symbol is also required outside of
  audit.c.  This silences a new gcc warning on the topic of using __inline__
  instead of __inline.
2007-11-08 15:49:00 +00:00
Robert Watson 1b9a1a7078 Merge audit_worker.c:1.14 from HEAD to RELENG_6:
Short name of kernel audit worker thread from "audit_worker" to "audit".
2007-11-08 15:41:19 +00:00
Robert Watson 8cfb44b792 Merge audit_ioctl.h:1.5 from HEAD to RELENG_6:
Don't expose #ifdef NOTYET parts to userspace via audit_ioctl.h, just
  remove them, since the functionlity they are associated with isn't there
  yet.
2007-11-08 15:36:18 +00:00
Robert Watson c129572601 Mege audit_arg.c:1.9 from HEAD to RELENG_6:
When returning early from audit_arg_file() due to so->so_pcb being NULL
  (due to an early reset or the like), remember to unlock the socket lock.
  This will not occur in 7-CURRENT, but could in theory occur in 6-STABLE.
2007-11-08 15:33:10 +00:00
Robert Watson 23a765d40e Merge audit_arg.c:1.8, audit_bsm_klib.c:1.5 from HEAD to RELENG_6:
Add a witness sleep warning to canon_path(), which invokes vput() and hence
  may perform an unbounded sleep.  Remove an XXX comment suggesting that one
  be added.

  Obtained from:  TrustedBSD Project
2007-11-08 15:31:48 +00:00
Robert Watson 12b9fff03b Mege audit_syscalls.c:1.10 from HEAD to RELENG_6:
Use p_cansee() to check that a target process for an audit state
  manipulation is visible to the subject process.  Remove XXX comments
  suggesting this.

  Convert one XXX on a difference from Darwin into a note: it's not a
  bug, it's a feature.

  Obtained from:  TrustedBSD Project
2007-11-08 15:30:01 +00:00
Robert Watson 9456ed7255 Mege audit_syscalls.c:1.11 from HEAD to RELENG_6:
Remove two XXX comments that no longer apply.

  Obtained from:  TrustedBSD Project
2007-11-08 15:17:42 +00:00
Robert Watson 33783e2d19 Merge audit.c:1.23, audit_bsm_token.c:1.9, audit_trigger.c:1.4, and
audit_worker.c:1.13 from HEAD to RELENG_6:

  Update a number of comments:

  - Replace XXX with Note: in several cases where observations are made about
    future functionality rather than problems or bugs.

  - Remove an XXX comment about byte order and au_to_ip() -- IP headers must
    be submitted in network byte order.  Add a comment to this effect.

  - Mention that we don't implement select/poll for /dev/audit.

  Obtained from:  TrustedBSD Project
2007-11-08 15:16:19 +00:00
Robert Watson 418ea464fc Merge audit.c:1.21 from HEAD to RELENG_6:
Trim some no longer XXX comments.
  Remove some commented out debugging printfs.

  Obtained from:  TrustedBSD Project
2007-11-08 15:11:11 +00:00
Robert Watson 57a39041df Merge audit_syscalls.c:1.7 from HEAD to RELENG_6:
Audit path argument when changing audit trails.

  Call NDFREE(), which while not currently strictly necessary, isn't a
  bad idea.

  Obtained from:  TrustedBSD Project
2007-11-08 15:01:35 +00:00
Maksim Yevmenkin 39f8280f0c MFC
Allow RFCOMM servers to bind to a ''wildcard'' RFCOMM channel
zero (0). Actual RFCOMM channel will be assigned after listen(2)
call is done on a RFCOMM socket bound to a ''wildcard'' RFCOMM
channel zero (0).

Address locking issues in ng_btsocket_rfcomm_bind()

Submitted by:	Heiko Wundram (Beenic) < wundram at beenic dot net >
Approved by:	re (kensmith)
2007-11-07 17:42:45 +00:00
Kris Kennaway d7b9a07281 MFC: Catch up to current state of ports tree
Approved by:  re (kensmith)
2007-11-07 13:57:08 +00:00
cvs2svn 5cbcb71f0c This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-07 13:38:46 +00:00
Konstantin Belousov 002f6eb390 MFC rev. 1.12:
Fix various memory leaks.
2007-11-07 13:38:45 +00:00
Jack F Vogel 52e312c6a5 This delta addresses some users experiencing watchdogs under load with
the last driver version. I suspect sheduling to be at the bottom of it,
but this version fixes it by:
	- Making FAST interrupt handling off by default, if you want
	to use it #define EM_FAST_IRQ in the Makefile.
	- Add dual locks, one for the TX subsystem, the other CORE
	for things like init and interface managment.
	- Add cleaner MSI/X setup code.
	- If using FAST interrupts there is now a mechanism in the
	watchdog routine to kick off TX cleanups if they have not
	been scheduled.

I think everyone will be happier with this change.
2007-11-07 01:33:28 +00:00
Nate Lawson 16b155a07e MFC 1.68: remove smp_rendezvous() during shutdown
Approved by:    re
2007-11-06 20:13:51 +00:00
Simon L. B. Nielsen 63b5e9023c MFC 1.17:
If the INDEX file cannot be opened, print the actual filename / path
  pkg_version tried to open instead of just "INDEX" to make the actual
  problem more clear (e.g. missing INDEX-8).
2007-11-06 18:22:05 +00:00
Benjamin Close a2c1699da6 MFC:
Regen:

* Hart:         rev 652 of pcidevs.txt (2007-09-24)
* Boemler:      vendors.txt (2007-10-25)

Approved by: 	mlaier (mentor)
Approved by:	re (kensmith)
2007-11-06 04:05:38 +00:00
Julian Elischer 1e1a72cbeb MFC of un-neede singl-threading code. 2007-11-06 03:01:32 +00:00
Ariff Abdullah fe4a9f882b MFC:
Revisions:
  1.21     src/sys/dev/sound/pci/atiixp.c
  1.4      src/sys/dev/sound/pci/atiixp.h

Add support for trimmed down version of ATI SB600 AC97 audio
controller.

URL:		http://www.ipc2u.de/catalog/P/PE/36486.html
PR:		kern/117813
Submitted by:	Klaus Mayr
2007-11-06 02:08:25 +00:00
Maksim Yevmenkin e32d077004 Fix locking issue in ng_btsocket_l2cap_ctloutput()
Submitted by:	Heiko Wundram (Beenic) < wundram at beenic dot net >
Approved by:	re (kensmith)
2007-11-05 17:51:14 +00:00
Stephan Uphoff e014671c76 MFC: Remove mpte optimization from pmap_enter_quick().
There is a race with the current locking scheme and removing
	it should have no measurable performance impact.
	This fixes page faults leading to panics in pmap_enter_quick_locked()
	on amd64/i386.

Requested by: alc@
2007-11-05 16:18:00 +00:00
Poul-Henning Kamp 2770d5ea69 MFC:
bring if_sis driver up to -current
2007-11-05 12:42:26 +00:00
Poul-Henning Kamp 14e109a8a9 MFC:
bus_alloc_resources() convenience API
2007-11-05 11:49:44 +00:00
Giorgos Keramidas 04839f2e5f MFC: 1.30
mtree should use getcwd() instead of getwd().  getcwd() is safer,
  because it includes checks for the length of the buffer it uses.
2007-11-05 11:26:41 +00:00
Poul-Henning Kamp 2a613b434c MFC:
Bring if_vr (Via Rhine) driver up to -current level.
2007-11-05 11:17:39 +00:00
Pyun YongHyeon 0f864521d6 MFC miidevs rev 1.47 to RELENG_6
Add a newer RTL8211B(L) PHY.
2007-11-05 02:09:31 +00:00
Pyun YongHyeon 95c8767828 MFC rgephy.c rev 1.17-1.18, rgephyreg.h rev 1.3 to RELENG_6
rgephy.c rev 1.17, rgephyreg.h rev 1.3
  Add support for RealTek RTL8211B(L) PHY. It's based on the patch
  made by Michael Eisele and the patch was slightly modified by me.
  With this change several NVIDIA ethernet controllers(e.g. MCP61)
  works.

  RTL8211B(L) is RealTek's new gigabit PHY. The PHY has several
  features including crossover correction, polarity correction as
  well as supporting triple speed(10/100/1000bps). Data transfer
  between MAC and PHY is via RGMII for 1000baseT, MII for
  10baseT/100baseTX.
  Unfortunately, RealTek used the same model number for RTL8211B(L)
  PHY so there is no way to discriminate between RTL8211B(L) and its
  predecessors. ATM RTL8211B uses revision number 2 so checking the
  revision number seems to be only way to identify it.

rgephyreg.c rev 1.18
  Setting sc->mii_anegticks to MII_ANEGTICKS_GIGE in rgephy_attach()
  is redundant. mii_phy_add_media() already takes care of that.
2007-11-05 02:06:27 +00:00
Pyun YongHyeon 72a35cb72f MFC rgephy.c rev 1.16 to RELENG_6
o RTL8169S/8110S integrated PHY and RTL8211B are gigabit PHYs so set
    mii_anegticks to MII_ANEGTICKS_GIGE and use it. Previously it used
    to MII_ANEGTICKS which may not be enough to wait before retrying
    autonegotiation process at 1000bps.
  o Reset autonegotation timer if media option is not IFM_AUTO or we
    got a valid link.
  o Announce link loss right after it happends.
  o Autonegiation is retried every mii_anegticks seconds.
  o Report link state changes right after setting autonegotiation.
2007-11-05 02:03:09 +00:00
Kip Macy bacfd5f2d6 Add latest firmware 2007-11-05 01:29:41 +00:00
Kip Macy 5c3f81c6fc Update to reflect new firmware version 2007-11-05 00:55:52 +00:00
Doug Barton 8ed0db873b MFC version 1.13, update of IP address for l.root-servers.net
Approved by:    re (kensmith)
2007-11-04 23:59:51 +00:00
Christian S.J. Peron 40b7ee8ef7 MFC revision 1.350, move where we audit the PID to ensure that it gets
audited even if it's invalid.
2007-11-04 18:22:25 +00:00
Christian S.J. Peron 00bf04c339 MFC revision 1.13
Make sure we are incrementing read counters
2007-11-04 16:52:33 +00:00
Giorgos Keramidas bfb06b7dd2 MFC: 1.19 - mdoc warning fix: delete spurious empty line. 2007-11-04 15:24:44 +00:00
Giorgos Keramidas 2de94f729a MFC: 1.14 - mdoc warning fix: Remove a spurious .El request. 2007-11-04 15:18:40 +00:00
Giorgos Keramidas 50a7fa2d18 MFC minherit.2 -r 1.22-1.24 2007-11-04 15:12:04 +00:00
cvs2svn 7ac6ceb62e This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-11-04 15:07:29 +00:00
Giorgos Keramidas d592b4288b MFC: mdconfig.8 -r 1.37
% Add an example which shows how mdconfig(8) can be used
% to mount an ISO 9660 CD image file.
%
% PR:             112691
% Submitted by:   Warren Block, wblock at wonkity.com
2007-11-04 15:07:28 +00:00
Luigi Rizzo 1197b7029d MFC documentation for recent uscanner cleanup. 2007-11-04 03:54:16 +00:00
Luigi Rizzo d95b293da5 MFC 2007-10-05 07:26:40 UTC
Add entries for Epson multifunction scanner/printer/card readers,
with all functions supported.
More details on related topics (SANE configuration, OCR, etc.)
at http://info.iet.unipi.it/~luigi/FreeBSD/dx5050.html
2007-11-04 03:28:31 +00:00
Christian S.J. Peron 81c9a74a4b MFC revision 1.12
- Wakeup all threads sleeping on an audit pipe instead of just one
- Wakeup threads with a consistent priority
2007-11-03 17:15:27 +00:00
Christian S.J. Peron 642c48b4a7 MFC revision 1.182
Fix PID portion of stats in scenarios where the peer forks
2007-11-03 17:13:16 +00:00
Christian S.J. Peron 5cc7c8f8e2 MFC revision 1.34
Add support for processing extended (ip6) subject termids
2007-11-03 15:33:04 +00:00
Christian S.J. Peron d36303bc90 MFC lockf.c revision 1.17
MFC lockf.1 revision 1.19
2007-11-03 15:31:38 +00:00
Wilko Bulte 0cb46da0d8 Fix panic on kernel startup. This allowed me to successfully run a
6.3-PRE kernel.

Patch kindly provided by: jhb
2007-11-02 21:40:04 +00:00
John Baldwin 55bddf1e95 MFC 1.55: Fix another edge case in rman_manage_region() that could result
in the the resource list getting missorted.
2007-11-02 19:00:06 +00:00
John Baldwin 7f74526d70 MFC: Don't attach to the "IBM0057" ID. 2007-11-02 18:54:50 +00:00
David Malone 6cebae704a MFC 1.28:
Make the type of the memory used by the BPF filter unsigned, so it
matches the BPF registers (which are the only thing that is assigned
to/from BPF memory). This is a pedantic change that shouldn't change
any behaviour.

PR:		115931
Submitted by:	Matthew Luckie <[email protected]>
2007-11-02 16:27:22 +00:00
Tim Kientzle dc69c1cb1a MFC 1.18: Skip requests use a minimum of 1 byte so that the
underlying I/O framework can avoid copying and so that we
avoid a 32-bit overflow issue that was causing bsdtar to
fail when skipping uncompressed tar entries that were an
exact multiple of 4GB.
2007-11-02 08:44:11 +00:00
Alan Cox d303781bee MFC revision 1.389
Correct an error in vm_map_sync(), nee vm_map_clean(), that has existed
  since revision 1.1.  Specifically, neither traversal of the vm map checks
  whether the end of the vm map has been reached.  Consequently, the first
  traversal can wrap around and bogusly return an error.
2007-11-02 06:33:20 +00:00
John Baldwin 8367aa9b7a MFC: Reindent the read/write code of bd_realstrategy(). 2007-11-01 18:23:10 +00:00
John Baldwin 2380608845 MFC: Slightly cleanup the 'bootdev' concept on x86. 2007-11-01 18:20:37 +00:00
Pyun YongHyeon 82c2fc988f MFC e1000phy.c rev 1.19, e1000phyreg.h rev. 1.5 to RELENG_6
Add 88E1116/88E1116R PHY support code that takes the PHY out of
  power-down mode.
2007-11-01 04:27:30 +00:00
Maksim Yevmenkin 7ad8384ba9 MFC: etc/rc.d/ppp,v1.14 and etc/defaults/rc.conf,v1.319
Teach /etc/rc.d/ppp to start multiple instances of ppp.

ppp_profile variable can now contain multiple profiles.
Overrides for ppp mode and nat can go into ppp_$profile_mode
and ppp_$profile_nat variables respectively. If those are
not specified, defaults from ppp_mode and ppp_nat are used.

MFC: etc/rc.d/ppp v1.15

Teach /etc/rc.d/ppp how to start/stop individual instances
of ppp. This is an extension of previous commit.

Submitted by:	Yuri Kurenkov < y dot kurenkov at init dot ru >
Reviewed by:	mtm
Approved by:	re (kensmith)
2007-10-31 18:53:07 +00:00
John Baldwin 164ffdb28b MFC: Print IRQs in decimal rather than hex. 2007-10-31 16:17:41 +00:00
John Baldwin 51ab805c8e MFC: Actually support the new HT capability type from HT 2.00b. 2007-10-31 16:16:19 +00:00
John Baldwin 6807a82dfa MFC: Don't destroy an ACPI device_t for a PCI device if the ACPI device_t
is already attached to a driver.
2007-10-31 16:11:01 +00:00
Ed Maste 32ff1689d8 MFC to RELENG_6 dhclient RFC3442 support (the classless static route
option)

dhclient.conf 1.2

  Add a $FreeBSD$ tag missing after the original import.  Note that this
  file isn't actually installed; the one in src/etc is.

clparse.c 1.3
dhclient-script 1.15
dhclient.c 1.21
dhclient.conf 1.3
dhcp.h 1.3
tables.c 1.4

  Implement RFC3442, the Classless Static Route option.

  The original DHCP specification includes a route option but it
  supports only class-based routes.  RFC3442 adds support for
  specifying the netmask width for each static route.  A variable
  length encoding is used to minimize the size of this option.

  PR:             bin/99534
  Submitted by:   Andrey V. Elsukov <[email protected]>
  Reviewed by:    brooks

dhclient-script 1.16

  The minimum size of an RFC3442 destination descriptor is five bytes,
  so correct test to -ge 5.  Without this change an RFC3442 encoded
  default route would be ignored.
2007-10-31 14:30:20 +00:00
Poul-Henning Kamp 085c6c6e0a MFC:
recognize AMD GeodeLX companion chip CS5536
2007-10-31 13:06:17 +00:00
Yoshihiro Takahashi 85a37137c5 MFi386: revision 1.616.2.9
Don't abuse tf_err to pass the faulting virtual address to signal handlers.
2007-10-31 11:53:17 +00:00
Poul-Henning Kamp f6a001ccef MFC:
GeodeLX and advantech watchdogs
	Soekris NET5501 recognition and /dev/led/error
2007-10-31 08:42:18 +00:00
Ariff Abdullah 887c32a2f5 MFC (revision 1.74):
Remap and virtualize mixer controls for HP nx6110 with
AD1981B AC97 codec, unifying master volume control.

  * Remap "phout" --> SOUND_MIXER_VOLUME (internal speakers)
  * Virtual "vol" --> { "phout", "ogain" (headphone) }

Tested by:	Frederic Chardon
2007-10-31 04:00:07 +00:00
Ariff Abdullah ae7b0f74a4 MFC (revision 1.11):
Enable headphone jack-sense for HP nx6100 with AD1981B AC'97 codec,
automuting internal speakers.

Tested by:	Frederic Chardon
2007-10-31 03:59:24 +00:00
Andrew Thompson c934d8a831 MFC r1.180
Do not attempt to load the kernel module when checking if an interface exists.
2007-10-31 01:36:06 +00:00
John Baldwin a493995814 MFC: Revision 1.117 of route.c as well as the fixes to close a race when
trying to lookup a gateway route in rt_check().
2007-10-30 18:07:55 +00:00
John Baldwin cf1b72e373 MFC: Update copyright attribution. 2007-10-30 18:01:44 +00:00
Remko Lodder 1efb6bcf2a MFC pccarddevs v1.130
MFC pccard_cis_quirks.c v1.17

  Bring in some new Sierra Wireless drivers running under pccard.

  (AC710/AC750/AC850/A550/A555/A710/A750)

  PR:		kern/110190
  Submitted by:	Pascal Vizeli<pvizeli at yahoo dot de>
  Approved by:	imp (mentor)

  MFC After:	1 week

Approved by:	re (kensmith)
Approved by:	imp (mentor)
2007-10-30 10:21:03 +00:00
Rong-En Fan 752601f52d - Bump __FreeBSD_version for ctype ABI forward compatibility restored
Approved by:	re (kensmith)
2007-10-30 04:44:10 +00:00
Yoshihiro Takahashi 3267cd4ccc MFC: Disable the coretemp on pc98. 2007-10-30 02:56:31 +00:00
Rong-En Fan 531cdd3ca2 Restore ctype(3) ABI forward compatibility in 6.x world. This was broken
with last ctype(3) single-byte and multi-byte separation for fixing
operating on UTF-8 locale. To be specific, we introduced a new symbol in
libc. And this symbol is referred via inline functions here. So, you can
not run a binary built with this version of libc on an older system. To
restore the compatibility, make these functions built as non-inlined
form (see lib/libc/nomarco.c) and MFC rev 1.32 which drops the usage of
that symbol in question for __isctype(). As this may impact performance,
I only intend to fix in 6.x, but not 7 (not yet released) and 8 (it's HEAD).

Discussed on:	cvs-src
Requested by:	scottl
Reviewed by:	ache, delphij
Approved by:	re (kensmith)
2007-10-30 01:30:42 +00:00
Sam Leffler 0264400563 MFC: consolidate parsing of nfs root mount options in one place
and handle all options; this enables things like TCP mounts
2007-10-30 00:49:41 +00:00
Sam Leffler c594882640 unbreak build on arm: sade is like sysinstall, it cannot be built on an
architecture where libdisk is not supported
2007-10-29 22:53:45 +00:00
Peter Wemm 60efb6acb2 MFC: remove some no-longer-needed _FREEFALL_CONFIG hacks. 2007-10-29 21:47:56 +00:00
Ed Maste a308414f7b MFC to RELENG_6 part of kern_intr.c revision 1.142:
- Don't do the interrupt storm protection stuff for software interrupt
    handlers.
2007-10-29 21:10:03 +00:00
Tim Kientzle 48695d2df4 MFC 1.62: Fix reading of files that use pax 'size' attribute
to store size.  In particular, the pax 'size' attribute is required
for any file over 8G.

This seems to fix tar -cf - | tar -xf - when there are files
over 8G in the heirarchy being copied.
2007-10-29 03:29:21 +00:00
Bruce A. Mah d7e08c524c MFC: ng_ppp(4) MPSAFE. 2007-10-28 21:44:01 +00:00
Mike Makonnen 9e8d9e7f2c MFC: 1.31
Allow adding a user(s) to additional groups in batch mode as well.

	Submitted by: Eygene Ryabinkin <[email protected]>
		      (modulo minor changes)
2007-10-28 21:13:23 +00:00
Sam Leffler 96298d12e4 MFC 1.166: make dev.ath.N.ledpin have an immediate effect 2007-10-28 18:14:57 +00:00
Sam Leffler e1019d65e9 MFC from 1.113: correct reason code returned when a sta tries to
associate to an ap operating with WPA/RSN but without a WPA/RSN ie
2007-10-28 18:04:15 +00:00
Alexander Motin 82a70c43bb MFC ng_base.c rev 1.136-1.137, netgraph.h rev 1.69, ng_socket.c rev 1.83
Implement new apply callback mechanism to handle item forwarding.
When item forwarded, refence counter is incremented, when item
processed, counter decremented. When counter reaches zero,
apply handler is getting called.
It allows to report connect() call status only when it is really completed.

Reviewed by:	julian
Approved by:	re (kensmith)
2007-10-28 17:52:08 +00:00
Sam Leffler 4acc51cd9a MFC from 1.110: check xrates is not null before deref 2007-10-28 17:48:21 +00:00
Sam Leffler 385a3d1877 MFC 1.87: Close longstanding race dropping inactive stations; grab
a reference to the node before starting the work, otherwise the
node may go away before a reference is made in ieee80211_send_mgmt.
2007-10-28 17:46:39 +00:00
Marius Strobl 82e6c5e55c MFC: 1.50 (partial)
Let pcib_write_ivar() return 0 instead of ENOENT when setting
PCIB_IVAR_BUS.
2007-10-28 16:13:38 +00:00
Bruce A. Mah 3072f6264a MFC: SA-07:08.openssl, coretemp(4), em(4) 6.6.6, awk 1 May 2007
update, tzdata2007h.
2007-10-28 04:43:28 +00:00
Doug Barton 40277c3a38 MFC version 1.27:
1. Determine the location of the rndc* binaries relative to $command
2. Make the stop routine work more like rc.subr's, but try rndc first
3. Allow the rndc.key file to be owned by root OR the named_uid user
2007-10-28 00:30:18 +00:00
Darren Reed b7bab6183e Fix kernel memory leakage when policy routing is used with NAT.
(Already fixed in -HEAD)

PR:		kern/100098
Submitted by:	Daniel Larsson <[email protected]>
Reviewed by:	darrenr
Approved by:	darrenr
Obtained from:	Daniel Larsson <[email protected]>
2007-10-27 16:54:25 +00:00
Simon L. B. Nielsen 630a2cc829 MFC ata-chipset.c (1.199), ata-pci.h (1.78):
Add PCI IDs for Intel ICH9.

Tested by:	pav
2007-10-27 10:51:33 +00:00
Scott Long d4403cbdfd Update to version 3.60.04.006. This adds support newer SAS controllers. This
is a partial MFC of what went into HEAD/RELENG_7; the locking changes that
constitude the other part do not apply to RELENG_6.

Many thanks to 3Ware/AMCC for their continued support of FreeBSD.

Submitted by: Manjunath Ranganathaiah
Approved by: re
2007-10-26 23:51:46 +00:00
John Baldwin 09ea3d99df MFC: Add a -z flag to nfsstat which zeros the NFS statistics after
displaying them.
2007-10-26 22:06:55 +00:00
cvs2svn 36098e1aa6 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-10-26 20:48:19 +00:00
Ariff Abdullah 9d5dca06cf MFC: (revision 1.45)
- Gigabyte G33-S2H fixup, due to the present of multiple competing
  codecs. Codec at address 0 seems purely digital, or perhaps an HDMI
  interface. Let the driver skip it and continue scanning the codecs
  starting with address 2 (Realtek ALC885).
  * Due to possibilities of future similar cases, put enough logic
    in hdac_scan_codecs() to force codec scanning starting from
    XX address via tunable "hint.pcm.%d.codec_index".

  Reported / Tested by:	Toomas Pelberg <[email protected]>

- Trivial headphone / speaker automute fixup for Fujitsu-Siemens
  AMILO Si 1848 laptop.

  Reported / Tested by:	Ed <[email protected]>

- Trivial headphone / speaker automute fixup for Fujitsu-Siemens
  Lifebook S7020D laptop.

  Reported / Tested by: Jaromir Dvoracek <[email protected]>

- Some smart vendor trying to create interplanetary wormhole by
  screwing pci config space during their BIOS update. The side effects
  of their failure attempt includes mutilated hardware id, broken
  speaker automuting and loosing the entire analog CD connectivity,
  thus causing enough collateral damages to collapse the entire
  universe.  Move along with it.

  Please exercise extra cautious when applying BIOS updates.

  Reported / Tested by:	Pietro Cerutti <[email protected]>
                       	- assembled laptop, based on the MSI-1034
                          (662) which is now becoming MSI-034A.

- Fix no sound issues (on headphones) for Lenovo ThinkCentre A55 due
  to global automute table entry which is not applicable for
  non-laptops.

  Reported / Tested by:	Piotr Smyrak <[email protected]>

- Speaker mute control for HP DC7700 since the front headphone jack
  does not generate any interesting unsolicited signal/response.

  Reported / Tested by:	tyop @ irc.freenode.net
2007-10-26 20:48:18 +00:00
Mike Makonnen f6edd7b209 Note deprecation of rc.d/nfslocking. 2007-10-26 17:22:30 +00:00
Stefan Farfeleder 2eeac3d6a4 MFC: eval.c 1.54, sh.1 1.125
The exit status of a case statement where none of the patterns is matched
is supposed to be 0, not the status of the previous command.
2007-10-26 10:23:27 +00:00
Xin LI 117a6b0654 Bump __FreeBSDversion for wide and single byte ctype separation
MFC.  While the change does not break backward binary
compatibility, it will potentially cause programs compiled on
a new world not to run on older RELENG_6 systems, so we have
to make it possible to distungish between old and new states.
2007-10-25 19:52:22 +00:00
Mike Makonnen 924b7e775b MFC: rev. 1.14
Check if /sbin/nextboot exists before running it.

	PR:             93466
	Submitted by:   Mats Palmgren
2007-10-25 18:02:10 +00:00
Mike Makonnen d4ed546c1b MFC: rev. 1.6 and 1.7
revision 1.6
date: 2007/05/17 11:33:08;  author: mtm;  state: Exp;  lines: +3 -3
o Use the --detach option to kdc(8) instead of using the shell
  background operator '&'.

  PR: conf/102722

o No need to include $kerberos5_server_flags in $command_args as
  rc.subr(8) will take care of this.

revision 1.7
Partial backout of rev. 1.6, but instead of putting kerberos5_server_flags
back in command_args, put it where rc.subr(8) expects it: kerberos5_flags.
2007-10-25 17:20:22 +00:00
John Baldwin b8dbb99700 MFC: Clear the flags in the persistent keyboard data for ukbd0 when
init_keyboard() or kbd_register() fails.
2007-10-25 16:56:15 +00:00
Mike Makonnen a724bf1e25 Partial MFC of rev. 1.18:
The mountd daemon creates a pidfile so use it.
2007-10-25 16:48:16 +00:00
Mike Makonnen e7501ce3e8 MFC:
rc.d/var rc.d/tmp:
    Remove unnecessary subshell constructs.

    rc.d/clean rc.d/initrandom:
    Remove unnecessary semi-colon at the end of a command line.
2007-10-25 14:58:33 +00:00
Mike Makonnen d8d430037f MFC:
Eliminate global symbols starting with an underscore from rc.d
  scripts, except for mdconfig* and jail.  Such symbols are reserved
  for the rc.subr internals.  Most scripts can be fixed by just
  declaring _foo symbols as local: few scripts actually need them to
  be global.
2007-10-25 14:36:12 +00:00
Mike Makonnen 2bd211c8f6 MFC:
o Implement the stop_boot subroutine [1]. This subroutine can be used by
    scripts in rc.d to stop rc(8) from booting into multi-user mode when
    a critical or severe error condition is encountered.

  o Modify scripts in etc/rc.d that already implemented this functionality
    independently.

  o Document it.

  [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it
        to rc.subr(8). Our version differs slightly in that it takes an
        optional argument to stop the boot even if "autoboot" is not set.

  Obtained from: NetBSD
2007-10-25 14:04:19 +00:00
Rong-En Fan f216e0cd55 - The breakage of ctype(3) is fixed now. Update the entry. 2007-10-25 12:49:21 +00:00
Rong-En Fan 419cecb8e0 MFC lib/Makefile rev. 1.221
Make sure libc is installed before all other shared libraries. Other
  libraries might depend on versioned symbols from libc.

This fixes breakage introduced by ctype(3) MFC.

Discussed with:	delphij, ru
Approved by:	re (kensmith)
2007-10-25 12:45:39 +00:00
Rong-En Fan d5e01179f7 - Add a note about ctype(3) breakage. A proper fix is being working on,
should be committed soon. Before that, advice users not to upgrade
  world. Also add instructions about how to recover from it.

Discussed with:	delphij
2007-10-25 06:45:29 +00:00
Hidetoshi Shimokawa 8b5dc45661 Temporary fix for polling.
- fwohci_arcv() has a problem if the number of packets to be processed
  is limited.
- RELENG_7 and -current already have a same workaround.

Reported by: ikob
PR: kern/85434
2007-10-25 06:10:19 +00:00
Hidetoshi Shimokawa 31d6acf22d MFC: syscons.c rev. 1.453 and syscons.h rev. 1.88
Serialize output routine of terminal emulator (te_puts()) by a lock.
2007-10-25 06:09:15 +00:00
Edwin Groothuis 124ce15708 MFC of 1.11
Teach makewhatis.c to treat .SS with the same severity as .SH.

At least one port (net-mgmt/net-snmp) creates man-pages which are
in the format:

.SH NAME
The Net-SNMP agent \- The snmp agent responds to SNMP queries from manag
ement stations.

.PP
.SS "Modules"

At this moment, makewhatis determines the end of the .SH NAME section
as where it finds .SH again, but there is none here, is it "terminated"
by the .SS.

PR: bin/116706
Submitted by: edwin@
2007-10-25 03:52:42 +00:00
Doug Barton 4126b26c09 MFC revisions 1.13 of NETWORKING and 1.37 of resolv:
1. Make resolv order deterministic by REQUIRE'ing it in NETWORKING,
and having resolv REQUIRE netif.
2. Tighten up the code and fix whitespace in resolv
2007-10-24 21:36:09 +00:00
cvs2svn a2c7519ab4 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-10-24 21:19:03 +00:00
Andrew Thompson cb3ea0d009 MFC if_lagg.c r1.20, if_lagg.h r1.11
Fix two panics in lagg. Updating a pointer with shared locking and a double
  mbuf free.
2007-10-24 21:19:02 +00:00
Andrew Thompson 6973ae63bd MFC r1.181
Check for multicast destination on bpf injected packets.
2007-10-24 21:15:54 +00:00
Doug Barton 5f3882d100 Bring all files up to date with HEAD, which includes:
1. Misc. typo fixes
2. Lots of duplicate removal in the limerick file
3. Some updates to freebsd-tips

And most recently:
MFC fortunes 1.242: The original version of "The Guy in the Glass" with
proper attribution. See also http://www.theguyintheglass.com/

MFC fortunes 1.243, fortunes-o.real 1.23, and limerick 1.12:
Fix a few small typos and remove a duplicate
2007-10-24 21:09:34 +00:00
Rong-En Fan 0bb276dd2b MFC ctype(3) fix for UTF-8 locale. See original commit log for details.
PR:		116363
Reported by:	Petr Hroudny <petr.hroudny at gmail.com>
Patched by:	ache
Reviewed by:	i18n@
Approved by:	re (kensmith)
OK-ed by:	portmgr
2007-10-24 14:32:33 +00:00
John Baldwin 60c98c8a09 MFC 1.39: Grrr, a fix for the rman_set_rid() stuff I missed in my earlier
MFC.
2007-10-24 12:36:25 +00:00
Yoshihiro Takahashi e6053c83d3 MFC: Optimize for size on pc98. 2007-10-24 11:50:07 +00:00
cvs2svn e88450ee18 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-10-23 23:45:15 +00:00
Ken Smith 3a8cae4cc6 Cheat slightly - not really 6.3-STABLE yet but it's not 6.2-STABLE
either; this is close enough...
2007-10-23 23:45:14 +00:00
cvs2svn c841908172 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-10-23 23:41:25 +00:00
Ken Smith d8a7b8c9db Make people aware we're entering the FreeBSD-6.3 release cycle. 2007-10-23 23:41:24 +00:00
David E. O'Brien 4106dcc895 MFC: rev. 1.61: remove the need to forward declare statics. 2007-10-23 16:07:30 +00:00
Daichi GOTO a8e29b65d6 MFC:
This changes give nullfs correctly work with latest unionfs.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:38:32 +00:00
Daichi GOTO f0f8beeb6e MFC:
Added whiteout behavior option. ``-o whiteout=always'' is default mode
(it is established practice) and ``-o whiteout=whenneeded'' is less
disk-space using mode especially for resource restricted environments
like embedded environments. (Contributed by Ed Schouten. Thanks)

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:37:10 +00:00
Daichi GOTO eb8fd064ff MFC:
Fixed un-vrele issue of upper layer root vnode of  unionfs.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:34:58 +00:00
Daichi GOTO 32600fbff3 MFC:
Added NULL check code pointed out by Coverity. (via Stanislav
Sedov. Thanks)

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:33:43 +00:00
Daichi GOTO 9bc8e11db6 MFC:
- It has been become MPSAFE.
  - Fixed lock panic issue under MPSAFE.
  - Fixed panic issue whenever it locks vnode with reclaim.
  - Fixed lock implementations not conforming to vnode_if.src style.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:32:17 +00:00
Daichi GOTO ee14645de5 MFC:
Fixed vnode unlock/vrele untreated issues whenever errors have
occurred during some treatments.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:30:13 +00:00
Daichi GOTO 4cd5cbd44b MFC:
- Added support for vfs_cache on unionfs. As a result, you can use
    applications that use procfs on unionfs.
  - Removed unionfs internal cache mechanism because it has
    vfs_cache support instead. As a result, it just simplified code of
    unionfs.
  - Fixed kern/111262 issue.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:28:22 +00:00
Daichi GOTO dca54c6b1c MFC:
Added treatments to prevent readdir infinity loop using with Linux binary
compatibility feature.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:26:37 +00:00
Daichi GOTO a6a3150058 MFC:
Changed it frees unneeded memory ASAP.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:24:37 +00:00
Daichi GOTO 0c1dcb4f57 MFC:
Improved access permission check treatments.

Submitted by:   Masanori Ozawa <[email protected]> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:22:48 +00:00
Julian Elischer 260b027e19 holy shit! that was checked out in RELENG_6.. back it out and put it in the right branch! 2007-10-21 04:22:46 +00:00
Julian Elischer 7c47022d93 Note the renaming of kthread_xxx to kproc_xxx in 800002 2007-10-21 04:17:29 +00:00
David E. O'Brien 9c9c02f297 MFC: Remove sparc64 & PowerPC MD 'reboot' and 'halt' commands and make them
MI.  'reboot' is an alias for 'reset'.
2007-10-19 16:48:43 +00:00
Mike Makonnen 4054b81d57 MFC:
rmuser.8 rev. 1.24,1.24 : Typo fixes.

  adduser.8 rev. 1.57-1.59: Typo and markup fixes
            rev. 1.56:
            Add adding_user.8 to SEE ALSO, note that usernames may
            contain any character but not being with a hyphen,
            similar to adding_user.8.

            PR:     35732
2007-10-19 08:16:30 +00:00
Mike Makonnen ab3721d0c7 MFC:
rev. 1.10
	The POP daemon's temporary mail file has a leading dot ('.').
	This was lost in the shell script rewrite of the rmuser command.
2007-10-19 07:55:52 +00:00
Tim Kientzle db44523dca MFC: archive_write_set_format_cpio.c 1.12
MFC: archive_write_set_format_cpio_newc.c 1.2

Non-regular files should have zero-length bodies.  libarchive
flags this to clients by updating the entry description when
it writes the header.
2007-10-19 03:50:48 +00:00
John Baldwin 90ce1b7819 MFC: Allow recursion on the 'zones' internal UMA zone. 2007-10-18 18:45:53 +00:00
Edwin Groothuis 84fa57ba30 MFC of src/share/zoneinfo
MFV: tzdata2007h
2007-10-18 13:05:49 +00:00
Tim Kientzle e806808c40 MFC 1.15: Return EOF immediately for non-regular files, don't
return an empty block first.  In particular, this fixes a bogus
warning from bsdtar when restoring directories from ZIP archives.

Also, correct the return values at EOF to include the correct
offset.
2007-10-18 05:19:44 +00:00
Olivier Houchard 70a7b46e66 MFC:
arm/xscale/i80321/i80321_timer.c 1.8
arm/xscale/i80321/std.iq31244 rev 1.3
conf/options.arm rev 1.6
The IQ80321 clock is 200MHz, but the IQ31244 is 198MHz, so add a kernel option
to override the frequency
2007-10-17 23:29:02 +00:00
John Baldwin ea33f2b65f MFC: Fix for a race where out of order loading of NFS attrs into the
nfsnode could lead to attrs being stale.
2007-10-17 16:07:10 +00:00
Olivier Houchard 43eb06d2a1 Oops. Remove a debug printf.
Spotted out by:	delphij
2007-10-16 21:32:19 +00:00
Olivier Houchard 1d5f266e83 MFC the reimplementation of ARM_USE_SMALL_ALLOC. 2007-10-16 21:24:44 +00:00
Olivier Houchard d3de44af9d MFC rev 1.33/
date: 2007/06/10 12:33:01;  author: cognet;  state: Exp;  lines: +2 -1
Initialize the dma tag's bounce_zone to NULL if we didn't allocate it.
2007-10-16 21:13:59 +00:00
Olivier Houchard 3125ed4903 Use 16 - 1 instead of 16 as the align argument of uma_zcreate(), as it's
what is expected.
2007-10-16 21:10:26 +00:00
Olivier Houchard 7c96f9fe21 MFC rev 1.32:
date: 2007/06/07 21:51:09;  author: cognet;  state: Exp;  lines: +3 -4
There's no nobounce_dmamap on arm.
2007-10-16 19:59:50 +00:00
Olivier Houchard 9e7fbaf90b Make td_sqqueue explicitely signed, as we compare it with >= 0. On arm,
char defaults to unsigned.
2007-10-16 19:57:36 +00:00
Olivier Houchard edee96c68b MFC rev 1.78:
revision 1.78
date: 2007/02/05 10:33:39;  author: kevlo;  state: Exp;  lines: +0 -1
<sys/sx.h> is unneeded.
2007-10-16 19:52:11 +00:00
Xin LI 3f7940089a MFC: less v409 2007-10-15 17:01:30 +00:00
Stephane E. Potvin 7c8b58621b MFC:
- Fix a small bit slip in PCIM_PCAP_D[0-2]PME defines.
- Add the definitions for D3PME_COLD and D3PME_HOT capabilities.

Approved by:	njl (mentor)
2007-10-15 02:43:39 +00:00
Maxim Konovalov a3c9fffee7 MFC rev.1.108: fix the issue when "ipfw(8) show" produces "not" twice. 2007-10-14 08:58:01 +00:00
John Baldwin e689b2bd8b MFC: Use the correct pid when checking to see whether or not the
/proc/<pid> directory is visible to the current thread.
2007-10-12 19:38:39 +00:00
Konstantin Belousov b718eae323 MFC rev. 1.35:
Deny attempt to malloc unbounded amount of the memory.
Convert malloc()/bzero() to malloc(M_ZERO).
2007-10-12 10:24:21 +00:00
Jack F Vogel c1a57c1289 Fix the duplicate include stanza.
PR: 117125
2007-10-12 07:49:33 +00:00
Alexander Motin 53ae53f27b MFC rev. 1.18-1.21
- Fix thread safety.
 - Make some optimizations.
2007-10-12 05:09:13 +00:00
Jung-uk Kim e4b94e3e7f Fix SUBDIR expansion and reduce diff from HEAD. 2007-10-11 23:47:28 +00:00
Andrew Thompson 6791f8abf1 Sync to HEAD. 2007-10-11 20:29:41 +00:00
Andrew Thompson e1520c7d91 MFC if_bridge.c r1.103, if_bridge.4 r1.29
Allow additional packet filtering on the physical interface for locally
  destined packets, disabled by default.

PR:             kern/116051
Submitted by:   Eygene Ryabinkin
2007-10-11 20:28:53 +00:00
Andrew Thompson 499b6867e2 MFC r1.17
Use the -n flag on ifconfig so that dhclient does not cause the kernel module
  to be reloaded when the interface is torn down.
2007-10-11 20:23:33 +00:00
Andrew Thompson 4de2a7d7e2 MFC ifconfig.8 r1.138, ifconfig.c r1.131
Add the -n flag for disabling automatic module loading
2007-10-11 20:20:39 +00:00
Xin LI d902e5007b Note less v408 MFC. 2007-10-11 18:54:35 +00:00
Xin LI e4c48b6e03 MFC: less v408. 2007-10-11 18:51:44 +00:00
Jack F Vogel bc99cacf12 Small change, this will allow this driver version to be used
on 6.2 RELEASE, you simply won't get MSI/X support.
2007-10-11 17:58:28 +00:00
Bernd Walter 47a521cb97 MFC: rev 1.6
declare struct tftphdr and embedded union as beeing packed, which is
required for arm.
2007-10-11 17:32:20 +00:00
David E. O'Brien a7dd3cad89 MFC: bwk's 01-May-2007 release 2007-10-10 00:22:15 +00:00
Edwin Groothuis c4754f8eac Whitespace chase after bad copy+paste.
Noticed by: John Baldwin
2007-10-10 00:09:08 +00:00
David E. O'Brien c9ce363ec5 Stop applying patches at build time - instead apply directly to the files.
I've seen this practice cause issues for vendors using our sources...
2007-10-09 15:28:15 +00:00
Edwin Groothuis ce126fdf7b MFC:
Describe the process of importing new zoneinfo data and updating
it into CVS.

PR:             conf/116901
2007-10-09 02:37:21 +00:00
John Baldwin 4a2bcf4dbd MFC some fixes to IPI_PREEMPT:
- Use the proper bitmask tests for an IPI in the bitmap handler on amd64
  and i386.
- Don't test against idle priority, just the idle thread in the IPI_PREEMPT
  handlers.
2007-10-08 21:51:01 +00:00
Jack F Vogel d00b6d88fd Last delta confused shared code API in the fix, this
corrects it.
2007-10-07 03:11:31 +00:00
Marius Strobl a5726e253f MFC: 1.15; 1.16
- Remove unused softc.
- Use the actual clock frequency of the PCI bus instead of assuming
  33MHz for calculating the latency timer values for its children.
  Inspired by NetBSD doing the same and Linux as well as OpenSolaris
  using a similar approach.
  While at it rename a variable and change its type to be more
  appropriate fuer values of PCI properties so the variable can be
  more easily reused.
- Initialize the cache line size register of PCI devices to a
  legal value; the cache line size is limited to 64 bytes by the
  Fireplane/Safari, JBus and UPA interconnection busses. Setting
  it to an unsupported value caused bad performance at least with
  GEM as it causes them to not do cache line bursts and to not
  issue cache line commands on the PCI bus.
2007-10-06 20:50:18 +00:00
Marius Strobl 2a891b02e9 - Adhere style(9) (don't use function calls in initializers, use uintXX_t
instead of u_intXX_t).
- Use FBSDID.
2007-10-06 20:34:14 +00:00
Jack F Vogel 2f0b5d8108 Couple corrections on the MFC, first POLLING had a 7.0
interface left in, thanks to those that caught this.

Second, there was a 82571 fix in the last delta that
got missed, it has now been converted and added.
2007-10-06 19:36:35 +00:00
Sean Farley 2fd643fa9e MFC:
Add fts_set_clientptr(3), fts_get_clientptr(3) and fts_get_stream(3) man
page links to fts(3).

    src/lib/libc/gen/Makefile.inc: rev 1.127 -> 1.128

Approved by:	wes
2007-10-06 03:15:15 +00:00
Jack F Vogel 27325aab91 MFC of Intel driver version 6.6.6
This adds our new modular shared code, support for MSI/MSIX, hardware
support for newer adapters, and a variety of bug fixes.
2007-10-05 22:49:08 +00:00
John Baldwin 07727acc89 MFC: Handle CPUs with APIC IDs higher than 32. 2007-10-05 15:22:37 +00:00
David E. O'Brien 725d06ff92 MFC: Use uintmax_t to pass around 64-bit quantities, including to printf().
Using uintmax_t is also robust to further extensions in both the C language
and the bitwidth of kernel counters.
2007-10-04 18:27:45 +00:00
Pyun YongHyeon f31fe53f8b MFC if_re.c rev. 1.95 to RELENG_6.
Make sure to take PHY out of power down mode in device attach.
  Without this the PHY wouldn't work as expected. This should fix
  dual-boot Windows XP machine where RealTek Windows drivers put the
  PHY in power down mode during shutdown. The magic PHY register
  accesses come from RealTek driver. No datasheets mention the magic
  PHY registers.
  In general, the PHY wakeup code should go into PHY driver. However it
  seems that it only apply to RTL8169S single chip and it would be
  another hack if we have rgephy(4) check what parent driver/chip model
  is attached.
2007-10-04 11:28:25 +00:00
Ruslan Ermilov 6cf200efdc MFC: Updated mdoc (FreeBSD 6.2 added, FreeBSD 5.5 and 7.0 documented,
better names for System V releases [1]).

PR:		docs/68845 [1]
2007-10-04 04:56:41 +00:00
Simon L. B. Nielsen 1560e66d53 Correct a buffer overflow in OpenSSL SSL_get_shared_ciphers(). 2007-10-03 21:39:43 +00:00
John Baldwin aaffe9d47c MFC: Always use an exclusive lock on the leaf vnode during an open() when
shared lookups are enabled.  This closes a few races including a race where
concurrent opens of a fifo could result in different v_fifoinfo structures
in different threads.
2007-10-03 21:06:05 +00:00
John Baldwin 26d6b5e019 MFC: Use rman_set_rid() to save the rid in new resources when they are
allocated.  This makes 'bus_free_resource()' safe to use in 6.x and also
fixes an issue with the recent PCI MSI code MFCs that caused them to never
update the MSI config registers.

Reported by:	gallatin (MSI breakage)
2007-10-03 20:41:35 +00:00
David E. O'Brien 82a1909e24 MFC: 2006/07/28 commit achieving WARNS=3
Also fix nlist 'nl' should be terminated by a NULL entry.
2007-10-03 19:56:17 +00:00
David E. O'Brien 4216787022 MFC: rev. 1.8's layout changes. 2007-10-03 19:28:57 +00:00
Andrew Gallatin a4f228a92d MFC: sync the mxge driver with HEAD, modulo some slight differences
due to RELENG_6 limitations.
	(no TSO in RELENG_6, no VLAN tag insertion/removal due to
         vlan differences, etc).
2007-10-02 15:59:54 +00:00
Ruslan Ermilov 60d4ad387f MFC: Added FreeBSD/arm and FreeBSD 6.3. FreeBSD 5.5 and 7.0 are official. 2007-10-02 08:38:34 +00:00
Ruslan Ermilov 26826127a7 MFC:
- New Darwin, FreeBSD, and NetBSD versions.
- DragonFly support including the new .Dx macro.
- New .St strings: -isoC-amd1, -isoC-tcor1, -isoC-tcor2, and -ieee1275-94.
2007-10-02 08:17:29 +00:00
Ruslan Ermilov 06db0f6a39 MFC: 1.32: If not compiled for debugging, redirect std{in,out,err}
to /dev/null before becoming a daemon.
2007-10-02 05:44:53 +00:00
Mike Makonnen 81fee77b5b Partial MFC: rev. 1.6
o Use the --detach option to kdc(8) instead of using the shell
	  background operator '&'.

	  PR: conf/102722
2007-10-01 23:37:39 +00:00
John Baldwin ae83f9ed72 MFC: Allow the ia32 resource limits to be set via loader tunables. 2007-10-01 20:13:49 +00:00
Marius Strobl 5eacf6318f MFC: sys/conf/files.sparc64 1.83; sys/conf/options.sparc64 1.24;
sys/dev/uart/uart_kbd_sun.c 1.10, 1.11 (partial), 1.13;
     sys/dev/uart/uart_kbd_sun.h 1.3; sys/sparc64/conf/NOTES 1.30

- In sunkbd_probe_keyboard() don't bother to determine the keyboard layout
  as we have no use for that info. Instead let this function return the
  keyboard ID and verify at its invocation in sunkbd_configure() that we're
  talking to a Sun type 4/5/6 keyboard, i.e. a keyboard supported by this
  driver.
- Add an option SUNKBD_EMULATE_ATKBD whose code is based on the respective
  code in ukbd(4) and like UKBD_EMULATE_ATSCANCODE causes this driver to
  emit AT keyboard/KB_101 compatible scan codes in K_RAW mode as assumed by
  kbdmux(4). Unlike UKBD_EMULATE_ATSCANCODE, SUNKBD_EMULATE_ATKBD also
  triggers the use of AT keyboard maps and thus allows to use the map files
  in share/syscons/keymaps with this driver at the cost of an additional
  translation (in ukbd(4) this just is the way of operation).
- Implement an option SUNKBD_DFLT_KEYMAP, which like the equivalent options
  of the other keyboard drivers allows to specify the default in-kernel
  keyboard map. For obvious reasons this made to only work when also using
  SUNKBD_EMULATE_ATKBD.
- Implement sunkbd_check(), sunkbd_check_char() and sunkbd_clear_state(),
  which are also required for interoperability with kbdmux(4).
- Implement K_CODE mode and FreeBSD keypad compose.
- As a minor hack define KBD_DFLT_KEYMAP also in the !SUNKBD_EMULATE_ATKBD
  case so we can obtain fkey_tab from <dev/kbd/kbdtables.h> rather than
  having to duplicate it and #ifdef some more code.
- Don't use the TX-buffer for writing the two command bytes for setting the
  keyboard LEDs as this consequently requires a hardware FIFO that is at
  least two bytes in depth, which the NMOS-variant of the Zilog SCCs doesn't
  have. Thus use an inlined version of uart_putc() to consecutively write
  the command bytes (a cleaner approach would be to do this via the soft
  interrupt handler but that variant wouldn't work while in ddb(4)). [1]
- Fix some minor style(9) bugs.

PR:		90316 [1]
2007-09-30 19:33:19 +00:00
Joe Marcus Clarke b4b21631b8 Fix a bug that will cause a process that calls the VT_WAITACTIVE ioctl
to become unkillable when that process is sent a termination signal.  The
process will sit in waitvt looping in the kernel, and chewing up all
available CPU until the system is rebooted.

Note: this is not an MFC as this code no longer exists in HEAD.  However,
this is based on the same syscons fix which was just MFC'd after one week
in HEAD.

Reviewed by:	bde
2007-09-30 06:22:13 +00:00
Joe Marcus Clarke b432106293 MFC: rev 1.452
Fix a bug that will cause a process that calls the VT_WAITACTIVE ioctl
to become unkillable when that process is sent a termination signal.  The
process will sit in waitvt looping in the kernel, and chewing up all
available CPU until the system is rebooted.

Submitted by:	Jilles Tjoelker <[email protected]>
Reviewed by:	bde
2007-09-30 06:16:20 +00:00
Rui Paulo 224bdf00d4 MFC r 1.67:
date: 2007/08/30 21:18:42;  author: njl;  state: Exp;  lines: +32 -7
  Evaluate _OSC on boot to indicate our OS capabilities to ACPI.  This is
  needed at least to convince the BIOS to give us access to CPU freq
  control on MacBooks.

Approved by:    njl (mentor)
2007-09-29 23:13:38 +00:00
Maxim Konovalov 12fa2a3225 MFC revs. 1.38, 1.39: need to reboot the system after tuning
softupdates on the root file system.
2007-09-29 16:31:44 +00:00
John Baldwin 08a69d1bae Fix another nit in an earlier MFC so that we properly warn if we can't
read the multicast routing stats from a live kernel via sysctl(8).
2007-09-28 19:45:18 +00:00
John Baldwin 8bdf61cfb5 Correct a nit in earlier MFC: the carp stats routine does use sysctl. 2007-09-28 19:38:40 +00:00
Maxim Konovalov be9ae416eb o Update tcp sendcookie stats. HEAD has a different code and does
not have this bug.

Submitted by:	Igor Sysoev
Reviewed by:	silby
2007-09-28 17:39:45 +00:00
Dag-Erling Smørgrav e0f0a0d944 Add missing coretemp entry, unbreak LINT and tinderbox 2007-09-28 17:24:53 +00:00
Gabor Kovesdan b44d69bc2e MFC rev1.5:
- Fix a declaration example
2007-09-28 11:10:37 +00:00
Gabor Kovesdan 3483f2d895 MFC rev1.9:
- Remove references to unexisting man pages
2007-09-28 11:09:11 +00:00
Dag-Erling Smørgrav d4959ed6ca MFC: coretemp(4) 2007-09-28 08:54:41 +00:00
Dag-Erling Smørgrav 7b421635d8 MFC: ICH[678] support, resource allocation fixes 2007-09-28 08:46:10 +00:00
Dag-Erling Smørgrav 4034e6bd0f MFC: whitespace changes from HEAD 2007-09-28 08:43:54 +00:00
Dag-Erling Smørgrav 3f4b8f7c14 MFC: synch with HEAD, minus whitespace changes. 2007-09-28 08:42:04 +00:00
Dag-Erling Smørgrav 28bf331f38 MFC: remove confusing boot message, add feature bits 2007-09-28 08:26:16 +00:00
Alexander Motin 53c2ca8d88 MFC rev. 1.129,1.132
Fix misspellings in comments.
2007-09-28 07:33:01 +00:00
Christian Brueffer a86dc7f45a MFC: rev. 1.8
Fix typo.
2007-09-28 07:10:36 +00:00
Dag-Erling Smørgrav c24ff0ea67 MFC: (1.6) childerr needs to be volatile.
PR:		bin/85830
2007-09-28 07:04:35 +00:00
Dag-Erling Smørgrav 748ae4b1c2 MFC: Synch with HEAD. 2007-09-28 06:35:14 +00:00
Dag-Erling Smørgrav 74f0ffcff1 MFC: (1.5) use sprintf() rather than (unportable) strlcpy().
Also bobbit some unused variables.
2007-09-28 06:34:22 +00:00
JINMEI Tatuya 39ed3f08e6 MFC:
ensure the head entry of addrinfo chain has non-NULL ai_canonname to be
compliant with RFC3493.

PR: standards/114910
Approved by:   ume (mentor)
lib/libc/net/getaddrinfo.c:	1.86
2007-09-28 06:23:03 +00:00
Bruce A. Mah dfa7a17488 MFC: camcontrol(8) readcap. 2007-09-28 05:08:34 +00:00
Edwin Groothuis 122528a7c5 MFCs
Dutch calendar
    More dates: Sint Maarten, Dierendag, Trinitatis
    Fix spelling: Carnaval
    Add more of the Royal Family.

Croation calendars:
    Update to calendar/calendars/hr_HR.ISO_8859-2/calendar.praznici
    with fixes and new dates.

PR:             conf/26658
Submitted by:   Josip Rodin <[email protected]>
2007-09-28 02:51:26 +00:00
Edwin Groothuis 76dac94729 MFC: Fix man(1) to allow .so to reference a compressed file
Original PR description:

        man(1) can't handle compressed included files.

        Some ports will install with compressed manpages. man handles
        this by looking for the .gz version of a man source file.
        It is also common to include other files with the .so
        directive where commands or functions share a man page.
        Traditionally ports have had to handle this by either not
        compressing the manpages, or using the _MLINKS macro in the
        port makefile to create symlinks to the actual source file,
        rather than using .so versions. Notably, the current version
        of Xorg port breaks. See ports/113096 and ports/115845.

PR:             bin/115850
Submitted by:   Callum Gibson <[email protected]>
2007-09-28 02:31:57 +00:00
John Baldwin c29b0d0043 Remove the *_queue() variants of various sleepq and turnstile functions
and always require the queue to be specified to reduce diffs with HEAD.
These APIs are internal APIs only used to implement higher level primitives
such as locks and condition variables.

Approved by:	alfred
2007-09-27 20:24:56 +00:00
John Baldwin 468c7d557c MFC some comment updates to account for multi-queue support missed earlier
as well as a few other changes (whitespace, style, etc.) to reduce diffs
with HEAD.
2007-09-27 18:44:16 +00:00
John Baldwin 1bbb3b5b34 - Remove some debugging nits in the MFC of rwlocks that looked for cases
where a reader blocked on a lock with no owner and just assert that it
  never happens like HEAD.
- Actually set td->td_tsqueue to the sub-queue of a turnstile that a
  thread is actually enqueued to.  Otherwise, the kernel would always
  think that threads were on the queue for exclusive (write) waiters
  (queue 0).  Thus, if the priority of a thread waiting on a read lock
  was adjusted while it was waiting it could result in corrupting the
  queue of waiting threads.
2007-09-27 18:39:18 +00:00
John Baldwin f77ba941de MFC 1.167: Use a UMA zone to handle the turnstile objects rather than
malloc(9).
2007-09-27 18:23:44 +00:00
John Baldwin 247604e106 Make td_sqqueue a char and move it into a pre-existing "hole" from
alignment padding to restore the ABI of 'struct thread' in 6.x.
2007-09-27 18:12:25 +00:00
John Baldwin ed9bbe2b4e - Restore the 'show sleepq' DDB command.
- Trim some extra includes.
2007-09-27 18:10:40 +00:00
John Baldwin 479a0431dc Use lock_init() and lock_destroy(). 2007-09-27 18:08:09 +00:00
John Baldwin f03c3e72f9 A few tweaks to reduce diffs with HEAD including using lock_init() and
lock_destroy() and adding a missing #include so that NO_ADAPTIVE_RWLOCKS
is honored.
2007-09-27 18:06:49 +00:00
Ruslan Ermilov 4c47777065 MFC: rev. 1.23: Fix the CPU usage display. 2007-09-27 06:35:27 +00:00
Tim Kientzle 6a14a70768 MFC spelling correction. 2007-09-27 03:47:26 +00:00
Tim Kientzle 3dc9a9c808 MFC 1.17: Make return values from archive_write_data()
consistent whether you're writing to an archive or to disk.
2007-09-27 03:45:24 +00:00
Tim Kientzle b997a48b84 MFC 1.77: Support --posix as a synonym for --format=pax, for
GNU tar compatibility.
2007-09-27 03:42:59 +00:00
Alexander Motin 0c6c1a4da9 MFC rev. 1.82-1.84
Fix thread unsafe usage of global pkt_hdr variable.
Optimize ether and debug hooks determination.
Remove some dead code.
2007-09-26 19:15:14 +00:00
John Baldwin 61671beee3 MFC: Properly look for neighbor USB 1.x controllers and fix a memory leak. 2007-09-26 17:33:18 +00:00
Mike Makonnen da4ebb1554 MFC:
Revision  Path
	  1.82      src/etc/rc.d/Makefile
	  1.16      src/etc/rc.d/lockd
	  1.17      src/etc/rc.d/lockd
	  1.18      src/etc/rc.d/lockd
	  1.15      src/etc/rc.d/nfslocking
	  1.16      src/etc/rc.d/statd
	  1.17      src/etc/rc.d/statd

	Split rc.d/nfslocking into two separate scripts: rc.d/lockd
	and rc.d/statd. Keep rc.d/nfslocking for POLA reasons but do
	not run it during system startup.

	PR: conf/107316

	  Revision  Path
	  1.14      src/etc/rc.d/nfslocking

	The precmd routine does not need to check whether the comman
	should be "forced". If some pre-condition is not met, it should
	fail as it normally does and rc.subr(8) will make the appropriate
	decision. Incidentally, the previous behaviour had a bug where
	the "force" flag was respected only when checking rc.conf(5) knobs.
	The flag was ignored when verifying the rpcbind(8) dependency.
2007-09-26 11:02:28 +00:00
Bjoern A. Zeeb 050ce2a155 MFC rev. 1.147
Fix a DIV0 in case a large value for fs_avgfilesize or fs_avgfpdir
  is given (with newfs or tunefs) and dirsize overflows.

  In case dirsize is <= 0 because of an overflow set maxcontigdirs
  to 0 so it will be 1 later. This is what would happen for large
  fs_avgfilesize. [1]

  Submitted by:                   pjd [1]
2007-09-24 13:39:06 +00:00
Sean Farley 238e714139 MFC:
Sync usage() with reality.

    src/usr.bin/locate/locate/locate.c: rev 1.16 -> 1.17

Approved by:	wes
2007-09-22 02:46:13 +00:00
David E. O'Brien 9f70dec3de MFC: flopen(3), expand_number(3), kld_isloaded(3) 2007-09-21 21:23:04 +00:00
David E. O'Brien b3fbf2c8e8 MFC: rev. 1.4: consume flopen(3). 2007-09-21 17:27:48 +00:00
David E. O'Brien 4b56777f49 MFC: consume kld_isloaded(3). 2007-09-21 17:25:03 +00:00
Doug Ambrisko c3550a9deb MFC: 1.51
Fix an incorrect PCI device id.  The current value conflicts with
  the mfi(4) LSI MegaSAS RAID card.  Looking at the Linux driver for the
  mpt(4) it should be 0x0062 and not 0x0060.  Tested with an mfi card
  of this device id.

Reviewed by:	scottl
2007-09-21 16:43:31 +00:00
David E. O'Brien d3900b9f27 Bump for libutil(3) MFC's (and any others around this time). 2007-09-21 15:33:38 +00:00
David E. O'Brien 813a794254 MFC: kld(3) 2007-09-21 14:52:31 +00:00
David E. O'Brien 3fa3399bbb style.Makefile(9) 2007-09-21 14:49:38 +00:00
David E. O'Brien a648e5be89 MFC: flopen(3) 2007-09-21 14:41:55 +00:00
David E. O'Brien e711086717 Logically, this now first appeared in FreeBSD 6.3. 2007-09-21 14:39:46 +00:00
David E. O'Brien 91f6c4e4fb MFC: refer to expand_number(3) and markup fixes 2007-09-21 14:35:34 +00:00
David E. O'Brien fc7bb8b9c0 MFC: expand_number(3) 2007-09-21 14:35:02 +00:00
Alexander Leidinger 1607c18075 Disable the module building of the linux bits on alpha and remove them
from the corresponding NOTES. [1]

There's no corresponding linux_base in the Ports Collection since years,
and no linux distribution which is up-to-date and suitable (security,
widespread, ...) for us. The only complain regarding linux & alpha
we got so far is that the linuxulator doesn't build anymore. This
complaint came from wilko -- the alhpa-part of re@ -- only. As the
alpha platform is dead (no support from the manufacturer / linux
distributions) and deprecated (removed in -current) it was decided to
disable the linux bits from the build instead of trying to fix the
problems on alpha.

The alpha parts in the source are not removed so far, in case there are
1-2 people which actually still make use of this and are interested to
use the linuxulator (and fix the problems). Additionally this prevents
regressions on i386/amd64 when removing the alpha bits in shared code
(the people which care about those code parts don't have enough time ATM
to do extensive testing). This decission may be revisited at a later
point in time.

Discussed with:	wilko [1]
2007-09-20 06:33:26 +00:00
Kirill Ponomarev ce9dd5a53a MFC: extract.c:1.45
date: 2007/08/23 13:05:10;  author: krion;  state: Exp;  lines: +1 -1
  Fix pkg_add behaviour to preserve pathnames.

  PR:             bin/93915 bin/109134
  Submitted by:   Jason Heiss <[email protected]>, Constantin Stefanov<[email protected]>
  Approved by:    re@ (kensmith)
  MFC after:      7 days
2007-09-19 08:41:27 +00:00
Kenneth D. Merry 052394d911 MFC:
camcontrol/Makefile:	rev 1.17
camcontrol.8:		rev 1.44
camcontrol.c:		rev 1.58

Add SCSI READ CAPACITY support to camcontrol.  The new 'readcap' subcommand
will automatically issue the 16 byte verison of read capacity if the device
in question is larger than 2TB.

There are also a number of output options here (last block, number of
blocks, human readable) that should meet most needs, and also aid in
scripting.
2007-09-18 01:26:28 +00:00
Julian Elischer ef770396dc MFC in revs 192-194 of the man page.
The actual code has been in for a while. (Allow tablearg to be used with 'fwd'
and allow it to take an IP address as a value).
2007-09-17 23:59:54 +00:00
Julian Elischer fc0f64bf61 MFC:
remove test that fails POLA.
2007-09-17 17:50:49 +00:00
David E. O'Brien d94c674851 Make life with "makeoptions INSTALL_DEBUG" easier. 2007-09-17 16:19:02 +00:00
Alexander Motin 371da212e4 MFC rev. 1.70
Fix typo which brokes VJ decompression
when VJC negotiated in only one direction.
2007-09-16 13:33:32 +00:00
Daniel Gerzo ceca0dbfd2 MFC Revision 1.61:
- Sweep the boot(8) man page after addition of boot.config(5).
2007-09-16 10:53:04 +00:00
Daniel Gerzo e641e5d77a MFC the boot.config.5 manual page. 2007-09-16 10:47:52 +00:00
David E. O'Brien 20e438ea02 Enable 'LD_LIBRARY_PATH=/foo:/bar ld -lfooz'
PR:	96481
2007-09-16 03:41:47 +00:00
Marius Strobl 67f8112611 MFC: am7990.c 1.4; am79900.c 1.4; if_le_ledma.c 1.3; if_le_pci.c 1.5, 1.6;
lance.c 1.3, 1.4; lancevar.h 1.3

- Use our own callout instead of if_slowtimo() for driving lance_watchdog()
  in order to avoid races accessing if_timer.
- Use bus_get_dma_tag() to obtain the parent DMA tag so le(4) works on
  platforms requiring this.
- Remove BUS_DMA_WAITOK from bus_dma_tag_create() invocations as it's
  no valid flag there.
- For setting the port PCnet chips must be powered down or stopped and
  unlike documented may not take effect without an initialization. So
  don't invoke (*sc_mediachange) directly in lance_mediachange() but
  go through lance_init_locked(). It's suboptimal to impose this for
  all chips but given that besides the affected PCI bus front-end the
  only other front-end which supports media selection is and likely
  ever will be the 'ledma' front-end I see not enough reason to break
  the in-driver API for this (though one could argue both ways here).
2007-09-15 10:56:00 +00:00
Marius Strobl b78c2d28fb MFC: if_gem.c 1.37, 1.39, 1.40, 1.43; if_gemvar.h 1.12
- Fix -Wundef warnings found when compiling i386 LINT, GENERIC and
  custom kernels.
- Use bus_get_dma_tag() so gem(4) works on platforms requiring it.
- Use the gem_tick() callout instead of if_slowtimo() for driving
  gem_watchdog() in order to avoid races accessing if_timer.
  While at it relax the watchdog a bit by reloading it in gem_tint()
  if there are still packets enqueued.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
- Fix inconsistencies in prototypes.
2007-09-15 10:49:57 +00:00
Marius Strobl 4922f65f98 MFC: if_hme.c 1.50, 1.51, 1.52, 1.53; if_hmevar.h 1.10
o Revised MII support:
  - In hme_stop() mask all interrupts.
  - In hme_eint() print MIF register contents on MIF interrupts.
  - In hme_mifinit() don't bother to preserve the previous MIF config.
    This was mainly done in order to preserve the PHY select bit (external
    or internal PHY) but which only needs to be set as appropriate when
    reading from or writing to the desired PHY in hme_mii_{read,write}reg().
    Similarly don't bother to set the PHY select bit in hme_mii_statchg().
  - In hme_mii_{read,write}reg() ignore requests to PHYs other than the
    external and internal PHY one.
  - Move enabling/disabling the MII drivers of the external transceiver from
    hme_init_locked() and based on the sheer presence of an external one
    to hme_mifinit() and based on the currently selected media, defaulting
    to the internal transceiver when the media hasn't been set, yet.
    Invoke hme_mifinit() from the newly added hme_mediachange_locked() so
    the setting of the MII drivers is updated when changing media.
    These changes keep the MII bus from wedging (which manifests in the HME
    and the PHYs no longer being able to communicate with each other) when
    the PHY device drivers isolate the unused PHY in two-PHY configurations
    as present in f.e. Netra t1 100 while changing media, either from
    hme_init_locked() (see also below) or via ifconfig(8) (not with the
    RELENG_6 ifconfig(8) and miibus(4) though). They also allow for using
    both transceivers/PHYs.
  - In the newly added hme_mediachange_locked() also reset the PHYs in two-
    PHY configurations before invoking mii_mediachg(). This is required
    for successfully unisolating the previously unused PHY when switching
    between PHYs.
  - Now that changing media should no longer cause problems back out rev.
    1.27 and re-enable setting the current media in hme_init_locked() (see
    the commit message of rev. 1.23 for more info).
  These changes are roughly a merge of NetBSD hme.c rev. 1.32 - 1.35 (1.30
  was already fixed differently in our 1.36; 1.31 and 1.32 were wrong) with
  some parts reworked and things that don't make sense like setting the MII
  drivers and restoring the previous MIF and XIF settings in hme_mii_{read,
  write}reg() omitted.
o Use the hme_tick() callout instead of if_slowtimo() for driving
  hme_watchdog() in order to avoid races accessing if_timer.
o Use bus_get_dma_tag() so hme(4) works on platforms requiring it.
o Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
o Remove invalid BUS_DMA_ALLOCNOW when creating a tag which is used for
  a "static" memory allocation only.
2007-09-15 10:45:34 +00:00
Marius Strobl b7c10227d3 MFC: 1.20
- Don't set MIIF_NOISOLATE so ukphy(4) can be used in configurations with
  multiple PHYs. In case some PHYs currently driven by ukphy(4) exhibit
  problems when isolating due to incomplete implementations or silicon bugs
  we'll need to add specific drivers for these. Looking at NetBSD and
  OpenBSD I don't expect problems here though (quite the contrary; we still
  seem to set MIIF_NOISOLATE without good reason in a bunch of PHY drivers).
- Fix a style(9) whitespace nit.
2007-09-15 10:41:33 +00:00
Marius Strobl ce3117afe4 MFC: if_dc.c 1.166 1.171, 1.189 (partial), 1.190, 1.192; if_dcreg.h 1.54
- In detach method, move if_free() after bus_teardown_intr().
- Use our own callout (the dc_tick() callout uses varying periods
  depending on the NIC and isn't used at all with HomePNA links)
  instead of if_slowtimo() for driving dc_watchdog() in order to
  avoid races accessing if_timer.
- Use bus_get_dma_tag() so dc(4) works on platforms requiring it.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
- Fix a bug originally introduced in rev. 1.74; don't reloaded the
  watchdog timer in dc_txeof() in case there are still unhandled
  descriptors as dc_poll() invokes dc_poll() unconditionally.
  Otherwise this would result in the watchdog timer constantly being
  being reloaded and thus circumvent that the watchdog ever fires in
  the DEVICE_POLLING case.
2007-09-15 10:00:51 +00:00
Marius Strobl c7ac63ec7c MFC: if_xl.c 1.192, 1.199, 1.206, 1.207, 1.208; if_xlreg.h 1.57, 1,58, 1.59
- The 575A doesn't have funcregs in memio. So don't claim that it does.
- In detach method, move if_free() after bus_teardown_intr().
- Consistently use if_printf() only in interface methods: if_start(),
  if_watchdog, etc., or in functions used only in these methods.
  In all other functions in the driver use device_printf().
- Use the xl_stats_update() callout instead of if_slowtimo() for
  driving xl_watchdog() in order to avoid races accessing if_timer.
- Use bus_get_dma_tag() so xl(4) works on platforms requiring it.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
2007-09-15 09:57:01 +00:00
Marius Strobl 3fe4242508 MFC: if_re.c 1.77, 1.86, 1.94
- Correctly set IFCAP_VLAN_HWCSUM as re(4) can do VLAN tagging/checksum
  offloading in hardware.
- Correctly set media header length for VLAN.
- Use taskqueue_drain() to wait for any pending tasks to complete rather
  than just pausing for a second.
- Initialize the rl_vlanctl field of the descriptors to zero (in order
  to clear RL_TDESC_VLANCTL_TAG).
2007-09-15 09:52:19 +00:00
Wilko Bulte e7a466fb09 sys/lock.h must precede sys/sx.h these days or the kernel won't build.
Looks like no-one builds Alpha kernels anymore?
2007-09-15 09:40:38 +00:00
Philip Paeps 2bb200582f MFC: remove -T from getopt() spec and usage string.
Forgotten by:	des
2007-09-15 07:04:04 +00:00
Andrew Thompson 8acea15123 MFC
Change from a mutex to a read/write lock. This allows the tx port to be
 selected simultaneously by multiple senders and transmit/receive is not
 serialised between aggregated interfaces.
2007-09-15 01:11:26 +00:00
Jung-uk Kim 849ddbbe89 MFC: sys/dev/fdc/fdc.c 1.310-1.313
sys/dev/ic/nec765.h	1.12, 1.13
	sys/dev/pc98/fdc.c	1.167

- Enhanced floppy controllers have Data Rate Select Register (DSR) at 0x3f4.
Use it to reset controller and to select data rate.  According to Intel
80277AA datasheet, software reset behaves the same as DOR reset except
that it is self clearing.  National Semiconductor PC8477B datasheet says
the same.  As a side effect, we no longer use Configuration Control
Register (CCR) at 0x3f7 for these controllers, which is often missing
in modern hardware.
- Assume floppy disk is not inserted when we have exhausted retries.  This
significantly reduces booting time when there is broken floppy disk drive,
controller, cable, BIOS, etc.
When the floppy controller interface is correctly implemented, disk change
signal (DSKCHG) is reflected in the Digital Input Register (DIR) at 0x3f7.
However, there are many cases that the signal is unusable.  Moreover, some
BIOS does not reserve the port at all.  In those cases, the register may not
function.
- Fix style nits.

PR:	kern/103841
2007-09-14 23:44:11 +00:00
David E. O'Brien dbc77fe3e4 MFC: new kernel config option, VERBOSE_SYSINIT.
(kern/init_main.c rev. 1.263)
2007-09-14 22:44:37 +00:00
Edwin Groothuis 5705558478 Massive MFC for all calendar files which have been updated in the
past but were never MFCd.

PR:             conf/61641 conf/70252 conf/107453 conf/113285 conf/113642 (and others)
Submitted by:   various
2007-09-14 01:33:53 +00:00
Christian Brueffer 092e208b9c MFC:
Autogenerate hardware notes for ral(4) and ural(4).
2007-09-13 16:25:43 +00:00
Christian Brueffer 976a6cf3f1 MFC: rev. 1.320 + 1.324
- Sort wlan entries by driver name.
- Add information about hardware supported by ipw(4) and iwi(4).
2007-09-13 16:23:27 +00:00
Christian Brueffer 828acc851b MFC:
Prepare for automatic hardware notes generation:

- mention the supported chipsets in the HARDWARE section
- remove unnecessary Li arguments
2007-09-13 16:06:30 +00:00
David E. O'Brien 9c382368d9 Remove localism that snuck in the last commit. 2007-09-12 02:54:57 +00:00
Andrew Thompson 650b74639c MFC r1.19
Show the ACTIVE flag in ifconfig for the single interface that is actaully
 active in failover mode rather than all interfaces with a link.
2007-09-11 00:34:59 +00:00
Alfred Perlstein bceb4d44b3 FreeBSD 7 has a macro that converts calls to sx_init -> sx_init_flags,
however FreeBSD 6 needs this as a function to preserve binary compat.

Pointed out by: kmacy
2007-09-10 23:43:52 +00:00
Peter Wemm 4672a9e1df Export the MAXCPU symbol to assym.s. This is used to size the intrcnt
and intrnames arrays.  as(1)/ld(1) don't detect the undefined MAXCPU
variable, leading to insufficient space being reserved.
2007-09-10 23:01:35 +00:00
Gabor Kovesdan 5e7cd3674d MFC r1.33 2007-09-10 18:32:07 +00:00
Gabor Kovesdan c65e0b72bf MFC: r1.7 2007-09-10 18:28:13 +00:00
Gabor Kovesdan 309c88e89d MFC r1.7 2007-09-10 17:30:44 +00:00
cvs2svn d328d6a7f9 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-09-10 17:30:27 +00:00
Gabor Kovesdan a6bcdc7b63 MFC r1.25 2007-09-10 17:30:26 +00:00
Gabor Kovesdan 926f0edacb MFC r1.32 2007-09-10 17:30:02 +00:00
Gabor Kovesdan 861efde4eb MFC r1.38 2007-09-10 17:29:34 +00:00
Gabor Kovesdan 8a6f246a62 MFC r1.8 2007-09-10 17:29:10 +00:00
Gabor Kovesdan d3330de6e0 MFC r1.10 2007-09-10 17:28:45 +00:00
Gabor Kovesdan 3e91365570 MFC r1.47 2007-09-10 17:28:01 +00:00
David E. O'Brien e907760bf1 MFC: 'sade' - the SysAdmins Disk Editor 2007-09-10 14:25:05 +00:00
Konstantin Belousov 58c0ed4ba7 MFC rev. 1.5, 1.6:
Move the drm_pci_alloc() to the start of the i915_initialize() and drop the
the drm mutex around it.
2007-09-10 12:51:06 +00:00
Ruslan Ermilov 9ed0a95543 MFC: 1.46: EVFILT_VNODE filtering isn't limited to UFS. 2007-09-10 07:45:39 +00:00
Konstantin Belousov a84cba2f83 MFC
rev. 1.387 of src/sys/vm/vm_map.c
rev. 1.120 of src/sys/vm/vm_map.h
rev. 1.213 of src/sys/vm/vm_mmap.c

Do not drop vm_map lock between doing vm_map_remove() and vm_map_insert().
For this, introduce vm_map_fixed() that does that for MAP_FIXED case.

Tested by:	Marc G. Fournier <scrappy hub org>
2007-09-09 04:41:24 +00:00
cvs2svn eb9b0c61ab This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-09-09 01:28:04 +00:00
Ed Maste 8f0f55061e MFC aac.4 1.36:
Add PCI IDs for two cards:
  - Adaptec RAID 3405
  - Adaptec RAID 3805
2007-09-07 13:40:10 +00:00
Ed Maste 189ea9c765 MFC 1.62:
Add PCI IDs for two cards:
  - Adaptec RAID 3405
  - Adaptec RAID 3805

  Submitted by:	John Marra  jmarra at nmu dot edu
2007-09-07 13:37:31 +00:00
Alfred Perlstein b1ac006848 Remove/refactor calls to turnstile_release() as it turns out that
turnstile_unpend_queue() drops the lock that turnstile_release()
does.  This was triggering a mtx_unlock() of an already unlocked
mutex panic.

Obtained from: Juniper Networks
2007-09-05 22:18:39 +00:00
Alfred Perlstein a9264a0a18 Unbreak "options DDB" breakage from previous commit. 2007-09-05 17:38:28 +00:00
Xin LI 9dbd00af96 MFC 1.9-1.12: restore various historical behaviors. 2007-09-05 15:47:07 +00:00
Alfred Perlstein 2ae186efc4 Backport of optimized sx locks and rwlocks from FreeBSD 7.0.
Reviewed by: attilio, jhb
Obtained from: Juniper Networks
2007-09-04 22:40:40 +00:00
David Xu 6f853e7dee MFC Revision 1.78:
> Output error message to STDERR_FILENO.
2007-09-04 05:51:00 +00:00
Alexander Leidinger 87bccab4ed Really commit the TIOCGPTN part (missing in the previous commit...). 2007-09-03 13:55:05 +00:00
Alexander Leidinger 1b73495f1e MFC:
- sync linuxulator:
   * de-COMPAT_43-ify:
     + socket related ioctl's
     This differs from -current, as the kernel ABI is different
     (kern_bind() and kern_connect() free the struct sockaddr on -stable
     themself, so two calls to free() are not included in this MFC).
   * bug-/compatibility-fixes
   * ioctl TIOCGPTN
   * 1 style(9)-fix

Tested by:	"Arno J. Klaassen" <[email protected]>
2007-09-03 13:18:42 +00:00
Edwin Groothuis 6c5bcafe6b MFC of src/share/zoneinfo
MFV: tzdata2007g

PR:             conf/115706
Submitted by:   edwin@
Obtained from:  ftp://elsie.nci.nih.gov/pub/
2007-09-02 01:24:08 +00:00
Maxim Sobolev 311668450a MFC: Build p4tcc and est cpu frequency modules on amd64 to match
modules/cpufreq.
2007-08-30 20:29:01 +00:00
Alexander Leidinger df185d908d Add 2 missing typedefs.
Noticed by:	Christian Hiris <[email protected]>
2007-08-30 07:22:20 +00:00
Alexander Leidinger b08074778f Remove second entry for tgkill.
Noticed by:	dwhite
2007-08-30 07:16:58 +00:00
Alan Cox 28e9e4bd5c MFC revisions 1.375-1.377
Use pmap_enter_object() in vm_map_pmap_enter() to reduce the
  locking overhead of premapping objects.

Note: It was later discovered that this change addresses a race condition
that is discussed by vm/vm_fault.c revision 1.216.  Specifically, replacing
pmap_enter_quick() by pmap_enter_object() addresses the race.
2007-08-30 02:32:04 +00:00
Alan Cox af282e8a12 MFC revision 1.104 of powerpc/powerpc/mmu_oea.c
Introduce the function pmap_enter_object().
2007-08-30 02:11:33 +00:00
Peter Wemm db4e4f58c4 MFC: rev 1.261. Set a stack for interrupt stack 1 (double fault) on
AP cpus.  This changes a guaranteed triple-fault (silent reset) into
something that has a chance to work.  Apparently, the NMI handler uses
this stack too.
2007-08-29 23:26:33 +00:00
Gabor Kovesdan d1cc30fd5b MFC rev 1.6
Approved by:	keramida (mentor)
2007-08-29 22:00:39 +00:00
Alexander Leidinger 29279cd30a regen 2007-08-29 15:05:36 +00:00
Alexander Leidinger 9b142e2275 MFC:
- sync linuxulator:
   * add syscalls:
     + stat            (i386, amd64)
     + iopl            (i386, amd64)
     + mprotect        (i386)
     + rt_sigpending   (i386)
     + rt_sigtimedwait (i386)
     + statfs64        (i386, amd64)
     + utimes          (i386, amd64)
     + settimeofday    (amd64)
     + clock_*         (i386, amd64)
   * de-COMPAT_43-ify:
     + sethostname
     + lstat
     + ftruncate
     + nanosleep (i386)
   * add more dummy syscalls so that we know what is needed

Tested by:	bsam (on i386/amd64 with LTP 20070630)
2007-08-29 15:04:26 +00:00
Alexander Motin 3a18582946 MFC ng_ppp.c rev. 1.68, 1.69.
Add proper fine-grained node locking.
Add 64bit statistic counters.
2007-08-28 18:49:33 +00:00
Maksim Yevmenkin e0e896563c MFC:
Return EADDRNOTAVAIL instead of EDESTADDRREQ error when listen(2)
is called on improperly bound socket.
2007-08-28 17:07:49 +00:00
John Baldwin 1bd081e215 MFC: Move 'intbase != expected base' warning under boot verbose.
Requested by:	delphij
2007-08-28 15:47:41 +00:00
John Baldwin dfe86ba669 MFC: Treat the frame under 'nmi_calltrap' as a trapframe. 2007-08-27 17:23:41 +00:00
Jung-uk Kim bf5eccc6bb MFC: 1.146
Export 4Gbps Fibre Channel link speed correctly with inquiry commands.
2007-08-27 16:56:28 +00:00
John Baldwin 5ffd2ba35a MFC: Add SA_* constants for sx_assert() flags to make it easier to keep
drivers in sync between HEAD and 6.x.
2007-08-27 13:45:35 +00:00
Remko Lodder 4693512a61 Semi-MFC Makefile v 1.37 (changed in order to reflect 6.X behaviour)
Make zoneinfo optional so that a filesystem upgrade/update does not overwrite
  possibly installed thirdparte zoneinfo databases (from ports for example).

  Submitted by: Mark Andrews <Mark_Andrews at isc dot org> (original patch
  rewritten by me to be more consistent with the new practise).
  Approved by: re (kensmith)
  Approved by: imp (mentor)
  Reviewed by: ru (some time ago already)

Approved by: imp (mentor, implicit MFC)
2007-08-26 15:57:06 +00:00
Scott Long 10d972b040 MFC LSI 1078/PERC6 update.
Submitted by: LSI
2007-08-26 02:36:31 +00:00
Scott Long 2f4497c614 Fix the build. 2007-08-26 02:35:50 +00:00
Alan Cox 03432c447a MFC revisions 1.288 and 1.289
Eliminate the use of Giant from vm_daemon().  Replace the unconditional
  use of Giant in vm_pageout_scan() with VFS_LOCK_GIANT().
2007-08-26 00:27:48 +00:00
Kip Macy e21f66cc55 MFC: Fixes for 4 port and small packet optimization
- remove cpl->iff panic - we can't know the port number from the rspq on the 4-port
- pick the ifnet based on the interface in the CPL header
- switch to using qset 0 for egress on the 4-port for now - may change
  when we start using RSS
- move ether_ifdetach to before the port lock gets deinitialized to avoid
  hang in the case where there are BPF peers (cxgb_ioctl is called indirectly
  when BPF peers are present)
- don't call t3_mac_reset if multiport is set, this was causing tx errors
  by misconfiguring the MAC on the 4-port
- change V_TXPKT_INTF to use txpkt_intf as the interfaces are not contiguous
- free the mbuf immediately in the case where the payload is small enough to be copied
  into the rspq
- only update the coalesce timer if for a queue if packets were taken off of it
- add in missed 20ms DELAY in initializaton vsc8211

- prompt MFC as this only applies to the 4-port which is currently completely
  broken - OK'd by kensmith

Supported by: Chelsio
2007-08-25 23:55:21 +00:00
Alan Cox fc8883f94f MFC revision 1.294
Eliminate GIANT_REQUIRED from swap_pager_putpages().
2007-08-25 19:42:29 +00:00
Simon L. B. Nielsen dc9b7588d2 MFC rev 1.51:
Set timeout for all NIS RPC requests to 1 second and not just for
  yp_next as revision 1.50 did.  This should fix, or at least very much
  reduce the risk of, NIS timing out due to UDP packet loss for NIS
  functions.

  See also revision 1.50 for more details about the general problem.
2007-08-25 19:41:02 +00:00
Alan Cox 6f8c5979dd MFC revision 1.231
Change vnode_pager_addr() such that on returning it distinguishes between
  an error returned by VOP_BMAP() and a hole in the file.

  Change the callers to vnode_pager_addr() such that they return
  VM_PAGER_ERROR when VOP_BMAP fails instead of a zero-filled page.

MFC revision 1.232
  Long ago, revision 1.22 of vm/vm_pager.h introduced a bug.  Specifically,
  it introduced a check after the call to file system's get pages method
  that assumes that the get pages method does not change the array of pages
  that is passed to it.  In the case of vnode_pager_generic_getpages(),
  this assumption has been incorrect.  The contents of the array of pages
  may be shifted by vnode_pager_generic_getpages().  Likely, the problem
  has been hidden by vnode_pager_haspage() limiting the set of pages that
  are passed to vnode_pager_generic_getpages() such that a shift never
  occurs.

  The fix implemented herein is to adjust the pointer to the array of pages
  rather than shifting the pages within the array.
2007-08-25 19:14:30 +00:00
Alan Cox 302113994d MFC revision 1.234
Eliminate the special case handling of OBJT_DEVICE objects in
  vm_fault_additional_pages() that was introduced in revision 1.47.  Then
  as now, it is unnecessary because dev_pager_haspage() returns zero for
  both the number of pages to read ahead and read behind, producing the
  same exact behavior by vm_fault_additional_pages() as the special case
  handling.

MFC revision 1.235
  Two changes to vm_fault_additional_pages():

  1. Rewrite the backward scan.  Specifically, reverse the order in which
     pages are allocated so that upon failure it is never necessary to
     free pages that were just allocated.  Moreover, any allocated pages
     can be put to use.  This makes the backward scan behave just like the
     forward scan.

  2. Eliminate an explicit, unsynchronized check for low memory before
     calling vm_page_alloc().  It serves no useful purpose.  It is, in
     effect, optimizing the uncommon case at the expense of the common
     case.
2007-08-25 18:43:16 +00:00
Alan Cox 4feed41043 MFC revision 1.233
When a cached page is reactivated in vm_fault(), update the counter that
  tracks the total number of reactivated pages.  (We have not been
  counting reactivations by vm_fault() since revision 1.46.)

  Correct a comment in vm_fault_additional_pages().
2007-08-25 05:47:44 +00:00
Tim Kientzle 63dcc9cf33 MFC: Opportunistic SUID/SGID restore.
If owner restore wasn't requested, then SUID/SGID restore
failures caused by owner/group mismatch won't be reported.
2007-08-25 04:42:01 +00:00
Tim Kientzle b349865b64 MFC: Enable -p by default for root, which seems to be what
most people expect.
2007-08-25 04:38:44 +00:00
Tim Kientzle bcf9d1d440 Update bsdtar version to 1.9 to match libarchive.
At this point, bsdtar is identical to that in 7-CURRENT
except for one small behavioral change that I'm debating.
2007-08-25 04:35:21 +00:00
Tim Kientzle cb43e1fdfe MFC: Use libarchive's new security checks (which are much faster)
instead of implementing them in bsdtar.
2007-08-25 04:33:13 +00:00
Tim Kientzle 82403d9247 MFC a comment. 2007-08-25 04:28:04 +00:00
Tim Kientzle df3305db47 MFC: Don't try to store file body if there was a fatal error writing
the header.
2007-08-25 04:27:41 +00:00
Tim Kientzle 4ad3881834 MFC additional manpage comments to more widely publicize some
of bsdtar's key features.
2007-08-25 04:26:00 +00:00
Tim Kientzle 2fefe58725 MFC --use-compress-program support. 2007-08-25 04:24:52 +00:00
Tim Kientzle f0f9ec183c MFC include guards. 2007-08-25 04:21:18 +00:00
Tim Kientzle 02c543fbf2 MFC generic path comparisons. There was some old code
to ignore leading "./" that was there to allow us to
compare path names with strcmp().  Comparing pathnames
syntactically is a bit more complex than that, so
encapsulate it in a new utility function and use that instead.
2007-08-25 04:19:55 +00:00
Tim Kientzle f08ac74af2 MFC corrected error handling on extraction. 2007-08-25 04:14:28 +00:00
Tim Kientzle f9c2895ac7 MFC some miscellaneous casts to correct printing of
numerical UIDs, GIDs, and device numbers in tar -tv output.a
2007-08-25 04:11:47 +00:00
Tim Kientzle 8cae936eb7 MFC refactored code to copy entry from one archive to another.
This is the code that implements the @<archive> interpolation
feature.
2007-08-25 04:08:45 +00:00
Tim Kientzle b9a7d91a65 MFC whitespace fixes. 2007-08-25 03:59:52 +00:00
Tim Kientzle f9302b4df4 MFC refactored platform configuration.
Separate platform-specific config into config_freebsd.h.
Changes to Makefile and bsdtar_platform.h to use this instead
of coding the FreeBSD configuration into bsdtar_platform.h
2007-08-25 03:58:25 +00:00
Tim Kientzle 703a90659c MFC archive_read_support_format_tar.c 1.61
This updates the support for GNU tar --posix --sparse archive
entries to be compatible with GNU tar 1.17.
2007-08-25 03:49:12 +00:00
John Baldwin 71721d9d57 MFC: Expand the data structure returned by the ATA RAID status ioctl to
include detailed status on each of the backing subdisks.  A binary compat
shim is provided for the original status ioctl.

Approved by:	sos
2007-08-24 18:43:00 +00:00
John Baldwin 1fd6af2460 MFC: Teach the mfi(4) driver to handle requests from userland management
applications to add and remove volumes.
2007-08-24 17:29:18 +00:00
Andrew Thompson 30548df03b MFC r1.38,1.39
- Ensure the path cost does not exceed 65535 in legacy STP mode.
 - If the path cost is calculated when the link is down, set a pending flag so
   it is calculated again when it comes back up.
 - To not use 00:00:00:00:00:00 as the bridge id, all interfaces are scanned and
   the lowest number wins. All zeros is too low.
 - If the STP state machine is stopped then clear the bridge-id and root-id.
2007-08-24 10:34:30 +00:00
David E. O'Brien 794bd8b842 MFC: rev 1.1034: add warnings for additional GPL infecting sub-systems. 2007-08-23 22:30:14 +00:00
JINMEI Tatuya 8220153c6f MFC:
Fix a kernel panic based on receiving an ICMPv6 Packet too Big message.
  (MFC was planned but has been missed)

PR:		99779
Submitted by:	Jinmei Tatuya
Reviewed by:	clement, rwatson
Approved by:	gnn (mentor)

src/sys/kern/uipc_socket.c:	1.280
2007-08-23 18:17:08 +00:00
Bruce A. Mah c2d428fb19 MFC (sort of): Autogenerate hardware notes entities for ath(4) for all
platforms on which it's included in the GENERIC kernel.  The change
is not an exact MFC because the set of platforms is different between
HEAD and RELENG_6.

	dev.archlist.txt	1.95 -> 1.96

PR:		115403
2007-08-23 15:44:44 +00:00
Daniel Hartmeier 3ce165f8d6 MFC: r1.46 2007-08-23 09:38:14 +00:00
Shteryana Shopova 7ba0ee0de8 MFC:
src/usr.sbin/bsnmpd/modules/snmp_bridge/BEGEMOT-BRIDGE-MIB.txt, Revision 1.3
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c, Revision 1.6
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h, Revision 1.5
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c, Revision 1.7
src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def, Revision 1.3
src/usr.sbin/bsnmpd/modules/snmp_bridge/snmp_bridge.3, Revision 1.4

Keep the snmp_bridge(3) module up to date with if_bridge(4) and add an
object to control the value of the new 'PRIVATE' bridge members' flag.

While here, remove stale '__unused' compiler directives.

Reviewed by:	bz
Approved by:	bz (mentor)
2007-08-23 08:19:09 +00:00
Ed Maste af8c6eb001 MFC sha2.c 1.9:
Initialize T1 to silent gcc warning.
2007-08-22 21:17:44 +00:00
Gabor Kovesdan f0be773b17 MFC: r1.61
Approved by:	keramida (mentor)
2007-08-22 18:11:26 +00:00
Ed Maste 4d76d67568 MFC aac_cam.c 1.26:
Add a missing mutex unlock to an error path.

  Submitted by: Yuxiang Luo
  PR: 107943
2007-08-22 14:46:27 +00:00
Nate Lawson 2848ab5b4f MFC 1.26 and 1.27: use proper loop variables and sched_bind() behavior 2007-08-22 04:55:05 +00:00
Ed Maste 71d1909d22 MFC aac.c 1.118:
Rearrange locking in the alloc_commands and ioctl paths to avoid problems.
2007-08-21 20:31:49 +00:00
Ed Maste 0a5efdc7e5 MFC aac.c 1.119:
The return value of aac_alloc_command() was misinterpreted in aac_ioctl_event().
  Once triggered this would leak away all available commands and starve the rest
  of the driver.
2007-08-21 16:33:55 +00:00
Hellmuth Michaelis 3aa36912ef PR: kern/115414
Submitted by:   Eugene Grosbein <[email protected]>
The fix for PR kern/111480 was incomplete, "make MODULES_WITH_WORLD=true
buildworld" stopped with an error.
2007-08-21 08:58:22 +00:00
David Christensen 84368016a6 - Fixed a problem that would cause kernel panics and "bce0: discard frame .."
errors (especially when jumbo frames are enabled or in low memory systems)
    because the RX chain was corrupted when an mbuf was mapped to an unexpected
    number of buffers.
  - Fixed a problem that would cause kernel panics when an excessively
    fragmented TX mbuf couldn't be defragmented and was released by
    bce_tx_encap().
2007-08-20 21:47:49 +00:00
Don Lewis 57a984717e MFC ehci.c 1.56
Replace three copies of the host controller reset sequence that
  differ in their details with calls to a new function, ehci_hcreset(),
  that performs the reset.

  The original sequences either had no delay or a 1ms delay between
  telling the controller to stop and asserting the controller reset
  bit.  One instance of the original reset sequence waited for the
  controller to indicate that its reset was complete before continuing,
  but the other two immediately let the subsequent code execute.  The
  latter is a problem on some hardware, because a read of the HCCPARAMS
  register returns an incorrect value while the reset is in progress,
  which triggers an infinite loop in ehci_pci_givecontroller(), which
  hangs the system on shutdown.

  The reset sequence in ehci_hcreset() starts with the most complete
  instance from the original code, which contains a loop to wait for
  the controller to indicate that its reset is complete.   This appears
  to be the correct thing to do according to "Enhanced Host Controller
  Interface Specification for Universal Serial Bus" revision 1.0,
  section 2.3.1.  Add another loop to wait for the controller to
  indicate that it has stopped before setting the HCRESET bit.  This
  is required by the section 2.3.1 in the specification, which says
  that setting HCRESET before the controller has halted "will result
  in undefined behaviour".
2007-08-20 13:04:04 +00:00
Don Lewis c1b7729c4c MFC file.c 1.8
If the mmap() call in rpc.statd fails, rpc.statd prints a warning
  message and then dumps core because the subsequent code assumes that
  mmap() succeeded.  Since rpc.statd does not have fallback code to
  implement the functionality needed to operate on the status file if
  it is not memory mapped, rpc.statd should use err() to force the process
  to exit if the mmap() call fails.

PR:		bin/115430 (mmap() failure previously fixed in statd.c 1.12.8.2)
2007-08-20 13:00:48 +00:00
Andrey A. Chernov 2b5694cfd7 Increase MAX_LEN to 4096
It fix core dump with latest ghostscript-gpl port (too many items)
2007-08-19 20:53:50 +00:00
Alexander Motin 997758b018 MFC rev. 1.135
Add ng_send_fn() error handeling inside ng_con_nodes().
Without it some errors may left unnoticed and unhandeled
that lead to hooks left in half-connected state.
2007-08-19 19:36:46 +00:00
Stefan Eßer af068abd7c MFC of rev. 1.67: Fix sym driver on amd64. 2007-08-19 10:51:03 +00:00
Kip Macy 196f78e3e3 m_sanity and SA_LOCKED are not defined in RELENG6 - don't use 2007-08-19 08:13:00 +00:00
Kip Macy f048630ee4 Aggregate recent fixes to cxgb in HEAD into MFC:
- integrate most recent changes from vendor branch and upgrade to firmware revision 4.5.5
          - add filter support
          - further improvements for T304
  - recover gracefully from spurious immediate packets
  - Increase descriptors per call to start
  - enqueue per-txq task
  - fix per-txq task initialization
  - reduce cpu usage by as much as 25% (40% -> 30) by doing txq reclaim more efficiently
     - use mtx_trylock when trying to grab the lock to avoid spinning during long encap loop
     - add per-txq reclaim task
     - if mbufs were successfully re-claimed try another pass
  - track txq overruns with sysctl
  - In all structures other than port info port is a pointer to a port info,
    make the code less confusing by renaming the port number to port_id
RELENG_6 only fix:
  - set cluster refcnt to 1 if it isn't otherwise set to fix memory leak

Supported by: Chelsio
2007-08-18 09:10:26 +00:00
cvs2svn 85fc7ca020 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-08-18 04:08:54 +00:00
Maxim Konovalov 898d68b692 MFC rev. 1.36: with -x switch do not pay attention at the hardcoded
limit of 3 devices and dump stats for all devices in the system.
2007-08-17 19:09:00 +00:00
Maxim Konovalov 144c3117ed MFC rev. 1.25: round-type -> round-trip. 2007-08-17 19:03:26 +00:00
Maxim Konovalov b8279f2ad9 MFC rev. 1.23: Iomage -> Iomega. 2007-08-17 19:01:17 +00:00
Maxim Konovalov ad05f3837f MFC revs. 1.111 - 1.115: DragonFly 1.8.0, OpenBSD 4.1,
FreeBSD 1.0.2 from November 1993, DragonFlyBSD 1.10.0.
2007-08-17 18:59:37 +00:00
Yaroslav Tykhiy daf7cc5063 MFC:
src/etc/rc.subr			1.72
	src/share/man/man8/rc.subr.8	1.17

Eliminate a number of inconsistencies in handling pre- and post-commands
as well as required_* conditions.  Introduce required_modules.

PR:	conf/98734
2007-08-17 12:00:33 +00:00
Yaroslav Tykhiy b877ac6de1 MFC with compatibility shims:
pam_nologin(8) starts to provide an account management function in
addition to the existing authentication function so that sshd(8) can
respect nologin(5) while the rest of PAM consumers work as earlier.
In turn, sshd(8) starts to use the new account management function
in pam_nologin(8) and thus respect nologin(5) even when doing public
key authentication with sshd's internal routines (PAM authentication
isn't called at all in that case).

Based on:

  1.12      +2 -10     src/lib/libpam/modules/pam_nologin/pam_nologin.c
  1.6       +10 -11    src/lib/libpam/modules/pam_nologin/pam_nologin.8
  1.16      +1 -1      src/etc/pam.d/sshd

Approved by:	des
PR:		bin/112574
2007-08-17 11:28:25 +00:00
Colin Percival 18dad6d287 MFC revisions 1.7, 1.8: Speed up "preparing to download files" stage of
"freebsd-update fetch", change time of first "upcoming EoL" warning to
EoL minute 3 months instead of EoL minus 6 months.
2007-08-17 06:34:36 +00:00
Doug Barton 5a9a06bc87 MFC 1.26:
Update root zone slave example, and correct typo copied from RFC 2544.

Since this change entails only comments and a fix to something that
is actually broken, I'm MFC'ing it sooner rather than later.
2007-08-17 04:39:15 +00:00
John Baldwin 5f83e423cc MFC: Partial MFC of earlier minor fixes and tweaks to x86 interrupt code:
- Add a new nexus hook: nexus_add_irq() to ask the nexus driver to add an
  IRQ to its irq_rman.  The MSI code uses this when it creates new
  interrupt sources to let the nexus know about newly valid IRQs.
  Previously the msi_alloc() and msix_alloc() passed some extra stuff
  back to the nexus methods which then added the IRQs.  This approach is
  a bit cleaner.
- Change the MSI sx lock to a mutex.  If we need to create new sources,
  drop the lock, create the required number of sources, then get the lock
  and try the allocation again.
2007-08-15 21:12:08 +00:00
John Baldwin c815a82e31 MFC: Revamp the MSI/MSI-X code a bit to achieve two main goals:
- Simplify the amount of work that has be done for each architecture by
  pushing more of the truly MI code down into the PCI bus driver.
- Don't bind MSI-X indicies to IRQs so that we can allow a driver to map
  multiple MSI-X messages into a single IRQ when handling a message
  shortage.

Note that as with the previous MSI MFC, this does not yet include the
'pci_remap_msix()' function.
2007-08-15 20:56:10 +00:00
John Baldwin ef106230c5 MFC: Handle negative trap numbers (due to a corrupted trapframe) by not
triggering a nested page fault when indexing the trap_msg[] array.
2007-08-14 19:42:52 +00:00
John Baldwin b8927c8998 MFC 1.24: Require 'cleanvar'. 2007-08-14 19:38:02 +00:00
John Baldwin 4b706ce3db Don't abuse tf_err to pass the faulting virtual address to signal handlers
on i386.  Instead, add a new field to 'struct mdthread' to hold the address
and preserve the tf_err value.  This corrects the 'sc_err' value in signal
frames which wine needs.

Tested by:	wine-freebsd @ hub org
2007-08-14 15:46:35 +00:00
Daniel Gerzo e2497364c9 - sync with HEAD
PR: docs/114259
2007-08-12 22:21:09 +00:00
Don Lewis 65f048fd0e MFC statd.c 1.15 -
The call to init_file() needs to be moved outside the loop in statd.c,
  otherwise mmap() gets called multiple times, which eventually fails due
  to address space exhaustion on i386.
2007-08-12 01:46:19 +00:00
John Baldwin 7e29e4e011 MFC 1.87: Avoid manipulating semu_list outside of the scope of
SEMUNDO_LOCK().  This would lead to an occasional hang with a cycle in
semu_list.
2007-08-08 16:42:47 +00:00
Joseph Koshy 266aac42e8 MFC rev 1.669: "Use a known good stack at the time of servicing an
NMI--- reuse the space allocated for the double fault handler since
  this space is otherwise unused till the time a double fault occurs."
2007-08-07 09:16:18 +00:00
Tim Kientzle 94739019d1 MFC corrected arg handling: -o is not the same as --no-same-owner
-o means different things depending on the mode in order to
     preserve both GNU and POSIX compatibility
   --no-same-owner always means the same thing, regardless of other options
2007-08-07 05:38:10 +00:00
Tim Kientzle f530759723 MFC two minor fixes:
* Message when exiting with a deferred error code.
  * Don't crash on bad use of -W
2007-08-07 05:34:38 +00:00
Tim Kientzle 5c8f1fdfae MFC include guards and fill in extra definitions in bsdtar_platform.h. 2007-08-07 05:30:22 +00:00
Tim Kientzle 36a695f9b8 MFC include guards; add HAVE_GRP_H and HAVE_PWD_H to bsdtar_platform.h 2007-08-07 05:22:07 +00:00
Tim Kientzle ab07faef38 MFC include guards in bsdtar.c. Also, add HAVE_TIME_H to
bsdtar_platform.h so they actually work correctly.
2007-08-07 05:10:18 +00:00
Tim Kientzle d86180ce14 MFC comments in bsdtar.c. 2007-08-07 05:05:03 +00:00
Tim Kientzle 20af713e06 MFC matching.c 1.11: Guard includes to improve portability. 2007-08-07 04:55:21 +00:00
Tim Kientzle 2099ac956c MFC tree.c 1.8:
* Correct crash when files are removed during a traversal
 * Streamline some of the dir and link checks
 * Clarify comments
 * Guard header includes for portability

Update bsdtar_platform.h to reflect that FreeBSD does
indeed have <errno.h>.
2007-08-07 04:49:55 +00:00
Tim Kientzle 1a2a193e65 MFC 1.9: Fill in some missing casts. 2007-08-07 04:38:22 +00:00
Tim Kientzle 7431304b99 MFC 1.2: Fix strict-aliasing warning. 2007-08-07 04:32:49 +00:00
Andrew Thompson 94b578b171 The path_cost field should have been increased to 32bits when RSTP support was
merged, fix this now and sync the struct order while I am at it.
2007-08-06 10:16:01 +00:00
Andrew Thompson 3379dd5a1d MFC if_bridge.c r1.101, if_bridgevar.h r1.22
Avoid holding the softc lock when using copyout().
2007-08-06 10:00:40 +00:00
Andrew Thompson 67feffe6db MFC
Add a bridge interface flag called PRIVATE where any private port can not
   communicate with another private port.

  1.11  src/sbin/ifconfig/ifbridge.c
  1.142 src/sbin/ifconfig/ifconfig.8
  1.102 src/sys/net/if_bridge.c
  1.23  src/sys/net/if_bridgevar.h
2007-08-06 09:11:05 +00:00
Xin LI 75b4cc6795 MFC revision 1.4:
date: 2007/07/12 01:17:14;  author: delphij;  state: Exp;  lines: +7 -7
 - Simulate GNU gzip(1) behavior where full filename is
   being output in verbose mode when doing recursive[1].
 - Use better representation of S:

PR:		bin/114470
Submitted by:	Ighighi <ighighi gmail com> [1]
2007-08-06 02:31:25 +00:00
Andrew Thompson 3ba4931987 MFC if_lagg.c r1.17-18, if_lagg.h r1.10
- Avoid holding the softc lock when using copyout().
 - Propagate the largest set of interface capabilities supported by all lagg
   ports to the lagg interface.
 - Use the MTU from the first interface as the lagg MTU, all extra interfaces
   must be the same.
2007-08-05 21:00:31 +00:00
Maksim Yevmenkin 372309105d MFC:
Call ttyld_close() in nmdmclose() to ensure that nmdm(4) closes
line discipline installed onto /dev/nmdmX device.

Reviewed by:	julian
2007-08-04 00:30:13 +00:00
Alexander Motin 779544f201 MFC msg.c rev 1.13, 1.14; internal.h rev 1.5
Replace select() by poll() to avoid problems with big
descriptor number.
2007-08-03 18:33:43 +00:00
Konstantin Belousov f88db9ac2f MFC rev. 1.273, submitted by peter:
Change kn_hook value from cdev to struct tty to avoid dereferencing freed
cdev.
In ttygone(), wake up select(), sigio and kevent() users in addition
to the queue sleepers.
Return EV_EOF from kevent filters if TS_GONE is set.
2007-08-03 14:24:38 +00:00
Alexander Motin 4b90154e2a MFC rev. 1.22
Reduce stack usage by 256 bytes per call. It helps to avoid kernel
stack overflow in complicated traffic filtering setups.
2007-08-02 10:49:27 +00:00
Doug Barton 106f15d63b MFC version 1.25:
1. Move the disable-empty-zone stuff down below the first 25 lines so
that the listen-on stuff floats up to the first "page" of text. This
makes it very obvious what's going on so that someone trying to enable
a server for use on a network can easily see how to do that.

2. Change the default behavior back to using a hint zone for the root.

3. Leave the root slave zone config as a commented out example.

4. Remove the F root server from the example at the request of
its operator. (B was removed already.)
2007-08-02 09:29:02 +00:00
Craig Rodrigues 8d10600955 MFC 1.16:
Fix interaction with Windows 2000/XP based servers:

   If the complete reply on the TRANS2_FIND_FIRST2 request fits exactly
   into one responce packet, then next call to TRANS2_FIND_NEXT2 will return
   zero entries and server will close current transaction.  To avoid
   subsequent errors we should not perform FIND_CLOSE2 request.

PR:		78953
Submitted by:	Jim Carroll <jim carroll com>
Requested by:	Antony Mawer <fbsd-fs mawer org>,  Peter <peter pean org>
=============================================================================
2007-08-02 06:02:06 +00:00
Doug Barton 8149eb7266 Date: Wed, 1 Aug 2007 17:00:07 +0000
From: [email protected]
To: Doug Barton <[email protected]>

	please remove "B" from your list/distribution until you have
	received permission from the FreeBSD community that this change
	is what they want.
2007-08-01 22:53:18 +00:00
Simon L. B. Nielsen 2eaa3e21a1 Correct buffer overflow in tcpdump(1).
Security:	FreeBSD-SA-07:06.tcpdump
2007-08-01 20:42:48 +00:00
Doug Ambrisko 55bb9eb09a MFC the manual isa attachment via hints and merge over all changes to ipmi.4 2007-07-30 19:59:08 +00:00
cvs2svn c78dc27387 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-07-30 16:53:56 +00:00
Bruce A. Mah b9d265f98a New (somewhat belated) errata: SA-07:05.libarchive. 2007-07-30 16:53:55 +00:00
David Malone c224c934ca MFC: Add an option to make periodic(8) quiet when no output was generated. 2007-07-29 20:32:24 +00:00
Hellmuth Michaelis f139d8be58 PR: kern/111480
Submitted by:   Joerg Lehners, Joerg dot Lehners at Informatik dot Uni-Oldenburg dot DE

add missing '#include "opt_compat.h"' (which is already present in current),
so that kernel config options 'COMPAT_FREEBSD4' and 'COMPAT_FREEBSD5' are
recognized again. this made the vmware3 port running under the linuxulator
run again as usual.
2007-07-29 13:47:13 +00:00
Max Laier 2729aa6314 MFV:
the TCP SACK option needs sequence number modulation

Reported & tested by:	Jordan Gordeev
Obtained from:		Krzysztof Pfaff via. OpenBSD
2007-07-28 22:32:57 +00:00
Pyun YongHyeon 466104b072 MFC if_mskreg.h, rev 1.6 to RELENG_6.
The maximum size of the sum of all segment lengths in a given DMA mapping
  should be 65535 + link layer headers.
2007-07-27 01:50:54 +00:00
Pyun YongHyeon 268d430708 MFC if_msk.c, rev 1.17 if_mskreg.h, rev 1.5 to RELENG_6.
Increase a maximum segment size of DMA to 4096. Previously it used
  MCLBYTES for the segment size but it used too many Tx descriptors in
  TSO case.
  While I'm here adjust maximum size of the sum of all segment lengths
  in a given DMA mapping to 65535, the maximum size, in bytes, of a IP
  packet.
2007-07-27 01:48:58 +00:00
Pyun YongHyeon 41e4634d5e MFC if_msk.c, rev 1.16 to RELENG_6.
Disable automatic IP ID increment. Due to a hardware bug the automatic
  IP ID increment in TSO case generated corrupted IP packets.
  This change brings back TSO capability.
2007-07-27 01:45:01 +00:00
Nate Lawson c313df50fd MFC v1.10: Be sure HPET is working before attaching it 2007-07-26 19:08:11 +00:00
Bruce A. Mah 3be4d54a8e Updated release note: BIND 9.3.4-p1. 2007-07-26 14:45:57 +00:00
Andrew Thompson 909429f66b The MAC address was not being set correctly on the lagg interface so all
outgoing frames had the src of 00:00:00:00:00:00. We fake enough of
if_setlladdr() to set the MAC address without resetting the interface, on
RELENG_6 this also requires overwriting _ac_enaddr in struct arpcom.
2007-07-26 06:24:04 +00:00
Alexander Motin 4f8a9440c4 MFC rev. 1.3
- Add support for setmode and settarget messages.
2007-07-25 19:15:05 +00:00
Alexander Motin 8e2e4a872b MFC rev. 1.1 of ng_nat.h and rev. 1.5,1.9,1.10 of ng_nat.c
- Add support for setmode and settarget messages.
 - Allow node to bypass traffic while no alias address defined.
 - Fix result of some mechanical change.
2007-07-25 19:10:39 +00:00
Pav Lucistnik 0ae54de42c MFC:
Fix an integer overflow and allow access to files larger than 4GB on NTFS.

Ok'ed by:	le
2007-07-25 15:55:31 +00:00
Alexander Motin bf7211f016 MFC rev. 1.63 - 1.67
Multiple multilink fixes and optimizations.
2007-07-25 14:25:51 +00:00
Alexander Motin 9b0e4d54a4 MFC rev. 1.25 - 1.31
Several fixes and performance optimizations.
2007-07-25 14:03:46 +00:00
Alexander Motin 80ef4001e9 MFC rev. 1.15-1.17
- Use the ISO standard function variable vs. a GCC'ism.
 - Global xmit stats calculation fix.
 - Avoid false assertion on transmit and delayed ack timeout with enabled invariants.
   Replace callout_pending() by callout_active() to remove race window.
2007-07-25 13:50:57 +00:00
Alexander Motin 0b801d0cb2 MFC rev. 1.40
Compensate low int math precision.
2007-07-25 13:32:48 +00:00
Alexander Motin 23e1614c4f MFC rev. 1.1210
Return back NETGRAPH_MPPC_COMPRESSION depends.
2007-07-25 13:20:29 +00:00
Alexander Motin b81dd2f77f MFC rev. 1.1198
Add static build depends for ng_deflate, ng_nat and ng_sppp.
2007-07-25 13:16:39 +00:00
Doug Barton 58a7459b81 Update to 9.3.4-P1, which fixes the following:
The DNS query id generation is vulnerable to cryptographic
analysis which provides a 1 in 8 chance of guessing the next
query id for 50% of the query ids. This can be used to perform
cache poisoning by an attacker.

This bug only affects outgoing queries, generated by BIND 9 to
answer questions as a resolver, or when it is looking up data
for internal uses, such as when sending NOTIFYs to slave name
servers.

All users are encouraged to upgrade.

See also:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2926
2007-07-25 08:24:40 +00:00
Craig Rodrigues c4427c1431 MFC 1.164:
Terminate ext2_opts array with NULL.
2007-07-25 02:55:30 +00:00
Rong-En Fan 41fdade405 MFC ncurse manual page changes
- Correctly substitute variables like @NCURSES_MAJOR@ in manual pages

PR:		doc/114711
Submitted by:	Yuri Pankov <yuri at darklight.org.ru>
2007-07-24 01:48:10 +00:00
John Baldwin 673fe84229 MFC: Restore netstat -M functionality for most statistics on core dumps.
One change in this patch relative to the changes in HEAD is that the
mroute statistics will still fallback to using libkvm on live kernels
if the sysctl fails.
2007-07-23 15:40:26 +00:00
Simon L. B. Nielsen 0d6fb05eb2 MFC 1.2:
The wpa_passphrase(8) manual page states that it first appeared in
  FreeBSD 6.2, but it didn't make it into RELENG_6_2.

  Update the manual page to say "FreeBSD 6.3".
2007-07-23 11:37:10 +00:00
Craig Rodrigues 1d493e5131 MFC 1.148:
When parsing mount options, accept "shortnames" and "longnames" in addition
to "shortname" and "longname".

Submitted by:	Eugene Grosbein
PR:		114776
2007-07-21 22:24:07 +00:00
Craig Rodrigues 975ac77130 MFC: 1.173:
Perform range check before allocating memory when reading
  extended attributes.

  Reviewed by:    kib
  PR:             114389
2007-07-21 22:17:06 +00:00
Xin LI 4d7cab3525 MFC: Remove unneeded files. 2007-07-21 16:44:40 +00:00
Don Lewis 867d6de13b MFC ObsoleteFiles.inc 1.91, 1.92, and 1.93:
1.91 -
    When /usr/sbin/xten went away back in 2003, /usr/libexec/xtend was
    overlooked.

  1.92 -
    The archive_write_prepare.3 man page was removed in November 2006.

    The wpa man pages were moved to section 8 in June 2005.

    The clean_environment() function was removed from libutil in February
    2004, so its man page is well overdue for removal.

  1.93 -
    Nuke man page links that were orphaned by vendor branch import of
    TrustedBSD OpenBSM 1.0 alpha 6.
2007-07-21 00:01:09 +00:00
John Baldwin d8e36b0aa4 MFC: Close race conditions between fork() and [sg]etpriority()'s
PRIO_USER case, and possibly also other places that deference p_ucred.
2007-07-19 18:46:32 +00:00
Maksim Yevmenkin bf90b8e241 MFC:
Fix kbdmux(4) issue with backslash/underscore key not working on
Japanese 106/109 keyboard.

PR:		kern/112214, kern/99090
Submitted by:	TAKAHASHI Yoshihiro, TOMITA Yoshinori
Approved by:	re (hrs)
2007-07-19 17:12:02 +00:00
Tim Kientzle 4f59f943e2 MFC better error handling from archive_string_ensure()
failures.  Several key users of this function now simply
return ENOMEM to the caller instead of aborting the
program.
2007-07-19 14:31:52 +00:00
Pav Lucistnik d219c5224d MFC 1.59:
Update portaudit location
2007-07-19 07:22:00 +00:00
Tim Kientzle ccb59e328e MFC: archive_entry_copy_gname() and archive_entry_copy_uname() functions. 2007-07-18 04:57:32 +00:00
Tim Kientzle 8028ade14d MFC 1.59: Add back a mistakenly-removed 'break'. 2007-07-18 04:47:59 +00:00
John Baldwin 5843ca6e59 MFC 1.164: Fix up NFS client write error handling.
Submitted by:	mohans
2007-07-17 21:02:08 +00:00
John Baldwin 0989c2c69c MFC 1.37: Fix alignment of context switch traces. 2007-07-17 14:43:11 +00:00
Peter Wemm abeace6627 Remove archive_entry_set_devmajor.3 and archive_entry_set_devminor.3
man pages from the OLD_FILES list.  libarchive currently installs them
on RELENG_6.
2007-07-17 09:37:51 +00:00
Christian Brueffer b4d9390174 MFC: rev. 1.28
Take a sentence into the present by removing a reference to FreeBSD 3.0.
2007-07-17 08:34:34 +00:00
Xin LI b92c576ca4 MFC: Update for bzip2 1.0.4 import: bzip2.info.gz gone. 2007-07-17 06:22:37 +00:00
Xin LI 0c3e67fcd3 Note diffutils 2.7 -> 2.8.7 MFC 2007-07-15 01:28:18 +00:00
Xin LI 9dc4987f21 MFC: diffutils 2.8.7. 2007-07-15 01:24:46 +00:00
Christian S.J. Peron d602058dfd Doh.. This is a forced commit to note the actual commit for the previous
commits:

MFC  1.29      +1 -1      src/sys/dev/bce/if_bce.c
MFC  1.22      +1 -1      src/sys/dev/ixgb/if_ixgb.c
MFC  1.91      +1 -1      src/sys/dev/nge/if_nge.c
MFC  1.87      +1 -1      src/sys/dev/re/if_re.c
MFC  1.6       +1 -1      src/sys/dev/stge/if_stge.c
MFC  1.44      +1 -1      src/sys/dev/txp/if_txp.c
MFC  1.31      +1 -1      src/sys/dev/vge/if_vge.c

Un-break processing of 802.1Q VLAN tags in the presence of hardware
offload of VLAN tags.
2007-07-14 20:25:20 +00:00
Christian S.J. Peron 5046b97f52 commit.log 2007-07-14 20:22:17 +00:00
Christian S.J. Peron 4b3e87d334 MFC rtld.c revision 1.124
Unset potentially harmful environment variables.

Discussed on:	seacteam
PR:		kern/109836
2007-07-14 19:04:00 +00:00
Bruce A. Mah d688a95f38 MFC: SA-07:05.libarchive. 2007-07-13 17:43:49 +00:00
Pyun YongHyeon 02eaf70f0d MFC if_txp.c rev 1.45, 1.46 to RELENG_6.
Add checks for contigmalloc(9) failure.
 Nuke duplicated __FBSDID.
2007-07-13 04:55:52 +00:00
cvs2svn de40bc2e65 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-07-13 04:46:35 +00:00
Pyun YongHyeon 2042fd3063 MFC if_re.c rev. 1.91, if_rlreg.h rev. 1.66 to RELENG_6.
re(4) devices requires an external EEPROM. Depending on models it
  would be 93C46(1Kbit) or 93C56(2Kbit). One of differences between them
  is number of address lines required to access the EEPROM. For example,
  93C56 EEPROM needs 8 address lines to read/write data. If 93C56
  recevied premature end of required number of serial clock(CLK) to set
  OP code/address of EEPROM, the result would be unexpected behavior.
  Previously it tried to detect 93C46, which requires 6 address lines,
  and then assumed it would be 93C56 if read data was not expected
  value. However, this approach didn't work in some models/situations
  as 93C56 requries 8 address lines to access its data. In order to fix
  it, change EEPROM probing order such that 93C56 is detected reliably.

  While I'm here change hard-coded address line numbers with defined
  constant to enhance readability.

PR:	112710
2007-07-13 04:46:34 +00:00
Andrew Thompson 61918bf816 MFC r1.99
The mac address must be written a word length at a time, it was having no
 effect before.
2007-07-13 01:27:45 +00:00
Andrew Thompson 997fcf7091 Move the IFT_IEEE8023ADLAG case above the copy to IFP2ENADDR(ifp). This chunk
of code has a slightly different layout to HEAD had was mismerged. This fixes
lagg(4) on RELENG_6.
2007-07-13 01:26:44 +00:00
Yaroslav Tykhiy 67b109e5b8 MFC revs. 1.15, 1.16:
Add a sysctl for the purge run interval so that it can
  be tuned along with the rest of hostcache parameters.
  The new sysctl name is `net.inet.tcp.hostcache.prune'.

  Replace a constant with an already defined symbolic name for it.
2007-07-12 20:50:06 +00:00
Andrew Thompson 8d29990f70 Sync lagg to HEAD
- Implement the Marker Protocol for lacp
 - Export the actor and partner peer info and show in ifconfig verbose
 - Compare the partner system priority when choosing the aggregator.
 - Cleanup whitespace, variable names and gc unused defines
2007-07-12 20:40:25 +00:00
Colin Percival 81d96e553e Correct multiple security issues in how libarchive handles corrupt
tar archives, including a potentially exploitable buffer overflow.

Reviewed by:	kientzle
Security:	FreeBSD-SA-07:05.libarchive
2007-07-12 15:00:44 +00:00
Yaroslav Tykhiy 56be621f21 MFC rev. 1.15:
Update nologin(5) to match the modern reality of login.conf(5) and PAM.
2007-07-12 14:16:01 +00:00
Yaroslav Tykhiy d383e6f1bf MFC:
Use the current user's login class for the decisions about where
  the nologin(5) file is located and whether the user may bypass its
  restriction.

  Add some error checks.

  Revision  Changes    Path
  1.7       +16 -15    src/lib/libpam/modules/pam_nologin/pam_nologin.8
  1.13      +42 -29    src/lib/libpam/modules/pam_nologin/pam_nologin.c

Note: To avoid POLA violation, the merged module still lets root
in irrespective of login.conf settings.  In HEAD, root has to have
an explicit "ignorenologin" capability to bypass nologin(5).

PR:	bin/107612
2007-07-12 14:11:57 +00:00
Yaroslav Tykhiy 23536eb40e MFC login_cap.3 1.35-1.37, login_cap.c 1.34:
- Finally document the LOGIN_MECLASS hack in the manpage and comments.
- Fix login_getcaplist() prototype in the manpage.
- Improve the manpage markup.
2007-07-12 13:25:55 +00:00
Yaroslav Tykhiy a6f2929e7e MFC revs. 1.19-1.22: Assorted small fixes. 2007-07-12 13:11:00 +00:00
Yaroslav Tykhiy fb14944bd9 MFC rev. 1.76: Thoroughly handle error conditions when processing
an interpreted script as $command.
2007-07-12 12:56:54 +00:00
Brian Somers eb35546174 MFC: Speaker durations are specified in 1/100ths of a second according to
spkr(4).

PR:		70610, 67995
2007-07-12 07:05:43 +00:00
Ariff Abdullah 36dba09d67 MFC (revision: 1.78):
- malloc M_NOWAIT -> M_WAITOK.

- Protect against divide by zero while calculating bus speed due to
  possible broken kernel timecounter.

  Reported/Tested by:     silby
2007-07-12 06:39:38 +00:00
Ariff Abdullah 59cf4ff999 MFC:
Revisions:
  1.44      src/sys/dev/sound/pci/hda/hdac.c
  1.8       src/sys/dev/sound/pci/hda/hdac_private.h

- Add codec id for Realtek ALC268.

- Add controller id for Intel 82801I (ICH9).
  PR:			kern/114399
  Submitted by:		Michael Fuckner <[email protected]>

- MSI support. Disable by default due to various issues with too many
  broken hardwares. MSI can be enabled through device.hints(5) or
  kenv(8) by setting "hint.pcm.%d.msi=1" (for RELENG_6, you need to
  set/enable hw.pci.enable_msi=1).
  Partially submitted by:	kevlo
                         	YAMAMOTO Taku <[email protected]>
  Tested by:			joel, kevlo, YAMAMOTO Taku
2007-07-12 06:39:08 +00:00
Doug Barton b6d7bfae78 Comment out the BIND 9.4.x-only disable-emtpy-zone options.
Pointed out by: A cast of thousands
Pointy hat to:  Just me
2007-07-11 23:59:41 +00:00
Roman Bogorodskiy 71b0de0fd6 MFC command.c 1.307, radius.h 1.22, radius.c 1.54, ppp.8.m4 1.326:
Add a new option for ppp.conf: rad_port_id. It allows to
change the way of what ppp submits to the RADIUS server
as NAS-Port-Id. Possible options are: the PID of the process
owning the corresponding interface, tun(4) interface number,
interface index (as it would get returned by if_nametoindex(3)),
or it's possible to keep the default behavior. Check the ppp(8)
manual page for details.

MFC ppp.8.m4 1.327:
Cleanup after previous commit.

PR:		bin/112764
Submitted by:	novel (myself)
Approved by:	flz
2007-07-11 10:49:06 +00:00
Doug Barton 60f27b02af Record the removal of the PROTO.localhost* stuff from etc/namedb 2007-07-11 07:23:39 +00:00
Xin LI 0d77d1da05 Reflect bzip2 MFC. 2007-07-11 07:16:56 +00:00
Doug Barton e7e5f09f36 MFC of the work committed on 2007-06-18 to improve the default
named.conf. This brings us in line with BCP, and makes our
installed configuration usable as a local resolver right out
of the box.

This includes:
1.359 of etc/Makefile
1.5 of etc/namedb/Makefile
1.1 of etc/namedb/master/Makefile
all for the new files in etc/namedb/master,

1.23 and 1.24 of etc/namedb/named.conf to bring in the new
configuration options,

The new files in etc/namedb/master to support those options,

And deletion of the old *localhost*.rev files.

See the commit message to HEAD and the comments in the new
named.conf file for more details about the changes and the
reasons for them.
2007-07-11 07:08:23 +00:00
Xin LI 9ae49a8439 MFC: bzip2 1.0.4. 2007-07-11 07:04:07 +00:00
Hidetoshi Shimokawa 08b99e92b3 MFC rev. 1.98: Fix a bug of retrieving configuration ROM. 2007-07-11 02:13:50 +00:00
Christian Brueffer 03c7d131b9 MFC: rev. 1.4
The driver will also first appear in 6.3.  While here, fix some
grammar issues and capitalize Jumbo Frames.
2007-07-10 17:13:31 +00:00
Max Laier 5167e8a9d5 MFC, rev 1.18:
Fix hardware checksum verification on fragments.

	Reported/tested by:	Hugo Koji Kobayashi, Vadym Chepkov
	Reviewed/help by:	yongari
2007-07-10 10:27:12 +00:00
Colin Percival 2d4196e926 MFC revision 1.11: Add support for the HTTP_TIMEOUT environment variable.
MFC revision 1.12: Add support for HTTP/1.0 Persistent Connections.
2007-07-09 22:50:51 +00:00
Craig Rodrigues 1896da1625 MFC: Convert MSDOSFS_LARGE compile time option to a "-o large" mount option.
PR:	105964
2007-07-08 15:30:28 +00:00
Ariff Abdullah 63f318eddb MFC:
New sysctl: "hw.snd.compat_linux_mmap" to allow PROT_EXEC page
mapping, due to recent changes in linux compatibility layer which
require it. All linux applications that using sound + mmap() (mostly games)
require this to be enabled. Disabled by default.
2007-07-08 14:01:11 +00:00
Alexander Leidinger e935cafc2c regen after syscalls.master change 2007-07-08 12:23:37 +00:00
Alexander Leidinger 9dde5d7c5e MFC (5a of X):
- linuxulator mmap handling

Compile tested by:	scf (i386, as part of a mega-MFC-patch)
Tested by:		Arno J. Klaassen <[email protected]> (amd64)
2007-07-08 12:22:15 +00:00
Alexander Leidinger 475a3d2145 MFC (5 of X):
- linuxulator mmap handling
 - memleak fixes
 - extend linux errno mapping
 - handle address space limits for linux processes
 - sync linprocfs (/proc/sys/... part)

Compile tested by:	scf (i386, as part of a mega-MFC-patch)
Tested by:		Arno J. Klaassen <[email protected]> (amd64)
2007-07-08 12:20:36 +00:00
Alexander Leidinger 97b7f63e7f MFC (4 of X):
- don't limit number of syscalls to 255
 - handle more socket options
 - bug-/compatibility-fixes to linux
   * file related (includes fixes which prevent creation of strange files
     which can only be removed with a fsck)
   * make ping work
   * ...
 - add devfs to the file system type handling/translation

Compile tested by:	scf (i386, as part of a mega-MFC-patch)
Tested by:		Arno J. Klaassen <[email protected]> (amd64)
2007-07-08 09:04:44 +00:00
Alexander Leidinger e013e459fc MFC (3 of X):
- In preparation of further linuxulator fixes MFC kern_descrip.c rev 1.296 and
   syscallsubr.h rev 1.41 by jhb:
   Add a kern_close() so that the ABIs can close a file descriptor w/o having
   to populate a close_args struct and change some of the places that do.

Tested by:	scf (i386, as part of a mega-MFC-patch),
		Arno J. Klaassen <[email protected]> (amd64)
2007-07-08 08:44:48 +00:00
Alexander Leidinger 10653cc3fa MFC (2 of X):
- some linuxulator style(9) fixes
 - add datatypes and definitions in preparation of further commits
 - use one (l_sigval) of the new datatypes on amd64 and get rid of a now unused
   include (this may or may not fix some signal handling issues on amd64) [1]
 - convert some unconditional debug handling into the common linuxulator way
 - use some more appropriate format string types in some debug printf's
 - convert signal validation into a macro

Except for [1] on amd64 there is no visible change to a normal user.

Tested by:	scf (i386), Arno J. Klaassen <[email protected]> (amd64)
2007-07-08 08:41:09 +00:00
Alexander Leidinger 81871f5fc6 MFC (1 of X):
- easy linuxulator style(9) fixes (easy = hand removal of non-style code
   change sections in a full diff)

Tested by:	scf (i386), Arno J. Klaassen <[email protected]> (amd64)
2007-07-08 08:26:10 +00:00
Tim Kientzle 887e9ef11b MFC unbreak installworld. <sigh>
Pointy hat: me
2007-07-07 16:59:11 +00:00
Remko Lodder b9584f999e MFC v 1.124 ata-all.h
MFC v 1.204 ata-disk.c

  Add Viking Interworks 256MB as an ata device; this might give
  some false positives but at this moment it is better to add
  support then to dont have it at all (comment from Soren).

  PR: kern/111516
  Submitted by: Thomas Nystrom <thn at saeab dot se>
  Approved by: re (kensmith)
  Approved by: imp (mentor)
  OK'ed by: sos (With the comment noted above about false
  positives).

Approved by:	imp (mentor,implicit)
2007-07-07 11:36:44 +00:00
Remko Lodder 6b0196c460 MFC rev 1.33 mdmfs.c
-n is used by newfs to tell "do not generate a .snap directory" instead of
 specifying rotational-positions, reflect that in the command arguments.

 PR: bin/110178
 Submitted by: Alex Kozlov <spam at rm-rf dot kiev dot ua>
 Approved by: imp (mentor)

Approved by:	imp (mentor, implicit)
2007-07-07 11:22:46 +00:00
Brian Somers 02da434280 Fix a problem introduced in netinet/in.c 1.85.2.7 where
in_ifdetach() calls in_delmulti_ifp().

The code now *really* deletes the elements in in_multihead
for the ifp that's going away (rather than just decrementing
the reference count).  Previously we were left with inm and
ifma structures containing bogus ifnet pointers after
destroying an interface that had more than one IP4 assignment
made to it in it's lifetime.

I've also added a if_delmulti_ent() to make deleting known
ifma structures possible rather than depending on
if_findmulti() to end up finding the same thing.  It
will in fact always find the correct ifma *unless* the
passed sockaddr has a bogus sa_len of zero.

Finally, when adding a multicast address, we no longer
increment the refcount (well, we do, but then we decrement
it again).  The refcount here is in fact bogus so hopefully
readers will see that now.

This code is going directly into -stable as it has been
rewritten in -current and those changes are deemed too
intrusive for -stable consumption right now.

Reviewed by:	bms
2007-07-07 00:54:46 +00:00
Tim Kientzle bd7d22f908 MFC some comment changes and a reworking of one cast.
With this change, libarchive source in -CURRENT and 6-STABLE
is exactly identical.  The only difference is the
version number (1.9 for 6-STABLE, 2.2 for -CURRENT) and
SHLIB_MAJOR (2 in 6-STABLE, 4 in -CURRENT).  The
source has conditionals to compile the old libarchive 1
API/ABI or the newer libarchive 2 API/ABI depending on
the version number set at compile time.
2007-07-06 16:08:04 +00:00
Tim Kientzle 1ad65cadc0 MFC removal of extraneous file. This function has been moved
into archive_read.c.
2007-07-06 16:01:06 +00:00
Tim Kientzle 1e9db758cb Forced commit to note that the big MFC included
the recent fix to disable attempts to use lseek()
on non-regular files.  In particular, this fixes
"tar -t" on tape drives.
2007-07-05 02:30:46 +00:00
Tim Kientzle 61c4e41c76 MFC libarchive 1.9.
This is identical to libarchive 2.2.3 from -CURRENT, with
all of the performance improvements, bug fixes, and new
formats, except that:
  * archive_read_finish() and archive_write_finish() don't return errors
  * archive_write_data() has a different return type
  * user-provided skip callbacks have a slightly different signature

These differences maintain ABI compatibility with libarchive 1.3.1
(hence the "1" in "1.9") and allows libarchive 1.9 to have the
same SHLIB_MAJOR and otherwise serve as a straight replacement
for libarchive 1.3.1 (only better).

Thanks to:  Many, many people who contributed error reports, bug fixes,
  and suggestions over the last three years. ;-)
2007-07-05 01:56:41 +00:00
cvs2svn 018467d100 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-07-04 23:27:39 +00:00
Bruce M Simpson e1ee666850 MFC rev XXXX:
Do not attempt to enable AHCI mode on ALi SATA controllers other
 than the 5288.

 It is not correctly implemented in earlier silicon, and the BIOS often
 lies about AHCI capability on platforms where these chips are deployed.
 With this change I am able to boot FreeBSD on the ASUS Vintage AH-1
 barebones system.

Approved by:	sos
2007-07-04 12:29:15 +00:00
Ariff Abdullah c8fed6bb8c MFC:
Revisions:
  1.43      src/sys/dev/sound/pci/hda/hdac.c
  1.7       src/sys/dev/sound/pci/hda/hdac_private.h

- Fix input/microphone support for ASUS A8N-VMCSM series.

  Submitted by: Simon Schubert <[email protected]>

- Defer flushing unsolicited response into taskqueue thread rather
  than handle it directly in interrupt handler, since few of its
  operations (like measuring/calibrating jack impedance) are quite
  expensive.
- Misc. debugging cleanups.

Tested by:	joel
2007-07-04 04:05:22 +00:00
Ariff Abdullah e121a06b84 MFC (revision 1.10):
Fix no-sound issues with ASUS A9T notebook.

Note: The offending quirk should have been made model/codec specific,
but since there were no records / log which model requires it, the quirk
logic had to be inverted (blacklist instead of whitelist).

Tested by:	Arkadiy Dudevitch <[email protected]>
2007-07-04 04:04:42 +00:00
Remko Lodder 5c7404129b MFC rp.c rev 1.73
Fix Rocketport so that it does not crash the system when a device pointer
  changes for example:

  (From Craig Leres):

  tip to a rocketport line
  run "/etc/rc.d/devfs restart"
  exit tip
  (wait for the system to reboot)

  Thanks to Robert Watson for poking me to fix this.

  PR:		kern/109152
  Approved by:	imp (mentor)
  Approved by:	re (kensmith)
  Reviewed by:	jhb
  Submitted by:	Craig Leres <leres@ee dot lbl dot gov>

Approved by:	imp (mentor, implicit)
2007-07-03 20:35:07 +00:00
Bruce A. Mah d7ee4ed52b MFC: less v406. 2007-07-03 16:01:10 +00:00
Robert Watson c9f736071f Fix a bug in sblock() that has existed since revision 1.1 from BSD:
correctly return an error if M_NOWAIT is passed to sblock() and the
operation might block.  This remarkably subtle macro bug appears to
be responsible for quite a few undiagnosed socket buffer corruption
and mbuf-related kernel panics.

This bug has already been fixed in 7-CURRENT as part of the move to
using sx(9) locks to serialize simultaneous socket I/O, but is an
MFC candidate for all earlier FreeBSD -STABLE branches.

MFC after:	2 weeks
Found by:	Isilon
Submitted by:	jeff
Tested by:	jhb, Yahoo!
2007-07-03 10:14:13 +00:00
Xin LI db6ebccdc5 MFC: less v406 2007-07-03 05:12:43 +00:00
Pav Lucistnik d1919fb341 MFC 1.12: Replace rather inefficient bubble sort with a recursive depth-first
search.  This speeds up registration of packages considerably.
2007-07-02 08:05:34 +00:00
Pav Lucistnik 114cab1316 MFC rev. 1.114: Add new x11-drivers category.
MFC rev. 1.115: Add new virtual category kld
2007-07-01 10:37:16 +00:00
John Baldwin 547841703b MFC: Use the tsc to implement DELAY() if it is usable and calibrated.
Reviewed by:	peter
2007-06-29 21:05:28 +00:00
John Baldwin a4c445a724 Properly initialize the address value in siginfo for Linux binaries on
amd64.  amd64 has a separate tf_addr in the trapframe unlike i386 which
reuses tf_err to pass the address to signals.
2007-06-29 21:04:22 +00:00
Xin LI b9bc6bb86e MFC: Add -k option. 2007-06-29 01:45:18 +00:00
Andrew Thompson 7ccb5b2ffb MFC r1.37
Check the correct port to see if synced is true.

PR:             misc/113958
Submitted by:   Aaron Needles
2007-06-29 00:35:37 +00:00
Nate Lawson 293cb4b728 MFC: use busdma to get a page for activating speedstep mode. 2007-06-28 21:26:11 +00:00
Nate Lawson 13b05631fb MFC: makefile cleanups and remove hard-coded SMBus port from alpm and viapm. 2007-06-28 21:23:56 +00:00
John Baldwin b103099ce0 MFC 1.131: Fix for a race between the thread transmitting the request and
the thread processing the reply.
2007-06-28 03:28:28 +00:00
Rong-En Fan be3a81d8b6 Force commit to note in previous MFC the correct discussion for
removing warning about nullfs is

http://docs.freebsd.org/cgi/mid.cgi?6eb82e0706182246q6563ba03x31038082125b50ae

Reminded by:	des
2007-06-27 02:37:54 +00:00
Remko Lodder 2c17fdccd1 MFC v 1.66 udf_vnops.c
Correct corrupt read when the read starts at a non-aligned offset.

	PR: kern/77234
	Approved by: imp (mentor)
	Requested by: many many people
	Submitted by: Andriy Gapon <avg at icyb dot net dot ua>

Approved by:	imp (implicit, mentor)
2007-06-26 06:59:24 +00:00
Rong-En Fan 3318ce541a MFC rev 1.1435 (nullfs part)
- Remove the warning about NULL filesystem. It is stable and safe to use in
    both 6.x and 7.x. This is based on feedbacks on this thread

    http://docs.freebsd.org/cgi/getmsg.cgi?fetch=81818+0+current/freebsd-stable
    and my use it on 6.x.

Discussed on:  freebsd-stable@
2007-06-26 01:11:03 +00:00
John Baldwin 2de3a83342 MFC 1.11 - 1.14: Add a new counter for SACK retransmits and expand TCP
counters from 9 digits to 12.
2007-06-26 00:05:36 +00:00
John Baldwin d2ccdca650 MFC 1.306: Conditionally acquire Giant when dropping a reference on the
ktrace vnode during execve().
2007-06-25 23:58:46 +00:00
Ed Maste 905bb98d24 MFC compat32 argument to do_wait() to make it use fuword32() for readling
longs from 32 bit processes.

Submitted by:	jhb
2007-06-23 19:18:50 +00:00
Christian Brueffer 7f681d4ef1 MFC: rev. 1.11
Catch up with the code.
2007-06-23 15:37:34 +00:00
Maxim Konovalov cfcbbbbc2f MFC rev. 1.17: do not warn if the process exits before we get its name. 2007-06-23 06:22:24 +00:00
Maxim Konovalov f12dd6eb9b MFC rev. 1.56: an example how to create /etc/mtree style mtree(8) files. 2007-06-23 06:19:39 +00:00
Dmitry Morozovsky 47ea28e299 MFC rev 1.21:
Failing to set new frequency should not lead to powerd exiting.
	Change err(3) to warn(3) as three other cases.

Approved by:    njl, des
2007-06-22 00:01:55 +00:00
Ariff Abdullah 9978f1927b MFC: (revision 1.42)
- Fix headphone jack sensing support for Olivetti Olibook 610-430 XPSE [1].
- Drain all callout handlers during driver detach appropriately.
- M_NOWAIT -> M_WAITOK

Tested by:	[1] Gonzalo Lionel Rodriguez
2007-06-21 20:58:44 +00:00
Kip Macy 7de3aba2f5 MFC:
- switch adapter and port lock over to using sx so that resources
   can be allocated atomically
 - add debug macros for printing lock initialization / teardown
 - add buffers to port_info and adapter to allow each lock to have a
   unique name
 - destroy mutexes initialized by cxgb_offload_init
 - remove recursive calls to ADAPTER_LOCK
 - move callout_drain calls so that they don't occur with the lock held
 - ensure that only as many qsets as are needed are initialized and
   destroyed

 Sponsored by: Chelsio Inc.
2007-06-21 03:30:18 +00:00
Philip Paeps 51d9b2ff92 MFC: moused.c rev 1.79
Fix a (very) longstanding bug in moused(8) affecting high-resolution
    rodents when linear acceleration (-a) was enabled with a <1 value to
    slow them down.

    Previously, rounding errors would eat small movements so the mouse
    had to be moved a certain distance to get any movement at all.  We
    now calculate the rounding errors and take them into account when
    reporting movement.

Submitted by:	Oliver Fromme <olli -at- lurza.secnetix.de>
2007-06-20 08:29:18 +00:00
Hidetoshi Shimokawa 50dd67baa8 MFC: rev 1.7
Increase buffer size of DV stream to prevent buffer overrun.
2007-06-20 03:24:38 +00:00
Bruce A. Mah 20d4253f78 MFC: Fix off-by-one error (introduced in r1.60) that had the effect of
disallowing a read of exactly MAXPHYS bytes.

	pseudofs_vnops.c	1.63 -> 1.64
2007-06-19 18:16:42 +00:00
John Baldwin 558d2e3841 Regen. 2007-06-18 22:45:41 +00:00
John Baldwin 8beaa41f37 MFC: Support for running 32-bit multithreaded binaries using libthr on
amd64 including:
- Add 32-bit wrappers for thr_new(), thr_suspend(), and the umtx system
  calls.
- Add support to amd64 for constructing thread upcalls for 32-bit
  processes.
- Leave %fs and %gs alone in the signal trampoline for 32-bit processes on
  amd64.
- Add 'casuword32()' to amd64 and ia64.

Tested by:	emaste
2007-06-18 22:44:59 +00:00
Gregory Neil Shapiro 41c947f49d MFC: You can never have enough documentation.
Document the SENDMAIL_ALIASES, SENDMAIL_MAP_SRC, SENDMAIL_MAP_TYPE, and
     SENDMAIL_START_SCRIPT
     .Xr make.conf 5
     variables.
     These are used in
     .Pa /etc/mail/Makefile .

     PR:       conf/40548

     Revision  Changes    Path
     1.140     +40 -0     src/share/man/man5/make.conf.5
2007-06-18 04:35:36 +00:00
Kip Macy 7418d848a9 missed add 2007-06-18 02:05:17 +00:00
Nate Lawson 6488d39bc5 Fix compile problem using older acpi-ca interface. 2007-06-18 00:29:55 +00:00
Kip Macy 56d489adb1 MFC:
- switch over to standard method for initializing cdevs (contributed by scottl@)
 - break out timer_reclaim_task to be per-port
 - move msix teardown into separate function
 - fix bus_setup_intr for msi-x for the multi-port case so that msi-x resources
   are not corrupted on unload
 - handle 10/100/1000 base-T media and auto negotiation
 - bind qset to cpu even for singleq case
 - white space cleanups
 - remove recursive PORT_LOCK
 - move mtu setting to separate function
 - stop and re-init port when changing mtu
 - replace all direct references to m_data with calls to mtod
 - handle attach failure better by not trying to de-initialize
   taskqueues when they have not been allocated
 - no longer default to jumbo frames
 - fix gcc-4.2 signedness compile errors

Sponsored by: Chelsio Inc.
2007-06-17 23:52:17 +00:00
Nate Lawson 94a84f4cd8 MFC: add hooks for HPET missed in previous commit 2007-06-17 17:28:41 +00:00
Nate Lawson 71ec4d56ea MFC: add support for probing HPET via table 2007-06-17 17:19:21 +00:00
Hidetoshi Shimokawa 7d811fe770 MFC: Suppress compiler optimization so that orb[1] must be written first. 2007-06-17 10:46:19 +00:00
Christian Brueffer f7e872f7bd MFC:
Remove compat ifdefs for version < 500014

Approved by:	rwatson (mentor)
2007-06-17 09:38:27 +00:00
cvs2svn b8b6a48d35 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-06-17 00:43:51 +00:00
Wilko Bulte d91e141302 Forced commit to clarify preceding unclear commit message:
- core was contacted by Joerg Peter Schley requesting 2 comment lines
  be removed with his name & email address in it.
2007-06-16 20:49:49 +00:00
Wilko Bulte e55d7a5c14 Per request (to core) by the person refered to in the comment. 2007-06-16 19:23:14 +00:00
Maxim Konovalov 3d784733e9 MFC periodic/daily/480.status-ntpd. 2007-06-16 08:07:08 +00:00
Xin LI c1b9fb3c43 Pullup revision 1.191
date: 2007/03/12 09:13:13;  author: sos;  state: Exp;  lines: +1 -1
Fix support for the VIA8237A SATA part.

HW sponsored by: Bob Bishop
2007-06-15 08:53:23 +00:00
Nate Lawson 4fd173f06b MFC 1.4: note panic if struct selinfo is used without being zeroed. 2007-06-15 02:54:32 +00:00
Gregory Neil Shapiro 1a17b09de5 MFC: Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
/etc/rc.d/sendmail whether or not to run newaliases if the database
     is missing or the aliases text file is newer than aliases.db.

     In my opinion, the aliases file should never be automatically rebuilt.
     The current text form could represent a work in progress.  Therefore,
     in FreeBSD 7.0, this new option will default to "NO".  When this rc.d
     change is MFC'ed, it will need to remain "YES" to maintain backward
     compatibility.

     PR:             conf/86252
     Approved by:    re (kensmith)
     MFC after:      3 days

     Revision  Changes    Path
     1.316     +1 -0      src/etc/defaults/rc.conf
     1.17      +10 -8     src/etc/rc.d/sendmail
     1.1039    +6 -0      src/release/doc/en_US.ISO8859-1/relnotes/article.sgml
2007-06-15 02:39:36 +00:00
David Christensen c9513fb5d5 - Fixed build problem with unused variable. 2007-06-14 22:58:14 +00:00
David Christensen 17a170c20c - Updated firmware to latest release (v3.4.8) to fix TSO + jumbo frame lockup
- Added MSI (hw.bce.msi_enable) sysctl
- Fixed kernel panic when MSI is used and module is unloaded
- Added several new debug routines
- Removed slack space for RX/TX chains since it only covers sloppy coding
- Fixed a potential problem when programming jumbo MTU size in hardware
- Various other comment changes
- Added 2.5G support for BCM5708S
2007-06-14 21:28:14 +00:00
David Christensen 94a852ae8d New features:
- Moved BCM5706S/5708S SerDes support to brgphy (since they are not technically
  TBI interfaces)
- Added 2.5G support for BCM5708S
2007-06-14 21:07:19 +00:00
David Christensen 338e60de40 - Added a new Ethernet media type (2500BaseSX) to support BCM5708 controllers
which support a 2.5Gbps mode over fiber using next page extensions during
  autonegotiation.  Typically only found in blade systems which also include
  a Broadcom 2.5Gbps capable switch.
2007-06-14 20:02:41 +00:00
Bruce Evans 22d5981919 MFC: all except 1.63:
1.59-1.62: already merged
1.63: removal of bridge(45) not merged
1.64: already merged
1.65: use uintmax_t
1.66: repair formatting to 79 columns
1.67: increase accuracy of timeouts and thus of per-interval counts
1.68: style fixes

Requested by:	kuriyama (1.66)

1.66 changes the whitespace in output.  Hopefully nothing depends on the
exact misformatting that it fixes.
2007-06-14 12:38:12 +00:00
Giorgos Keramidas 56f6085db6 MFC 1.326 -- Add a description of moused_XXX_flags to rc.conf(5) 2007-06-14 08:09:37 +00:00
Bruce Evans 9a036897ec MFC: 1.9: fix an alaising bug. 2007-06-14 06:44:25 +00:00
Bruce Evans 4dbd66cbf3 MFC:
Makefile 1.76
src/math.h 1.62
src/s_modfl.c 1.1

Implement modfl().

This is a minor API change which hopefully won't cause any problems.
2007-06-14 06:39:18 +00:00
Bruce Evans 212599721f MFC: Makefile.inc 1.9: further deprecate scalb() and scalbf() by
removing their asm versions.  This fixes scalbf() as a side effect.
2007-06-14 06:25:31 +00:00
Bruce Evans 7facca2092 MFC:
s_modf.c 1.8
s_modff.c 1.8

Correctly handle inf/nan.
2007-06-14 06:08:38 +00:00
Bruce Evans 51645f1800 MFC:
e_lgamma_r.c 1.9
e_lgammaf_r.c 1.10

Don't assume that int == int32_t.  Minor fixes in comments.  Describe
special cases in more detail.
2007-06-14 06:06:12 +00:00
Bruce Evans 88fed32a0a MFC: 1.11: fix the threshold for (not) using the simple Taylor approximation. 2007-06-14 05:59:07 +00:00
Bruce Evans 611d2b4730 MFC: 1.8: several significant fixes and one optimization by merging better
code from sinmh() and tanhf().
2007-06-14 05:46:59 +00:00
Bruce Evans d39abd1077 MFC:
s_cbrt.c 1.8-1.14
s_cbrtf.c 1.8-1.17

Many significant optimizations and expansions of comments.  Not so many
significant fixes for accuracy.  Several different algorithms are used,
with some appearing only in intermediate versions.
2007-06-14 05:36:19 +00:00
Bruce Evans 3214d11dcb MFC:
s_round.c 1.4
s_roundf.c 1.4
s_roundl.c 1.2

Make roundf() actually work, and attempt to fix round() and roundl()
by cloning the fix for roundf().
2007-06-14 05:20:38 +00:00
Bruce Evans 9346e7042d MFC:
s_rint.c 1.12-1.13: one significant fix and one simplification.
s_rintf.c 1.10: one significant fix

The history is confusing.  The fix was supposed to be in s_rintf.c 1.9,
but that missed the double version and was buggy for the float version.
2007-06-14 05:16:44 +00:00
Bruce Evans cba182650b MFC:
s_logb.c 1.10
s_logbf.c 1.8

Fix logb*() on denormals.
2007-06-14 05:04:07 +00:00
Bruce Evans 085e457910 MFC:
s_log1pf.c 1.8: work around compiler bugs involving extra precision.

s_log1p.c 1.8
s_log1pf.c 1.9
Fix approximation(s) involving sqrt(2).
2007-06-14 05:00:55 +00:00
Bruce Evans 4021bfa918 MFC: e_logf.c 1.8-1.9: optimize the polynomial for float precision, and
fix the threshold for (not) using the simpler Taylor polynomial.
2007-06-14 04:52:21 +00:00
Bruce Evans 2b920dfa29 MFC: e_expf.c 1.10: fix the hi+lo approximation to log(2). 2007-06-14 04:47:02 +00:00
Bruce Evans 6d90fc638f MFC:
e_coshf.c 1.7
e_sinhf.c 1.8
s_tanhf.c 1.8

Fix some magic numbers and (except for tanhf()) some bugs in pseudo-code.
2007-06-14 04:46:09 +00:00
Bruce Evans 849430253f MFC: 1.9: fix the approximation to pio4. 2007-06-14 04:28:43 +00:00
Bruce Evans 4982d8c767 MFC:
k_cos.c 1.9-1.10
k_sin.c 1.9-1.10
k_tan.c 1.11-1.12
s_cos.c 1.10
s_sin.c 1.10
s_tan.c 1.10

Small optimizations and smaller fixes and cleanups for cos(), sin()
and tan() based on work on the float versions.
2007-06-14 04:16:14 +00:00
Bruce Evans 0bbf6ac0bf MFC (1.74: detach k_rem_pio2f.c from the build since it is now unused).
This goes with optimizing and debugging cosf(), sinf() and tanf().  This
is an internal API change.  Hopefully nothing outside of libm abuses
libm's internals.  Especially this internal, since it should never have
existed and had large bugs.
2007-06-14 03:54:32 +00:00
Rong-En Fan 00ef5d9d2c MFC the following changes:
src/lib/ncurses/form/Makefile		1.14
  src/lib/ncurses/menu/Makefile		1.16
  src/lib/ncurses/ncurses/Makefile	1.90
  src/lib/ncurses/panel/Makefile	1.15

  - When I introduce wide character enabled ncurses into base, all headers
    are installed twice (once in non-widec version, onec in widec version).
    Headers with widec enabled are compatible with non-widec version
    for libraries. However, if you do a repeat build/install, the curses.h
    is always overwritten. The reason is that headers and statics libraries
    are installed with -C option to preserve their mtime if no actual changes,
    which saves time when doing incremental builds. The curses.h is installed
    by non-widec ncurses first, then by widec ncurses. So next time, it happens
    again. You see something like this:

    # pwd
    /usr/src/lib/ncurses
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    install: curses.h -> /usr/include/curses.h
    ===> ncursesw (installincludes)
    install: curses.h -> /usr/include/curses.h
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    install: curses.h -> /usr/include/curses.h
    ===> ncursesw (installincludes)
    install: curses.h -> /usr/include/curses.h

    The solution is to disable installing headers in non-widec version. Now
    you see this:

    # pwd
    /usr/src/lib/ncurses
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    ===> ncursesw (installincludes)
    # make -s installincludes INSTALL="install -v"
    ===> ncurses (installincludes)
    ===> ncursesw (installincludes)

    For form/panel/menu libraries, the headers are the same for both version.
    To be consistent with ncurses, I also disable the installation in non-widec
    version.

Reported by:    des
Reviewed by:    ru
Thanks to:      ru
Approved by:    delphij (mentor)
2007-06-14 02:53:24 +00:00
Bruce Evans c4477466ff MFC:
e_lgammaf_r.c 1.8-1.9
e_rem_pio2f.c 1.8-1.19
k_cosf.c 1.8-1.15
k_rem_pio2f.c 1.8
k_sinf.c 1.8-1.13
k_tanf.c 1.9-1.20
math_private.h 1.19-1.20
s_cosf.c 1.8-1.15
s_sinf.c 1.8-1.14
s_tanf.c 1.8-1.14

Many significant optimizations and bug fixes for cosf(), sinf() and tanf().
For lgammaf_r(), no direct optimizations, one significant bug fix, and keep
up with API changes in cosf() and sinf() internals.

This involves internal API changes.  Hopefully nothing outside of libm
abuses libm's internals.
2007-06-13 18:17:25 +00:00
Bruce Evans 159bb19eb5 MFC (1.18: implement some inline functions to support complex functions). 2007-06-13 17:38:50 +00:00
Bruce Evans 9b85361010 MFC: (1.73: part of undeprecating logb*()). 2007-06-13 17:23:08 +00:00
Bruce Evans 7005cc6202 MFC: remove California Regent's clause 3, per letter. 2007-06-13 16:08:41 +00:00
Bruce Evans f6e4548c32 MFC (1.3: fix spelling of remquof() in its prototype). 2007-06-13 15:55:55 +00:00
Bruce Evans 317bab4252 MFC: ieee_test.3 1.12-1.13, ilogb.3 1.2-1.3, math.3 1.26-1.27:
Undeprecate logb*().  Add/fix history of logb*() and ilogb*().
2007-06-13 15:53:02 +00:00
Bruce Evans b9d43e5771 MFC (1.23: fix a cut-and-paste-o). 2007-06-13 15:43:21 +00:00
Bruce Evans fea3be9cf2 MFC (1.11: fix some comments). 2007-06-13 15:33:26 +00:00
Bruce Evans 130f77839a MFC:
b_log.c 1.8, b_tgamma.c 1.7, mathimpl.h 1.6: fix aliasing bugs in TRUNC()
and move its definition to mathimpl.h.

b_tgamma.c 1.8-1.9: document and fix tgamma() on some special args, and
clean up.

mathimpl.h 1.7: clean up.
2007-06-13 15:28:11 +00:00
Bruce Evans 873d231c63 MFC (1.3: remove an unneeded fnstcw instruction in fegetenv()). 2007-06-13 15:10:57 +00:00
Bruce Evans a194d5935a MFC (1.4: remove an unneeded fnstcw instruction in fegetenv()). 2007-06-13 15:10:15 +00:00
Bruce Evans 30f74172f9 MFC (1.6: fix fesetenv() clobbering the i387 register stack). 2007-06-13 15:06:32 +00:00
Joel Dahl a04a769f3a MFC:
Document support for the following sound cards:

- AudioTrak Prodigy HD2
- AudioTrak Prodigy 7.1 XT
- ESI Juli@
2007-06-13 13:46:01 +00:00
Ariff Abdullah 8828e6772c MFC:
Revision:

  1.39      src/sys/dev/sound/pci/hda/hdac.c

- Add codec id for ALC660 [1]
- Add codec id for AD1988B, along with fixing its line-in and other
  issues (with proper quirks). [2]

Submitted by:	[1] [email protected]
             	[2] Oliver Brandmueller [email protected]
2007-06-13 01:52:26 +00:00
John Baldwin 43f1fa2269 MFC 1.30: Certain (bad) values of sack blocks can end up corrupting the
sack scoreboard.  Make the checks in tcp_sack_doack() more robust to
prevent this.
2007-06-12 19:21:54 +00:00
John Baldwin 3b053350a7 MFC 1.28: Fix for a bug that causes SACK scoreboard corruption when the
limit on holes per connection is reached.
2007-06-12 19:20:13 +00:00
John Baldwin 87b112e9f1 MFC 1.315: In the SYN_SENT case, Initialize the snd_wnd before the call to
tcp_mss().  The TCP hostcache logic in tcp_mss() depends on the snd_wnd
being initialized.
2007-06-12 18:53:32 +00:00
Ariff Abdullah 623f5d559b MFC:
Revisions:

  1.13      src/sys/dev/sound/pci/envy24.c
  1.2       src/sys/dev/sound/pci/envy24.h
  1.13      src/sys/dev/sound/pci/envy24ht.c
  1.5       src/sys/dev/sound/pci/envy24ht.h
  1.6       src/sys/dev/sound/pci/spicds.c
  1.4       src/sys/dev/sound/pci/spicds.h

Bring in a bunch of bug fixes and some code to support more chipsets.
Neither me nor Joel have access to any of this hardware, so all tests
have been made by Konstantin and Artem.  Commit message mostly written
by Konstantin.

envy24:
- Add test code to support rear line-in input on 'Terratec DMX 6fire'
  audio card.  This code is also intended to be used in the future for
  support of cards, that have I2C-to-GPIO expanders wired between the
  control line of the audio codec and the Envy24, however such cards
  are too complex and i can't add that support without hardware sample
  of such board, i've already tried and failed.

envy24ht:
- Add support for 'AudioTrak Prodigy HD2'.
- Add support for 'AudioTrak Prodigy 7.1 XT'.
- Add support for 'ESI Juli@' (Works ok, DAC volume is hard-coded for
  the time being, so 'mixer vol ...' doesn't work, only 'mixer pcm
  ...' works). [1]
- Fix bug in the init data for M-Audio Revolution 5.1, that
  results in distorted sound.
- Add software volume control (now 'mixer pcm' works, thanks to Ariff).
- Add support for more samples rates - 176.4kHz and 192kHz.
- Fix problem with the 192kHz samples rate playback when 24.576MHz
  crystal is used on the board instead of 49.152MHz crystal.

spicds:
- Add support for Asahi Kasei flagship DAC - AK4396 (used in AudioTrak
  Prodigy HD2).

Submitted by:	Konstantin Dimitrov <[email protected]>
Tested by:	Artem Antonov [1]
2007-06-11 19:33:28 +00:00
Pav Lucistnik 1fb576d754 MFC 1.31-1.32:
- Revert previous revision, it was incorrect
  - Add an example using fdisk instead
2007-06-11 19:09:49 +00:00
Nate Lawson 37c1bad581 MFC: add suspend method to stop Cx idling and fix a logic bug in per-CPU
Cx sysctl.
2007-06-11 18:54:09 +00:00
JINMEI Tatuya 023d4c924c MFC:
cleanup about the reassembly structures and routine:
  - removed unused structure members
  - fixed a minor bug that the ECN code point may not be restored correctly

Approved by:    ume (mentor)

src/sys/netinet6/frag6.c:  	1.31
src/sys/netinet6/ip6_var.h:  	1.38
2007-06-11 17:04:10 +00:00
Konstantin Belousov 1113c3c912 Bump __FreeBSD_version for BOP_BDFLUSH MFC 2007-06-11 11:54:16 +00:00
Konstantin Belousov 08eedc9c67 MFC
rev. 1.521 of src/sys/kern/vfs_bio.c
rev. 1.477 of src/sys/sys/proc.h

Disable nesting of BOP_BDFLUSH().
2007-06-11 11:27:04 +00:00
Konstantin Belousov 812c39c456 MFC:
rev. 1.11 of src/sys/geom/geom_vfs.c
rev. 1.516 of src/sys/kern/vfs_bio.c
rev. 1.35 of src/sys/nfs4client/nfs4_vnops.c
rev. 1.272 of src/sys/nfsclient/nfs_vnops.c
rev. 1.195 of src/sys/sys/buf.h
rev. 1.18 of src/sys/sys/bufobj.h
rev. 1.73 of src/sys/ufs/ffs/ffs_extern.h
rev. 1.133 of src/sys/ufs/ffs/ffs_snapshot.c
rev. 1.324 of src/sys/ufs/ffs/ffs_vfsops.c

Avoid dealing with buffers in bdwrite() that are from other side of
snaplock divisor in the lock order then the buffer being written. Add
new BOP, bop_bdwrite(), to do dirty buffer flushing for same vnode in
the bdwrite(). Default implementation, bufbdflush(), refactors the code
from bdwrite(). For ffs device buffers, specialized implementation is
used.

This commit changes KPI/KBI, thus recompilation of out of tree kernel
modules is required.

Approved by:	re (kensmith)
2007-06-11 10:53:48 +00:00
JINMEI Tatuya 97e4ecb8de MFC:
fixed memory leak for IPv6 multicast membership information associated
with interface addresses.

Approved by:    gnn (mentor)

src/sys/netinet6/in6.c:			1.71
src/sys/netinet6/in6_ifattach.c:	1.36
src/sys/netinet6/in6_var.h:		1.31
2007-06-10 17:17:55 +00:00
Maxim Konovalov f741c3fa4f MFC rev. 1.103: make ipfw(8) show rules with mac/mac-type options
correctly.
MFC rev. 1.105: teach get_mac_addr_mask() to not silently accept
incorrect MAC addresses.
2007-06-10 13:59:36 +00:00
Konstantin Belousov baa1a4d0c2 MFC remnant of rev. 1.7. 2007-06-10 11:09:39 +00:00
David Malone 62cd1e885d MFC 1.30: Help ng_fec deal with multicast addresses.
This isn't exactly the same patch as in -current as some of the
in-kernel multicast API is different.
2007-06-10 07:41:25 +00:00
David Malone 2005fb913b MFC 1.209: Don't verify UDP IPv4 checksum in-place. 2007-06-10 07:29:08 +00:00
David Malone 55ce04fb41 MFC: Fix some warnings by making things const, adding missing headers,
removing some unused variables and making a variable unsigned.
2007-06-10 07:04:09 +00:00
Matteo Riondato cbc3174849 MFC:
rpcbind.c: rev. 1.15, 1.16, 1.17
	rpcbind.8: rev. 1.10

1)Make it possible for rpcbind(8) to bind TCP listening socket to an IP
other than INADDR_ANY.

2) Add the -6 option to specify "IPv6 only".

PR:	84494, 1122566
2007-06-09 09:28:30 +00:00
Ariff Abdullah e68d8dd9da MFC: (revision 1.9)
Fix (enable) phone out for laptops with ALC655, specifically
for Amilo Pro V2055.

PR:		kern/113101
Submitted by:	[email protected]
2007-06-08 17:33:38 +00:00
John Baldwin e7983bac9d MFC 1.139: Fix a snafu in the changes in 1.138.
PR:		kern/113387
Submitted by:	Andre Albsmeier
2007-06-08 16:51:20 +00:00
Pav Lucistnik 76d83976ca MFC addition of bsd.port.options.mk 2007-06-08 16:05:32 +00:00
Bjoern A. Zeeb 09b4ed255b MFC:
1.200 sbin/ipfw/ipfw.8, 1.104 sbin/ipfw/ipfw2.c
  1.110 sys/netinet/ip_fw.h, 1.164 sys/netinet/ip_fw2.c

  Add support for filtering on Routing Header Type 0 and
  Mobile IPv6 Routing Header Type 2 in addition to filter
  on the non-differentiated presence of any Routing Header.
2007-06-07 09:50:53 +00:00
John Baldwin ea0df69126 MFC: Make gcore(1) 64 bit safe. 2007-06-06 22:06:42 +00:00
John Baldwin 7b648c2f59 MFC: Add support for kernel modules with a single PT_LOAD section. 2007-06-06 21:43:35 +00:00
John Baldwin cdd470723c MFC 1.176: Add vm map and object locking to each_writable_segment(). 2007-06-06 21:30:42 +00:00
Gleb Smirnoff db22a169ac Merge 1.47:
Make it possible that carpdetach() unlocks on return. Then, in
  carp_clone_destroy() we are on a safe side, we don't need to
  unlock the cif, that can me already non-existent at this point.

  Reported by:    Anton Yuzhaninov <citrin rambler-co.ru>
2007-06-06 16:20:50 +00:00
Doug Ambrisko aaa1cf9be2 MFC all of the remaining changes. This brings over improved ioctl
support and makes MegaCli work on amd64.  Scott supplied patches
to make the ioctl commands not block the controller.  MegaCli
still has some issues with our emulation and create some bogus
commands so flashing doesn't work.

This should loosely resolve 113232.  We were waiting on some other
fixes to go into -current before migrating this to -stable.

PR:		113232
Submitted by:	scottl
2007-06-06 15:59:29 +00:00
Andrew Thompson 04e40776cc MFC r1.99
Remove a KASSERT intended to help the developer, the condition is no longer
  valid since the span code was added.
2007-06-06 00:59:20 +00:00
Scott Long dff62d9fbf Fix last-minute typo. 2007-06-05 22:54:01 +00:00
Scott Long a1364fc99d MFC: MPI 1.5.16, SAS topology scan, SATA WC enable tunable 2007-06-05 21:32:57 +00:00
Scott Long 5c18248559 Add build glue for the mfip driver. 2007-06-05 21:31:11 +00:00
Scott Long 3c34d4f44f Add the CAM passthrough driver for MFI 2007-06-05 21:27:22 +00:00
Jack F Vogel 6d53ebac3a MFC of a couple small fixes: 82571 LAA reset workaround,
and invalid eeprom problem on some PCI-E systems.
2007-06-05 17:44:01 +00:00
David Christensen 00ca96f589 Merged changes from HEAD, including:
- Updated copyright date to 2007.

- Tested with BCM5706 A3.

- Added ID for BCM5708 B2.

- Removed unused driver version string.

- Modified BCE_PRINTF macro to automatically fill-in the sc pointer.

- Fixed a kernel panic when the driver was loaded as a module from the
command-line because the MII bus pointer was null (i.e. the MII bus
hadn't been enumerated yet).

- Added fix proposed by Vladimir Ivanov <[email protected]> to prevent
driver state corruption when releasing the lock during the ISR in
bce_rx_intr() to send packets up the stack.

- Added new TX chain and register read sysctl interfaces for debugging.

- Cleaned up formatting for various other debug routines.

- Added a new statistic maintained by firmware which tracks the number
of received packets dropped because no receive buffers are available.
2007-06-05 01:56:08 +00:00
Bruce A. Mah f08b2a285d Unbreak release notes build. 2007-06-04 18:26:35 +00:00
Ariff Abdullah 11271aca7f MFC:
Simmilar, but different treatment:

Insert NULL pointer checking around devclass_get_maxunit(pcm_devclass, ..) .
Things can get ugly without it due to uninitialized class.

err.. perhaps we should teach devclass_get_maxunit() to return -1 ?
2007-06-04 09:06:05 +00:00
cvs2svn 6de6c8a89a This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-06-04 02:50:31 +00:00
Philip Paeps 6ee6edddf4 MFC: Add support for Asus A3N laptops.
Submitted by:	Holger Jorra <holger_jorra -at- gmx.net>
2007-06-03 22:44:23 +00:00
Christian Brueffer 8c88e4e1b5 MFC:
New release notes:
- touch -A
- xorg 7.2 update
- mxge(4)
- X11BASE -> LOCALBASE transition
- netcat update to OpenBSD 4.1 version
- fdisk -p
2007-06-03 14:59:11 +00:00
Philip Paeps 7705da2193 MFC: Don't lie about saved reports.
PR:		gnu/89777
Submitted by:	edwin
2007-06-03 13:52:46 +00:00
Hidetoshi Shimokawa 7ce454b1a8 MFC: rev 1.10
Discard backlog on GDB port when connected.
2007-06-03 13:43:00 +00:00
Philip Paeps e7ec127b17 MFC: moused.c rev 1.77 and rev 1.78
moused.8 rev 1.60 and rev 1.61
     Makefile rev 1.9

    Add dynamic acceleration to moused(8).  This introduces a '-A' flag to
    control the acceleration algorithm.  It can be used together with the '-a'
    flag for regular acceleration. [1]

    Convert macros to use C99's syntax for macros with a variable number of
    arguments.

    Markup fixes to moused(8).

Submitted by:	Oliver Fromme <olli -at- lurza.secnetix.de> [1]
Behind on MFCs:	philip
2007-06-03 13:36:04 +00:00
Pyun YongHyeon f4956d717b MFC if_re.c, 1.84 to RELENG_6
The TCP checksum offload handling in the 8111B/8168B and 8101E PCIe can
  apparently be confused by short TCP segments that have been manually
  padded to the minimum ethernet frame size. The driver does short frame
  padding in software as a workaround for a bug in the 8169 PCI devices
  that causes short IP fragments to be corrupted due to an apparent
  conflict between the hardware autopadding and hardware IP checksumming.

  To fix this, we avoid software padding for short TCP segments, since
  the hardware seems to autopad and checksum these correctly (even the
  older 8169 NICs get these right). Short UDP packets appear to be
  handled correctly in all cases. This should work around the IP header
  checksum bug in the 8169 while not tripping the TCP checksum bug in
  the 8111B/8168B and 8101E.

PR:	112089
2007-06-03 07:47:40 +00:00
Pyun YongHyeon cd2071c9b8 MFC if_re.c, 1.81 to RELENG_6
Fix re_setmulti() so that it works correctly for PCIe chips where
  the multicast hash table are in reverse order compared to older
  devices.

PR:	112089
2007-06-03 07:43:15 +00:00
Nate Lawson b726a59860 MFC: remove extraneous "can't get _ADR" messages. 2007-06-02 19:15:58 +00:00
Christian Brueffer 42eed1100e MFC: 1.78 + 1.85
Enable automatic hardware notes generation for mxge(4).
2007-06-02 08:02:23 +00:00
Dag-Erling Smørgrav 4ef3af9582 MFC: various improvements, including fileno allocation bug fix 2007-06-01 20:56:18 +00:00
Hidetoshi Shimokawa 5e1d818080 Fix a breakage with "MODULES_WITH_WORLD=true make buildworld".
PR: kern/113204
2007-06-01 00:50:59 +00:00
Colin Percival a7fa0414b8 Fix comma placement error in previous commit. 2007-05-31 18:37:09 +00:00
Maxim Konovalov ebace6475a MFC rev. 1.33 traceroute.c and rev. 1.18 traceroute6.c: make it
possible to use 1 sec wait time.
2007-05-31 14:01:51 +00:00
Maxim Konovalov 9078fd6cd4 MFC rev. 1.39 fdisk.8 and rev. 1.83 fdisk.c: add -p flag -- print
a slice table in fdisk configuration file format.
2007-05-31 13:52:24 +00:00
Xin LI 0bd3fc7b99 MFC: netcat from OpenBSD 4.1-RELEASE. 2007-05-31 07:23:11 +00:00
Xin LI 7f7d95a736 MFC revision 1.137
date: 2007/05/17 06:08:42;  author: delphij;  state: Exp;  lines: +8 -5
Tighten IP address check, prevent '..' from being passed
from the check.

Submitted by:   Ren Zhen <bg1tpt gmail com>
2007-05-31 02:42:37 +00:00
Hidetoshi Shimokawa 233a8cfd9c MFC: rev. 1.7
Change default value of hw.firewire.dcons_crom.force_console to 0
for least astonishment.
2007-05-30 12:23:38 +00:00
Hidetoshi Shimokawa 2170a9788e MFC rev. 1.13: Make compile without GDB option. 2007-05-30 12:22:08 +00:00
Andrew Thompson 4a14b2bd3d MFC r1.13, 1.14
- Fix a mbuf leak where sc_start fails or the protocol is none.
- packets on the input interface were counted twice
- Use IFQ_HANDOFF instead of rolling our own
2007-05-30 08:47:15 +00:00
Yaroslav Tykhiy 807c419ef8 MFC 1.19:
Fix a formatting error: the list of control packets ends earlier.
2007-05-30 08:26:01 +00:00
Andrew Gallatin 430094b590 MFC the mxge 10GbE driver. 2007-05-29 16:37:16 +00:00
Bruce A. Mah 89b171a394 MFC: Add a few sentences of caution for Microsoft Vista users who might
want to try resizing partitions.

	install.sgml	1.37 -> 1.39
2007-05-29 14:16:25 +00:00
Dag-Erling Smørgrav 2bbd5b89da MFC: (1.78) handle temporary redirects (HTTP status code 307) 2007-05-29 12:35:26 +00:00
Konstantin Belousov e31fb94d09 MFC rev. 1.309 of sys/kern/kern_descrip.c,
rev. 1.438 of sys/kern/vfs_syscalls.c,
    rev. 1.77 of sys/sys/filedesc.h:
Mark the filedescriptor table entries with VOP_OPEN being performed for them
as UF_OPENING. Disable closing of that entries. This should fix the crashes
caused by devfs_open() (and fifo_open()) dereferencing struct file * by
index, while the filedescriptor is closed by parallel thread.

RELENG_6 testing by:	Mark Kane <mark at mkproductions org>
2007-05-29 10:09:43 +00:00
Dag-Erling Smørgrav 708cae8f72 MFC: (1.143) break cyclic dependency 2007-05-29 09:28:10 +00:00
Ariff Abdullah a75ae160c9 Enable 4 virtual playback channels by default, since the last stumbling
block (snd_ich) has been dealt with.
2007-05-28 21:18:06 +00:00
Ariff Abdullah 33a44220b1 MFC (revision 1.75)
* Fix possible integer overflow during speed calibration. Delay final
  initialization (pcm_setstatus) after calibration finished.

PR:		kern/100169
Tested by:	Kevin Overman <[email protected]>

* Fix (or rather workaround) Intel 440MX Errata #36
  - http://www.intel.com/design/chipsets/specupdt/245051.htm

AC97 Soft Audio and Soft Modem Master Abort Errata

Issue:
  Use of either soft audio or soft modem on an Intel® 82443MX PCISet
  based platform running a 100 MHz Processor System Bus and an AC97 codec
  may result in failures. The system continues to function normally while
  the AC97 hardware may not resume and may require a cold-boot to
  recover. As a result of the failure, the Master Abort Status bit will
  be set in the audio or modem function PCI header space.

Workaround:
  Force uncacheable DMA on both BDL and pcm buffers.

Tested by:	Emil Holmstr|m <[email protected]>
2007-05-28 21:07:41 +00:00
Kip Macy c3775c1801 m_sanity isn't available on RELENG_6 - don't define with INVARIANTS 2007-05-28 07:37:47 +00:00
Kip Macy 9babb1de95 add new files to build 2007-05-28 07:08:44 +00:00
Kip Macy f8014df760 - Update to 1.0.0.86 of vendor source
- add some performance improvements for small packet workloads
  - Double the number of descriptors that a single call to send can use
  - Quadruple the number of descriptors that can be reclaimed per pass
  - only run reclaim twice per second
  - increase coalesce timer from 3.5us to 5us
- set OACTIVE so interface doesn't stall when the ring fills

Sponsored by: Chelsio Inc.
2007-05-28 06:26:07 +00:00
Xin LI f368e76a50 Respect NO_INET6 knob (MFC in spirit of rev. 1.61).
Submitted by:	Alex Kozlov <spam rm-rf.kiev.ua>
PR:		bin/96335
2007-05-28 06:16:40 +00:00
Hidetoshi Shimokawa 300de2d05d MFC: Make sure fwsid is not NULL. 2007-05-28 04:36:37 +00:00
Hidetoshi Shimokawa 8110a2f2e5 MFC: Simplify the bus probe routin using a kthread. 2007-05-28 04:33:43 +00:00
Hidetoshi Shimokawa f470551ad0 MFC: Include stand.h for loader. 2007-05-28 04:31:23 +00:00
Giorgos Keramidas 38da93a8c7 MFC pfsync_syncpeer option for rc.conf(5).
: Add a pfsync_syncpeer option to /etc/defaults/rc.conf and rc.conf(5),
: which can be used to turn off multicast pfsync support, and enable
: the transmission of directed PFSYNC (IP protocol: 240) packets to
: a specific "sync peer" host.
:
: PR:             conf/111225
: Submitted by:   Bas van Beek <[email protected]>
: Approved by:    mtm, mlaier
: MFC after:      2 weeks
:
: Revision  Changes    Path
: 1.314     +1 -0      src/etc/defaults/rc.conf
: 1.5       +6 -1      src/etc/rc.d/pfsync
: 1.323     +20 -0     src/share/man/man5/rc.conf.5
2007-05-28 02:00:54 +00:00
Lukas Ertl 672cf03880 MFC:
Fix handling of filenames containing whitespace.

   PR:      bin/112860
2007-05-27 10:15:18 +00:00
cvs2svn c362acbd09 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-05-27 04:39:30 +00:00
Maxim Konovalov b3b45bab01 MFC rev. 1.422: fix typo. 2007-05-26 07:31:47 +00:00
Maxim Konovalov 2bdb6d475a o MFC revs. 1.33 - 1.35: make iostat -Ix work, style. 2007-05-26 07:30:23 +00:00
Nate Lawson d4859ad6e8 MFC: add the debug.acpi.suspend_bounce sysctl. 2007-05-26 00:48:55 +00:00
Matt Jacob 58eeca829c MFC rev 1.190 (avoid bogus geometry if transport error)
MFC rev 1.200-1.202 (EasyMP3 quirk)
2007-05-25 20:14:02 +00:00
John Baldwin 2924506794 MFC 1.49: Get the correct softc pointer when checking to see if a PCI-PCI
bridge has MSI blacklisted.
2007-05-25 17:07:32 +00:00
John Baldwin a1d8fd1766 MFC: Support 64-bit scatter-gather DMA addresses in 64-bit capable AHCI and
Marvell controllers.

Approved by:	sos
2007-05-25 17:06:46 +00:00
John Baldwin cfcc1091ea MFC: Fix statistical accounting for bytes and packets during sack
retransmits.
2007-05-25 16:36:39 +00:00
Dag-Erling Smørgrav 6d60df2181 All right, pass me the pointy hat. Come to think of it, I'll take the
whole box...
2007-05-25 13:31:36 +00:00
JINMEI Tatuya 75b3988728 MFC:
- Disabled responding to NI queries from a global address by default as
  specified in RFC4620.  A new flag for icmp6_nodeinfo was added to enable the
  feature.
- Also cleaned up the code so that the semantics of the icmp6_nodeinfo
  flags is clearer (i.e., defined specific macro names instead of using
  hard-coded values).

Approved by:    gnn (mentor)

src/sys/netinet/icmp6.h:	1.21
src/sys/netinet6/icmp6.c:	1.76
src/sys/netinet6/in6_proto.c:	1.43
2007-05-25 06:35:46 +00:00
Pav Lucistnik cc1e53ab06 MFC 1.29:
Replace a fairly opaque sentence with a much clearer wording from NetBSD.
2007-05-24 22:52:46 +00:00
Dag-Erling Smørgrav b718577c9d Revert previous commit. 2007-05-24 19:15:09 +00:00
Dag-Erling Smørgrav 8ece3978f3 MFC (forgotten in previous commit) 2007-05-24 19:13:40 +00:00
Doug White 654eca2c2e Fix assertion accidentally changed to HEAD version. This was breaking the
RELENG_6 build.

Pointy hat to: des
2007-05-24 18:55:28 +00:00
Dag-Erling Smørgrav d9cc0450b4 MFC: fix infinite loop bug 2007-05-24 16:18:50 +00:00
Dag-Erling Smørgrav c8dbf49a3f MFC: simplify vnode reclamation, fix fileno allocation 2007-05-24 16:17:44 +00:00
Dag-Erling Smørgrav ea808e60a8 MFC: remove T/TCP support 2007-05-24 16:15:32 +00:00
Dag-Erling Smørgrav 9bd54582b3 MFC: add FILESYSTEMS 2007-05-24 16:14:37 +00:00
Dag-Erling Smørgrav b32a2af3c3 MFC: apply "additional TCP options" earlier 2007-05-24 16:10:52 +00:00
Dag-Erling Smørgrav 1afa707349 MFC: expose vdropl() 2007-05-24 16:09:38 +00:00
Dag-Erling Smørgrav a74a6d7da0 MFC: (1.9) missing El 2007-05-24 16:07:32 +00:00
Dag-Erling Smørgrav 9b97c2d56a MFC: (1.14) set default refresh interval to one second 2007-05-24 16:06:54 +00:00
Dag-Erling Smørgrav d553bfdfad MFC: (1.60, 1.61) errors in nocona / prescott support 2007-05-24 16:05:25 +00:00
Dag-Erling Smørgrav 6b8adf5f32 MFC: add CPUTYPE support for "core" and "core2". 2007-05-24 16:03:44 +00:00
Colin Percival 72916b9307 MFC rev. 1.62: Complain about "tar -c /path/which/does/not/exist". 2007-05-24 09:27:50 +00:00
Colin Percival 1b7b255079 MFC: Use unsigned comparisons. 2007-05-24 09:24:18 +00:00
John Baldwin 7ef1ef0be9 MFC 1.308: Use kern_open() to open /dev/null in fdcheckstd(). 2007-05-23 20:36:24 +00:00
John Baldwin fe4e09b07d Revert previous commit, was part of a different change.
Reported by:	kib
2007-05-23 20:29:41 +00:00
Christian Brueffer 8b6eb4a232 MFC: rev. 1.47, 1.48 and relevant changes from 1.49
- Use our standard section 4 SYNOPSIS.
- Add a bunch of missing Xrefs.
- Minor nits.
2007-05-23 19:45:49 +00:00
John Baldwin e86f3750df MFC: Rework the support used by ABIs to override resource limits so that
a 64-bit process exec'd by a 32-bit process doesn't end up with 32-bit
limits.

This doesn't break the ABI as neither of the 32-bit ABIs (COMPAT_LINUX32
and COMPAT_IA32) are buildable as modules on 6.x/amd64 and none of the
other ABIs use this hook.
2007-05-23 18:24:43 +00:00
John Baldwin 5c92f59f50 MFC 1.352: Fix a typo in a bootverbose printf. 2007-05-23 18:12:00 +00:00
John Baldwin 70c89e0a99 MFC 1.350: Use more specific local variable pointers to narrow some
expressions.
2007-05-23 18:11:30 +00:00
Colin Percival 1e1ff2d188 Fix buffer overflow in libmagic(3).
Security:	FreeBSD-SA-07:04.file
Approved by:	so (cperciva)
2007-05-23 16:13:20 +00:00
Mike Makonnen 128be9ee9f MFC ver. 1.307 and 1.308:
Comment out knobs that are supposed to be examples.
2007-05-23 00:56:58 +00:00
Colin Percival 34c1ed49d8 MFC revision 1.6 and part of revision 1.4:
* Add missing '${BASEDIR}/'s, thereby fixing problems when the "-b basedir"
option is used.
 * Don't add new kernel modules into a non-existent kernel directory.
 * Remove files before the directory which contains them.
2007-05-23 00:31:15 +00:00
Matt Jacob 242d7e905e MFC increase bitfield to be wide enough to take the default value that
gets set into it.
2007-05-23 00:25:18 +00:00
Mike Makonnen c553d97c4e MFC ver. 1.1:
----------------------------
date: 2007/04/21 11:23:33;  author: mtm;  state: Exp;
Regression tests for recent changes to inet6_rth_* family of functions
regarding RFC3542 compliance.
2007-05-22 22:17:44 +00:00
Mike Makonnen 0dc921a378 MFC:
sys/sys/socket.h     ver. 1.93
	lib/libc/net/rthdr.c ver. 1.9
----------------------------
date: 2007/04/19 15:48:16;  author: mtm;  state: Exp;  lines: +4 -2
Make inet6_rth_* family of functions more compliant with RFC3542:
1. CMSG_NXTHDR(mhdr, cmsg) is supposed to dereference cmsg and return
   the next header in the chain. If cmsg is NULL it should return
   the first header, behaving essentially like CMSG_FIRSTHDR().
2. inet6_rth_(space|init|add) should do basic checking on their input
   to verify that the number of headers (segments) is
   between 0 and 127 inclusive.
2007-05-22 22:07:49 +00:00
Mike Makonnen 7061705884 MFC ver. 1.30:
date: 2007/04/19 15:41:00;  author: mtm;  state: Exp;  lines: +68 -19
o Increase the buffer to hold extra headers to 10240 bytes (the minimum
  according to RFC3542 sec. 20.1) and allocate it dynamically.
o In verbose mode, specify a warning if any control data from recvmsg(2)
  was truncated because the buffer was too small.
o When printing the extra headers make sure not to overrun the buffer
  boundaries.

PR: kern/99425
2007-05-22 22:01:44 +00:00
Christian Brueffer 1c0268be72 MFC: rev. 1.8
Add some newly supported controllers.
2007-05-22 19:12:10 +00:00
Christian Brueffer 7c41b687b8 MFC:
New release notes:
- axe(4) altq support
- pw -M
- twa(4) update to 3.60.03.006
- ftpd(8) RFC2389 and RFC2640 support
- lagg(4)
- snd_hda
- snd_envy24 / envy24ht
- snd_spicds
- mpt(4) updates

Modified release notes:
- small fixes in the top -j entry
2007-05-22 19:09:16 +00:00
Yaroslav Tykhiy ae5c7cc164 MFC 1.48-1.50: Improve markup, add a missing xref. 2007-05-22 10:10:56 +00:00
Yaroslav Tykhiy a9518fd7d0 MFC 1.47:
Document the current practice of locking and disabling accounts
  through passwd(5).
2007-05-22 10:07:22 +00:00
Christian Brueffer 9b01af15f4 MFC:
axe(4) supports altq now.
2007-05-21 18:16:30 +00:00
Christian Brueffer de611c528d MFC: rev. 1.73
Add missing curly braces.

Approved by:	rwatson (mentor)
2007-05-21 18:14:12 +00:00
Christian Brueffer 2be2f5ca3a MFC: rev. 1.44
ALTQify.

Approved by:	rwatson (mentor)
2007-05-21 18:13:11 +00:00
Christian Brueffer a1165f7d56 MFC:
Remove compat ifdefs for FreeBSD versions < 500014.

Approved by:	rwatson (mentor)
2007-05-21 18:10:48 +00:00
Yoshihiro Takahashi abe6ccb001 MFC: Disable PREEMPTION option. 2007-05-21 11:55:02 +00:00
Pav Lucistnik 158c8af66e MFC 1.35:
Document RFTHREAD
2007-05-21 07:24:02 +00:00
Pav Lucistnik eeb4b772ed Sync with HEAD 2007-05-20 22:21:43 +00:00
Maxim Konovalov 9e7df64774 MFC rev. 1.10 ubsa.4, rev. 1.23 ubsa.c, rev. 1.294 usbdevs:
add AnyData ADU-E100H modem.
2007-05-20 12:34:39 +00:00
Pav Lucistnik a33bbe9f58 MFC 1.14
Add `accept dns' to rfcomm-server example
2007-05-20 05:03:16 +00:00
Scott Long 947d24c612 MFC: Catch up to twa build changes. 2007-05-19 17:08:27 +00:00
Christian Brueffer 5cb7ec9369 MFC: rev. 1.4 + 1.5
- The MFI driver appears first in FreeBSD 6.1
- Revise markup
2007-05-19 12:03:33 +00:00
Pav Lucistnik e84ee744f9 MFC 1.16:
Replace incomprehensive description of -m by much clearer text from OpenBSD,
  with the exception of one word.
2007-05-19 11:32:34 +00:00
Pav Lucistnik 74e1bde955 MFC 1.13:
Talk more about swap backing
2007-05-19 11:30:32 +00:00
Pav Lucistnik 2fdeb055ee MFC 1.16:
Remove cred argument, which was removed from code by phk two years ago
2007-05-19 11:27:18 +00:00
Pav Lucistnik eed92c1673 MFC 1.21:
Correct two typos
2007-05-19 11:24:28 +00:00
Pav Lucistnik a1a15f4d5a MFC 1.42:
Markup fixes.
MFC 1.44:
  Expand documentation for LD_TRACE_LOADED_OBJECTS_FMT? variables
MFC 1.45:
  Remove %m formatter, it's ifdef 0'ed in the code from the very beginning
2007-05-19 11:20:31 +00:00
Pav Lucistnik 2a88a988e0 MFC 1.24:
Expand documentation of -f option
2007-05-19 11:14:56 +00:00
Pav Lucistnik eca9b261c7 MFC 1.30:
Document /boot/mbr (non-interactive boot block)
2007-05-19 11:10:50 +00:00
Pav Lucistnik f9b3cbfdce MFC 1.13:
Fix -D description to read debug_options
2007-05-19 11:07:45 +00:00
Scott Long a0c2cd681f MFC: Upgrade to version 3.60.03.006
Submitted by: Adam Radford
2007-05-19 10:39:31 +00:00
Matt Jacob 8657ee7db4 MFC rev 1.211 (M_ZERO read capacity allocations)
MFC rev 1.196 (knob to turn off sending ordered tags)
MFC rev 1.192 (don't attach bogus geometries)
2007-05-19 05:17:46 +00:00
Bruce A. Mah 283a280517 MFC: Mention tools (specifically ntfsresize, GParted, and SystemRescueCD)
that can be used for resizing NTFS partitions (to make room for
FreeBSD).

	install.sgml	1.35 -> 1.37

PR:		65477
2007-05-18 14:05:25 +00:00
Maxim Konovalov 1ab8f08b3b MFC rev. 1.25: add "line" device. 2007-05-17 19:02:43 +00:00
John Baldwin c81d9f32ea MFC: Move cpu_exit() earlier in exit1() to close a race between
SIGCHLD/kevent(2) notification and wait().
2007-05-17 13:52:37 +00:00
Andrew Thompson 35060141d3 Hook lagg(4) up to the build. 2007-05-17 01:50:46 +00:00
Andrew Thompson abc3a99e05 MFC the lagg(4) driver which provides link aggregation, failover and fault
tolerance.
2007-05-17 01:49:41 +00:00
Andrew Thompson 5ea92db54a MFC r1.30
Add Ethertype for 802.3ad LACP.
2007-05-17 01:46:42 +00:00
cvs2svn 5b1c0a232e This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-05-16 21:39:45 +00:00
Doug Ambrisko 654792e168 MFC, the UNAME_ and OSVERSION environment over rides. This makes
easier to make a FreeBSD 6 chroot think it is that version.
2007-05-16 21:39:44 +00:00
cvs2svn 9714ba7656 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-05-16 17:19:48 +00:00
Mike Makonnen fde027c22b MFC:
----------------------------
revision 1.6
date: 2007/04/12 08:39:13;  author: ceri;  state: Exp;  lines: +2 -2
Bump .Dd for r1.5; fix grammatical problem.
----------------------------
revision 1.5
date: 2007/04/12 08:35:58;  author: mtm;  state: Exp;  lines: +18 -1
Specify the correct way to modify this file, and warn that the
user should not depend on the internal variables documented in
this man page.
2007-05-16 10:15:19 +00:00
Mike Makonnen 23c276eee1 MFC:
----------------------------
revision 1.30
date: 2007/04/12 08:17:56;  author: mtm;  state: Exp;  lines: +2 -7
o Use the uidstart variable instead of uuid (bug #3)
o Actually save the variable to adduser.conf (bug #2)
o (bug #1 to be fixed in an upcomming commit to adduser.conf.5)

----------------------------
revision 1.29
date: 2007/04/12 07:38:26;  author: mtm;  state: Exp;  lines: +13 -12
Errm... I don't see how rev. 1.26 could have possibly worked or been tested.
Fix it for real.

Submitted by: Johnny Lee <[email protected]>
2007-05-16 10:10:30 +00:00
Nate Lawson 3ea0ec794f MFC: the new FTP_COMBINE_CWDS define allows libfetch to attempt to change
directories all at once, saving latency.

Tested by:	des
2007-05-16 07:04:02 +00:00
Joel Dahl 26429e81f4 MFC: Makefile magic for the new snd_* manual pages. 2007-05-15 20:49:10 +00:00
Joel Dahl 597cbf2c26 MFC: manual pages for snd_hda, snd_envy24, snd_envy24ht and snd_spicds. 2007-05-15 18:40:22 +00:00
Thomas Quinot 20f2b6ab46 MFC rev. 1.53:
(atapi_action, case XPT_SCSI_IO): Enable DMA only for READ and WRITE commands
 as some combinations of chipset, controller and target do not behave
 correctly when DMA is enabled for other commands.

PR:		kern/103602
2007-05-15 16:19:42 +00:00
Mike Makonnen a3b23d36b8 MFC: revision 1.9 of rc.d/ip6fw and 1.15 of rc.d/ipfw
date: 2007/04/02 15:38:53;  author: mtm;  state: Exp;  lines: +1 -1
Instead of directly sourcing the firewall script, run it in a separate shell.
If the firewall script is sourced directly from the script, then any
exit statements in it will also terminate the rc.d script prematurely.

PR: conf/78762
2007-05-15 09:18:25 +00:00
Mike Makonnen f4a715e787 MFC: 1.22
date: 2007/03/30 18:36:45;  author: mtm;  state: Exp;  lines: +1 -0
Some rc.d commands (such as stop|restart etc.) won't automagically work
if we don't explicitly set the name of the executable program.

PR: conf/104408
2007-05-15 08:58:05 +00:00
Bruno Ducrot b584e26d3a MFC 1.4:
o introduce a flags 'errata' for HW bugs onto the softc.
o remove errata_a0 and introduce the corresponding flags into 'errata'.
o introduce a new errata for K8, namely some platform might set the
  PENDING_BIT but aren't able to unset it, also don't loop forever
  waiting PENDING_BIT being cleared.
o try to introduce a workaround for the PENDING_BIT stuck problem,
o support now half multipliers for K8.

Tested by:	Abdullah Al-Marrie
Approved by:	njl
2007-05-15 08:19:21 +00:00
David Xu c48692f588 MFC Revision 1.123:
> Fix a TLS memory leak.
2007-05-15 08:10:15 +00:00
Mike Makonnen 126e3e8bc6 MFC: 1.13
date: 2007/03/31 09:03:38;  author: mtm;  state: Exp;  lines: +4 -4
Make subroutine names more conformant with other scripts in rc.d.
2007-05-15 08:01:42 +00:00
Nate Lawson 57326b8e45 MFC: print GAS properly and man page updates 2007-05-14 21:32:10 +00:00
Maxim Konovalov 6c1c7d0c78 MFC rev. 1.75: fill the list of icmp types; make its size depend
on ICMP_MAXTYPE.
2007-05-14 18:09:00 +00:00
Maxim Konovalov e579df9fac MFC revs. 1.30, 1.31: fix strtoul() error conditions check, kill EOLWS. 2007-05-14 17:31:41 +00:00
SUZUKI Shinsuke 0f71716f9e MFC nd6.c Rev.1.76-77 and nd6_nbr.c Rev.1.43-44.
Fixed a memory leak in unresolved ND queue processing.
2007-05-14 02:50:03 +00:00
Hidetoshi Shimokawa 29945e26d3 MFC: rev. 1.13
Fix a problem for multiple lun/initiators.
2007-05-14 00:58:23 +00:00
Ariff Abdullah b3d0e664b5 MFC: [stage: 7/7]
Add module loading options for snd_hda(4) and snd_envy24*/spicds(4).
2007-05-13 21:13:11 +00:00
Ariff Abdullah ae0c76905b MFC: [stage: 6/7]
Add notes and options for snd_hda(4) and snd_envy24*/spicds(4).
2007-05-13 21:12:32 +00:00
Ariff Abdullah 04c7f5cffb MFC: [stage: 5/7]
Connect both snd_hda(4) and snd_envy24*/spicds(4) to build process.
2007-05-13 21:11:40 +00:00
Ariff Abdullah 139cbd510e MFC: [stage: 4/7]
Allright you rightist.. here we go.

Add support for Intel High Definition Audio Controller.

This driver make a special guarantee that "playback" works
on majority hardwares with minimal or without specific vendor
quirk.

This driver is a product of collaborative effort made by:

  Stephane E. Potvin <[email protected]>
       Andrea Bittau <[email protected]>
       Wesley Morgan <[email protected]>
      Daniel Eischen <[email protected]>
     Maxime Guillaud <[email protected]>
      Ariff Abdullah <[email protected]>

....and various people from [email protected]

Refer to snd_hda(4) for features, issues and various tricks.

P L E A S E  avoid (not that I forbid it) using send-pr, since many
problems can be solved (and was solved) quicker and easier through
various help channels, notably freebsd-multimedia or even better,
#freebsd-azalia @ irc.freenode.net.

Welcome To HDA.

Requested by:	Everybody
Sponsored by:	Defenxis Sdn. Bhd.
2007-05-13 21:09:24 +00:00
Ariff Abdullah 261ae6f661 MFC: [stage: 3/7]
Envy24/HT and related dependency, spicds (as of current state).

From the original commit log (by netchild):

dd the envy24 driver as is to the tree. It's not connected to the build
yet. More commits to follow.

I got no response from the author, but since the driver is BSD licensed
I don't think he will complain. :-)

I got it from http://people.freebsd.org/~lofi/envy24.tar.gz

Written by:	Katsurajima Naoto <[email protected]
           	Konstantin Dimitrov <[email protected]>
2007-05-13 21:03:46 +00:00
Ariff Abdullah 57ad71c4f6 MFC: [stage: 2/7]
Various fixups, especially for the upcomming High Definition Audio
commit.

1) sys/dev/sound/pcm/sound.h
   sys/dev/sound/pcm/channel.c
   * Be more specific: SD_F_SOFTVOL -> SD_F_SOFTPCMVOL
2) sys/dev/sound/pcm/mixer.[ch]
   * Implement
       mix_setparentchild()
       mix_setrealdev()
       mix_getparent()
       mix_getchild()
     The purpose of these functions is implement relative volume
     adjustment, such as to tie two or more mixer device into a
     single logical device. Usefull for the upcoming HDA driver
     and few AC97 codec where the master volume "vol" need to be
     implemented using this logical manner.
3) sys/dev/sound/pcm/ac97.c
   * ditto #1
   sys/dev/sound/pcm/usb/uaudio_pcm.c
   * ditto #1, hook "pcm" as logical child of "vol" if the real
     control does not exist.
2007-05-13 20:53:40 +00:00
Ariff Abdullah 000a9373fa MFC: [stage: 1/7]
buf_addr should be bus_addr_t rather than u_int32_t.
2007-05-13 20:50:31 +00:00
Chin-San Huang 2e48b0b0b3 - Remove the deprecated ``/stand'' hierarchy.
(MFC)

PR:		docs/111137
Submitted by:	Niclas Zeising
Approved by:	delphij@ (mentor)
2007-05-13 12:22:54 +00:00
Pav Lucistnik b01d7b9a3c MFC: v1.20
Document that uniq(1) limits input line length to LINE_MAX characters.
2007-05-13 11:50:32 +00:00
cvs2svn dab56305f4 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-05-13 09:33:36 +00:00
Pav Lucistnik 63a40f0349 MFC 1.10, 1.11
Revise the markup, sort sections, fix some grammar bugs.
  Fix the description of "media-type".
2007-05-12 23:10:08 +00:00
Gabor Kovesdan cc6b710907 MFC: r1.23
Approved by:	keramida (mentor)
2007-05-12 21:29:16 +00:00
Yoshihiro Takahashi 165c2cb5ad MFC: Don't call bus_deactivate_resource() explicitly before calling
bus_release_resource().
2007-05-12 06:10:11 +00:00
Matt Jacob 850f2e32fe mfc: bad merge fix 2007-05-11 13:48:33 +00:00
Matt Jacob 4b29160d65 Fix pointy-hat problem with BUS_DMA_ROOTARG macro that caused problems for sparc64. 2007-05-11 06:29:23 +00:00
Robert Watson 1d4143d5c5 Merge uipc_usrreq.c:1.193 from HEAD to RELENG_6:
Change unp_mtx to supporting recursion, and do not drop the unp_mtx over
  sonewconn() in unp_connect().  This avoids a race that occurs due to
  v_socket being an uncounted reference, as the lock was being released in
  order to call sonewconn(), which otherwise recurses into the UNIX domain
  socket code via pru_attach, as well as holding the lock over a sleeping
  memory allocation in uipc_attach().  Switch to a non-sleeping memory
  allocation during UNIX domain socket attach.

  This fix non-ideal in that it requires enabling recursion, but is a much
  smaller change than moving to using true references for v_socket.  The
  reported panic occurs in unp_connect() following the return of
  sonewconn().

  Update copyright year.

  Panic reported by:      jhb

Tested by:	jhb
2007-05-10 20:00:35 +00:00
Xin LI a099d7b5e7 MFC: We need four disks these days, so reflect this.
Pointed out by:	phk
PR:		docs/112571
2007-05-10 13:20:45 +00:00
Konstantin Belousov 654db8cbf0 MFC rev. 1.259:
Allow the dounmount() to proceed even for doomed coveredvp.
2007-05-10 09:18:07 +00:00
George V. Neville-Neil c882ebe029 MFC rev 1.42
Reduce the default number of header options that the IPv6 protocol
stack will process from 50 to 15.  As this is a sysctl variable it
can be tuned up or down at the user/administrator's whim.
2007-05-10 07:12:52 +00:00
Scott Long b60604601b MFC rev 1.5: Add PCI Ids. 2007-05-09 17:32:10 +00:00
Pyun YongHyeon 841b36111c MFC if_mskreg.h rev. 1.4 to RELENG_6.
Work around GMAC hardware hang bug.
  It seems that valid pause frames(Tx flow control) cause GMAC to hang
  such that it resulted in watchdog timeout. As a work around don't
  flush Rx MAC FIFO if we've received pause frames.
2007-05-09 06:36:41 +00:00
Pyun YongHyeon 088c5a4e41 MFC if_msk.c rev. 1.15 to RELENG_6.
Disable TSO support.
  Under certain circumtances, if TSO is active, Yukon II generates
  corrupted IP packets. All corrupted IP packets I noticed were the the
  last segmented packet in a TSO request. The corrupted packet resulted
  in retransmission of the damaged packet which in turn decreased network
  performance dramatically.
  Unfortunately it seems that there is no way to workaround this bug
  as TSO is completely handled in hardware. Disable TSO until we find a
  working workaround or a new silicon revision that doesn't have this
  hardware bug.
2007-05-09 06:34:29 +00:00
Pyun YongHyeon c1a9053593 MFC if_msk.c rev. 1.14 to RELENG_6.
Fix TCP header size calculation logic which is used for setting
  TSO MTU.
2007-05-09 06:32:19 +00:00
Pyun YongHyeon 1a1dedc29c MFC if_stge.c rev. 1.9 to RELENG_6.
If we've got watchdog timeouts try to get more packets going after
  resetting the hardware.
2007-05-09 06:26:45 +00:00
Pyun YongHyeon 090f60ba4c MFC if_stge.c rev. 1.8, if_stgereg.h rev. 1.3 to RELENG_6.
Honor link up/down state in stge_start().
  While I'm here move MAC control settings to stge_link_task, a task
  queue which handles link state and duplex/flow controls.
2007-05-09 06:25:01 +00:00
Pyun YongHyeon d37e6f1fb6 MFC if_stge.c rev. 1.7, if_stgereg.h rev. 1.2 to RELENG_6.
Use our own timer for watchdog instead of if_watchdog/if_timer
  interface.
2007-05-09 06:22:14 +00:00
Brian Somers 7204c415ef MFC: Add some more examples. It always takes me a long time to find the S
modifier (-t is ignored without it).
2007-05-08 22:45:45 +00:00
Julian Elischer 16caef3069 Re-MFC 1.112 and this time include the fix for a bug in it (MFC of 1.162)
This changes to using a monotomic time referrence for all time based
operations.
Changing the time should no longer accellerate ipfw operations.
2007-05-08 20:24:38 +00:00
Julian Elischer 8a4ff09437 MFC 1.93 1.94.
allow table entries to store/return an IP address as a value.
2007-05-08 20:03:01 +00:00
Matt Jacob 967140dad5 MFC to synchronize with -current. The bugs fixed are relatively few and
hopefully the bugs introduved are even fewer.
2007-05-08 17:47:08 +00:00
Jung-uk Kim 61d7a764ce MFC: 1.189
Reflect MFC of pci_find_extcap().
2007-05-08 16:18:21 +00:00
Robert Watson b5757b66bb Merge uipc_usrreq.c:1.196 from HEAD to RELENG_6:
Add an additional MAC check to the UNIX domain socket connect path:
  check that the subject has read/write access to the vnode using the
  vnode MAC check.

  Submitted by:   Spencer Minear <spencer_minear at securecomputing dot com>
  Obtained from:  TrustedBSD Project
2007-05-08 11:50:57 +00:00
Robert Watson afa5f186c9 Merge uipc_usrreq.c:1.187 from HEAD to RELENG_6:
Minor white space tweaks.
2007-05-08 11:47:19 +00:00
Robert Watson bf1bdf253c Merge uipc_usrreq.c:1.186, uipc_proto.c:1.27, domain.h:1.22, files:1.1137
from HEAD to RELENG_6:

  Move definition of UNIX domain socket protosw and domain entries from
  uipc_proto.c to uipc_usrreq.c, making localdomain static.  Remove
  uipc_proto.c as it's no longer used.  With this change, UNIX domain
  sockets are entirely encapsulated in uipc_usrreq.c.
2007-05-08 11:45:12 +00:00
Robert Watson 5fe14b95a8 Merge uipc_proto.c:1.26 from HEAD to RELENG_6:
Remove UNIX domain socket raw socket support.  This feature is documented
  as being undocumented in Stevens, and was broken in 1997 during network
  stack infrastructure work.  It is the one remaining (and incorrect)
  direct protocol reference to raw_usrreq.pru_attach; this is incorrect
  because the raw socket code assumes that raw_uattach is called only after
  the protocol has allocated a PCB.
2007-05-08 11:07:24 +00:00
Robert Watson c90ec49f9a Merge uipc_usrreq.c:1.184 from HEAD to RELENG_6:
Remove now unneeded ENOTCONN clause from SOCK_DGRAM side of uipc_send():
  we have to check it regardless of the target address, so don't check it
  twice.
2007-05-08 10:22:46 +00:00
Robert Watson 69664c23cf Merge uipc_usrreq.c:1.179,1.180 from HEAD to RELENG_6:
Add additional comments to the top of the UNIX domain socket implementation
  providing some high level pointers regarding the implementation.

  Remove duplicate 'or'.

  Submitted by:   ru
2007-05-08 10:20:22 +00:00
Robert Watson 387d9b763b Merge unpcb.h:1.20 from HEAD to RELENG_6:
Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be
  used to mark UNIX domain sockets as being in the process of binding or
  connecting.  Use these to prevent simultaneous bind or connect
  operations by multiple threads or processes on the same socket at the
  same time, which closes race conditions present in the UNIX domain
  socket implementation since inception.
2007-05-08 10:16:57 +00:00
Robert Watson 85305aacc5 Merge uipc_usrreq.c:1.178,1.192 from HEAD to RELENG_6:
Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be
  used to mark UNIX domain sockets as being in the process of binding or
  connecting.  Use these to prevent simultaneous bind or connect
  operations by multiple threads or processes on the same socket at the
  same time, which closes race conditions present in the UNIX domain
  socket implementation since inception.

  Set UNP_CONNECTING when committing to moving ahead in unp_connect().
  This logic was lost when merging the remainder of these changes in
  1.178.
2007-05-08 10:16:23 +00:00
Robert Watson deb0c9a0a8 Merge uipc_usrreq.c:1.177 from HEAD to RELENG_6:
Merge unp_bind() into uipc_bind(), as it is called only from uipc_bind().
2007-05-08 10:01:51 +00:00
Robert Watson c1cf9f416e Merge uipc_usrreq.c:1.175 from HEAD to RELENG_6:
Move various UNIX socket global variables and sysctls from the middle of
  the file to the top.
2007-05-08 08:41:13 +00:00
Robert Watson d75f1227b3 Merge uipc_usrreq.c:1.174 from HEAD to RELENG_6:
In uipc_send() and uipc_rcvd(), store unp->unp_conn pointer in unp2
  while working with the second unpcb to make the code more clear.
2007-05-08 08:37:27 +00:00
Robert Watson ee2b6de991 Merge uipc_usrreq.c:1.171 from HEAD to RELENG_6:
Reduce periods of simultaneous acquisition of various socket buffer
  locks and the unplock during uipc_rcvd() and uipc_send() by caching
  certain values from one structure while its locks are held, and
  applying them to a second structure while its locks are held.  If
  done carefully, this should be correct, and will reduce the amount
  of work done with the global unp lock held.

  Tested by:      kris (earlier version)
2007-05-08 08:32:29 +00:00
Robert Watson f917a5eb1a Merge uipc_usrreq.c:1.173 from HEAD to RELENG_6:
Re-wrap and other minor formatting and punctuation fixes for UNIX domain
  socket comments.
2007-05-08 08:18:55 +00:00
Robert Watson 7dcff335da Merge uipc_usrreq.c:1.169 from HEAD to RELENG_6:
Remove unused (and ifdef'd) unp_abort() and unp_drain().
2007-05-08 08:10:37 +00:00
Greg Lehey 16f773c82d RFC:
Add -A flag to adjust existing time stamps.
Print name by which program was started in usage() message.
2007-05-08 02:31:56 +00:00
Hidetoshi Shimokawa a9b38b3ebc MFC:
- Simplify tlabel handling.
- Remove unused fw_asybusy().
- Add a sysctl knob to disable cycle master mode and add some comments.
- Fix broken userland API for async packets.
- Fix typo in recv spd.
- Update state in fw_xferq_dorain() after removed from the send queue.
- Remove unnecessary 'goto err;".
- Improve asynchronous packet receive process.
2007-05-07 08:00:21 +00:00
Hidetoshi Shimokawa 8feea16235 MFC: Free tlabel in fw_xfer_done(). 2007-05-07 06:35:23 +00:00
Hidetoshi Shimokawa b41c0cd72c MFC:
- Detect cycle lost.
- Less verbose debug messages.
- Remove xfer->retry_req.
- Remove retry_count.
- Replace xfer->act.hand with xfer->hand.
2007-05-07 06:20:49 +00:00
Hidetoshi Shimokawa df809ae6ea MFC: Configuration ROM length should be unsigned. 2007-05-07 06:01:25 +00:00
Hidetoshi Shimokawa b39e941464 MFC:
Initialize configuration ROM before a bus reset.
2007-05-07 05:42:45 +00:00
Alan Cox e991e634c7 MFC a change to pmap_copy() that was overlooked because revision 1.583
was MFCed before revision 1.540.
2007-05-06 18:36:57 +00:00
Alan Cox 3248731357 MFC Revision 1.531 of pmap.c:
Avoid unnecessary differences between the amd64 and i386
  format strings.

MFC Revision 1.577 of pmap.c:
  Use a different bitmask for superpages' base address so that it
  doesn't conflict with the PG_PDE_PAT bit.
2007-05-06 05:23:19 +00:00
Alan Cox 2109fb74d1 MFC Revision 1.538:
Remove stale KSE code.

MFC Revision 1.551:
  In general, bits in the page directory entry (PDE) and the page table
  entry (PTE) have the same meaning.  The exception to this rule is the
  eighth bit (0x080).  It is the PS bit in a PDE and the PAT bit in a
  PTE.  This change avoids the possibility that pmap_enter() confuses a
  PAT bit with a PS bit, avoiding a panic().

  Eliminate a diagnostic printf() from the i386 pmap_enter() that serves
  no current purpose.

MFC Revision 1.559:
  Eliminate a comment that became stale after revision 1.540.

MFC Revision 1.575:
  Finish the PG_NX support at the pmap level.

MFC Revision 1.582:
  Eliminate the misuse of PG_FRAME to truncate a virtual address
  to a virtual page boundary.
2007-05-06 00:34:43 +00:00
Alan Cox a518795818 MFC
Acquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful.
  For example, during a buildworld more than half of the calls do not
  generate an IPI because the only TLB entry invalidated is on the calling
  processor.  This revision pushes down the acquisition and release of
  smp_ipi_mtx into smp_tlb_shootdown() and smp_targeted_tlb_shootdown() and
  instead uses sched_pin() and sched_unpin() in pmap_invalidate_*() so that
  thread migration doesn't lead to a missed TLB invalidation.
2007-05-05 21:13:16 +00:00
Alan Cox 527cbd158e MFC Revision 1.530
Replace diagnostic printf()s by assertions.  Use consistent style
  for similar assertions.

MFC Revision 1.540
  Introduce pmap_try_insert_pv_entry().

  Use pmap_try_insert_pv_entry() in pmap_copy() instead of
  pmap_insert_entry().

  Eliminate the explicit low-memory checks in pmap_copy().

MFC Revision 1.544
  Retire pmap_track_modified().

MFC Revision 1.555
  Introduce the function pmap_enter_object().

MFC Revision 1.558 (in part)
  Change pmap_enter_quick_locked() to fail rather than wait if it is
  unable to allocate a page table page.  Similarly, change
  pmap_enter_quick_locked() to call pmap_try_insert_pv_entry() rather
  than pmap_insert_entry().

  Add an assertion that the object containing m_start is locked in
  pmap_enter_object().  Remove a similar assertion from
  pmap_enter_quick_locked() because that function no longer accesses
  the containing object.

  Remove a stale comment.
2007-05-05 18:58:22 +00:00
Nate Lawson a8e9b5fbf2 MFC: enable i810 (including i915, i945, etc) on amd64 2007-05-04 22:04:41 +00:00
Lukas Ertl 77c2a1330d MFC 1.61:
Accept passwords which contain whitespace.

   PR:     bin/53434
2007-05-04 17:36:37 +00:00
Lukas Ertl 5b8db32f6d MFC all changes regarding new option -M. 2007-05-04 17:33:04 +00:00
Lukas Ertl aa3bd0ff7d MFC 1.8:
Do the right thing with symlinks in the skeleton directory.

    PR:     bin/63659
2007-05-04 17:22:26 +00:00
Lukas Ertl 8062f7f03e MFC 1.28:
Check if the new user already exists right after entering the
   username instead of watching the final call to pw(8) fail.
2007-05-04 17:17:24 +00:00
Rong-En Fan c7376e0942 MFC: s/jail id/jail ID/ in top
- s/jail id/jail ID/, acronyms should be in uppercase in general. Also,
    it is written this way in jail(8).

Suggested by:	brueffer
Approved by:	delphij (mentor, implicit)
2007-05-04 15:45:13 +00:00
Rong-En Fan cad91d6c53 - Add top '-j' switch
Reviewed by:	brueffer
Approved by:	delphij (mentor, implicit), brueffer
2007-05-04 15:25:05 +00:00
Peter Pentchev 5e17066e40 MFC rev. 1.35 - remove MSG_PEEK from the description of the send(2)
syscall; it is only relevant for incoming data.
2007-05-04 09:06:59 +00:00
Stanislav Sedov 69e5a65ccb - MFC up to 1.106:
* add hpiod and hpssd (1.106)
  * add amanda control tcp port (1.105)
  * sync xmmp service names with IANA (1.104).
2007-05-03 22:39:24 +00:00
Maxim Sobolev a3a518c22d Regen after addition of 32bit versons of getcontext, setcontext and
swapcontext.
2007-05-03 11:18:44 +00:00
Maxim Sobolev bbe7a5d140 MFC: Implement 32 bit getcontext/setcontext/swapcontext on amd64. Still
stubs for ia64 to keep it compiling.  These are used by 32 bit apps such
as gdb.
2007-05-03 11:13:58 +00:00
Yaroslav Tykhiy 600e4c4607 MFC rev. 1.32:
Fix a typo: argv -> argvp.

  Rationale:
  We are interested in the current (last) element of the argv array
  there, not in its first element. [...]

  Also add a comment that the argv array ends up null-terminated in
  any case (it's due to the design of the for loop) as an answer to
  a possible question why the whole argv isn't zero-filled.
2007-05-03 09:56:51 +00:00
Thomas Quinot 1798faab20 MFC rev. 1.52:
(atapi_cb): Fix test for the presence of sense data. An incorrect condition
 was being tested, which would result in a system hang in some configurations.

PR:	kern/112119
2007-05-03 09:38:54 +00:00
John Baldwin ce660dbc7c Argh, fix a mis-merge.
Reported by:	kib
2007-05-02 20:16:29 +00:00
John Baldwin 6ae86c4f92 MFC: Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and
i386 by mapping the pages as UC (uncacheable) using pmap_change_attr().

Requested by:	ariff
2007-05-02 18:48:18 +00:00
John Baldwin c546d4c6d2 MFC: Initial PAT support including the following:
- New pmap_mapdev_attr() function for amd64 and i386.
- pmap_mapdev() on i386 and amd64 uses UC now rather than WB.
- New pmap_mapbios()/pmap_unmapbios() functions to map firmware tables.
- New pmap_change_attr() function for amd64 and i386.
- Bump __FreeBSD_version.
2007-05-02 18:42:47 +00:00
John Baldwin 5d55a02470 MFC: Add various constants for the PAT MSR and the PAT PTE and PDE flags
and initialize the PAT MSR during boot.
2007-05-02 16:16:57 +00:00
John Baldwin c03f36c3ce MFC: Add 'pmap_invalidate_cache()'. 2007-05-02 15:40:15 +00:00
John Baldwin efedc2dd44 MFC: Comment fix in 1.110. 2007-05-02 15:27:24 +00:00
John Baldwin 1c63c40a05 MFC: Comment fixes in 1.106 and 1.107. 2007-05-02 15:22:20 +00:00
John Baldwin b89ef8e9b6 MFC: Various fixes to NFS DirectIO support. 2007-05-02 15:15:51 +00:00
Yaroslav Tykhiy 14177a0a9e MFC rev. 1.35-1.41: Clean up and update the HARDWARE section. 2007-05-02 10:26:32 +00:00
Nate Lawson 01d1125981 MFC: rate-check the interrupt storm message and bump the counter 500 -> 1000 2007-05-02 06:15:13 +00:00
Marcel Moolenaar 31426f9d58 MFC rev 1.21: match all system-devices; don't stop after the first match. 2007-05-01 18:08:51 +00:00
Marcel Moolenaar dcf729107e MFC rev 1.15: When writing to PCI configuration registers, don't
immediately read the same register back.
2007-05-01 18:07:28 +00:00
Maksim Yevmenkin 3ad6a2bf8c MFC:
Retire /usr/share/examples/netgraph/bluetooth/rc.bluetooth.
2007-05-01 16:50:03 +00:00
Rong-En Fan b4dac4b638 MFC the top -j switch:
- Add a new 'j' switch and runtime option to toggle display jail id for
   each process.

 src/contrib/top/commands.c: 1.13
 src/contrib/top/machine.h: 1.8
 src/contrib/top/top.X: 1.18
 src/contrib/top/top.c: 1.21 and 1.22 (-j part)
 src/usr.bin/top/machine.c: 1.80

PR:		98489, 99631
Submitted by:	clsung
Approved by:	delphij (mentor)
2007-05-01 15:44:19 +00:00
Marius Strobl 85d75fe097 MFC: psycho.c 1.61; psychoreg.h 1.12
o Changes to psycho_attach(): [1]
  - Clear the PCI AFSR and status error bits as previous errors still
    might be indicated.
  - Set up the PCI control and diagnostic registers according to the
    capabilities, workarounds, etc of/for specific revisions of the
    supported bridges. This includes no longer setting Hummingbird-/
    Sabre-specific bits in the PCI control register but preserving
    what the firmware has initialized them to like OpenSolaris does.
    Previously we were setting these bits according to the example in
    the Sabre documentation, which I doubt is appropriate for all
    Sabre based designs and especially not for Hummingbirds. This
    also includes not enabling bus parking unless the firmware tells
    us to.
  - Set the PCI latency timer register as this isn't always done by
    the firmware.
o Remove a redundant argument from psycho_set_intr() and in this
  function check the return value of bus_setup_intr(). [2]
o Let psycho_setup_intr() return ENOMEM instead of 0 when it can't
  allocate memory for the interrupt wrapper stub and EINVAL instead
  of 0 if it can't find the interrupt vector in the interrupt map.
o Add a workaround for a bug of the Sabre-APB-combination where it
  doesn't drain DMA write data for devices behind additional PCI-PCI
  bridges underneath the APB PCI-PCI bridge. This workaround (do
  things necessary in order to achieve a manual drain when coherency
  is required) is currently implemented in psycho_setup_intr() and
  psycho_intr_stub() due to lack of a real BUS_GET_DMA_TAG() and
  psycho(4)-specific bus_dma_tag_create() and bus_dmamap_sync()
  methods, respectively, in RELENG_6 and therefore is only applied
  for interrupt handlers but not for polling(4) callbacks. [3]
o Fix some minor style issues.

Info from:	OpenSolaris [1]
Info from:	Linux, OpenBSD, OpenSolaris [3]
Suggested by:	Coverity Prevent (CID 682) [2]
2007-05-01 13:31:33 +00:00
Yaroslav Tykhiy 264a336979 MFC rev. 1.74: Remove references to S/Key and list OPIE. 2007-05-01 11:46:29 +00:00
Yaroslav Tykhiy ebd891089d MFC:
ftpd.c		1.212
	ftpcmd.y	1.66
	ftpd.8		1.72-1.73

Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).

PR:	bin/111714
2007-05-01 11:40:44 +00:00
Hidetoshi Shimokawa 37af2a4bef MFC: rev 1.12
If compressed length is zero, return a zero-filled block.
2007-05-01 03:01:15 +00:00
Marius Strobl cf28522c45 MFC: brgphy.c 1.67; miidevs 1.42
Let brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsets
as well.

Obtained from:	OpenBSD
2007-04-30 20:59:57 +00:00
John Baldwin 93cc9e81bb MFC: Handle HyperTransport MSI mapping window fixed-window flag. 2007-04-30 17:58:23 +00:00
John Baldwin 67e1b482bc MFC: Various fixes to cpu_reset_real()
- Try to use the reset control register (I/O port 0xcf9) and the fast a20
  and init register (I/O port 0x92) if the keyboard reset fails.
- Fix the triple fault to actually work when PGE is enabled.
2007-04-30 17:45:44 +00:00
Christian Brueffer ded401c611 MFC:
New release notes:
- edsc(4) added

Modified release notes:
- ncurses was updated from version 5.2-20020615
- MSI-X supported as well, remove ref to pci(4) manpage, which is
  different from the kernel's PCI code
2007-04-30 15:41:00 +00:00
Yaroslav Tykhiy d5adc258e8 MFC rev. 1.30:
Insert explicit space between the output fields to prevent them
  from running together when a field overflows.
2007-04-30 05:58:08 +00:00
Ceri Davies 80bfa6109d MFC r1.32:
cipher(3) is gone.
2007-04-29 21:43:09 +00:00
David Malone e973e00848 MFC calendar from with -current and remove some undeeded break statements. 2007-04-29 20:14:19 +00:00
David Malone 9711f15b2e MFC: Man page improvements and don't put unix domain sockets into the
per-ip limits code.
2007-04-29 19:24:11 +00:00
Alan Cox 2e79211159 MFC revision 1.58
Correct contigmalloc2()'s implementation of M_ZERO.
2007-04-28 20:44:56 +00:00
Maxim Konovalov ccae02a50e MFC revs. 1.289, 1.291 usbdevs, rev. 1.58 usb_quirks.c: add several
CDMA-2000 terminals.
MFC rev. 1.290 usbdevs, rev. 1.41 uplcom.c: add a quirk for Sagem
USB-Serial controller.
2007-04-28 20:31:30 +00:00
Maxim Konovalov 4853aeface MFC rev. 1.102: add missed w/space in the error message. 2007-04-28 20:09:26 +00:00
Bruce A. Mah 1674f7a5ea MFC: scsi_sg, rpc.lockd(8) / rpc.statd(8) -p. 2007-04-28 14:29:09 +00:00
Bruce A. Mah 17157f54c9 Add some whitespace, no content changes. 2007-04-28 14:00:57 +00:00
Bruce A. Mah 45b9c761a5 New errata: SA-07:03.ipv6. 2007-04-28 13:58:38 +00:00
Bruce A. Mah 2719967834 MFC: FreeBSD-SA-07:03.ipv6. 2007-04-28 13:52:51 +00:00
Ariff Abdullah ff9f308a42 MFC:
Disable C1 Enhanced mode on AMD K8 Family Revision F and above to keep
local APIC timer alive.

Reviewed by:	jhb
PR:		i386/104678
2007-04-28 09:04:10 +00:00
Gregory Neil Shapiro 33acd86b68 MFC: Bring in sendmail.org code from the future 8.14.2 release which restores
ABI compatibility to users of the libmilter.so shared library.
2007-04-27 03:33:51 +00:00
Ariff Abdullah 561124f140 MFC:
- Patch for AD1981B codec to enable (automuting) headphone jack sense.
- Enable tone / 3D controls for YAMAHA YMF743, 753 and 752 (partially) [1]
- AC97 quirk / patch cleanups. Most quirks doesn't work in general sense
  and should only be applied on certain specific card / vendor, hence the
  addition of ac97_getsubvendor(). [2]
- Fix low volume issue on several MSI laptops through ALC655 quirk. [2]

[1]

PR:			kern/109599
Submitted by:		Watanabe Kazuhiro <[email protected]>

[2]

Reported/Tested by:	Christian Mueller
                   	<[email protected]>
2007-04-26 08:30:52 +00:00
Ariff Abdullah d84e287b1d MFC:
Memory leak killing spree, mostly bus_dma(9) related.
2007-04-26 08:21:44 +00:00
Yaroslav Tykhiy e6de7a561c MFC:
pam_unix.c	1.52
	pam_unix.8	1.13

  In account management, verify whether the account has been locked
  with `pw lock', so that it's impossible to log into a locked account
  using an alternative authentication mechanism, such as an ssh key.
  This change affects only accounts locked with pw(8), i.e., having a
  `*LOCKED*' prefix in their password hash field, so people still can
  use a different pattern to disable password authentication only.

  Mention all account management criteria in the manpage.

PR:		bin/71147
2007-04-26 06:39:01 +00:00
Andrew Thompson a516609fbc MFC bridgestp.c r1.35-36, bridgestp.h r1.13, if_bridge.c r1.94-95
- Change the passing of callbacks to a struct in case this needs to be
   extended in the future.
 - Properly move the setting of bstp_linkstate_p to the bridgestp module.
2007-04-26 02:08:14 +00:00
Pyun YongHyeon adb8cdd088 MFC if_re.c, rev. 1.89 if_rlreg.h, rev 1.65 to RELENG_6.
Don't reinitialize the hardware if only PROMISC flag was changed.
  Previously whenever PROMISC mode turned on/off link renegotiation
  occurs and it could resulted in network unavailability for serveral
  seconds.(Depending on switch STP settings it could last several tens
  seconds.)
2007-04-26 00:29:47 +00:00
John Baldwin 99190ed09e MFC: Don't hold the vnode interlock across a tsleep() in nfs_flush().
This was actually contained in the MPSAFE NFS client changes which is not
all being MFC'd, however, this fixes a bug in the previous fix to
nfs_flush().

Guidance from:	mohans
2007-04-25 20:53:50 +00:00
John Baldwin cb77e5a6f5 MFC:
- In nfs_flush(), clear the NMODIFIED bit only if there are no dirty
  buffers *and* there are no buffers queued up for writing.
- Keep track of the number of in-progress async direct IO writes in the
  nfsnode.  Make fsync/close wait until all of these drain.  Add a check to
  nfs_getpage() and nfs_putpage().
2007-04-25 20:47:01 +00:00
Stephan Uphoff 2f0ec5b338 MFC:
Invalidate all TLBs and page structure caches that may reference a page
for page walk acceleration before releasing it to the free list.

This is required for CPUs implementing page structure caches as described
in the Intel application note:
        "TLBs, Paging-Structure Caches, and Their Invalidation"
         (Document Number: 317080-001)
2007-04-25 18:21:24 +00:00
Pyun YongHyeon e04f693631 MFC if_sk.c, rev. 1.135 and if_skreg.h, rev. 1.41 to RELENG_6:
Use our own timer for watchdog instead of if_watchdog/if_timer
  interface.
2007-04-25 00:24:54 +00:00
Nate Lawson 811944f5ee MFC: man page minor updates 2007-04-24 16:01:56 +00:00
George V. Neville-Neil d0b08978a6 Add a new sysctl net.inet.ip6.rthdr0_allowed, which is default off,
to disable the processing of Route Header Type 0 options in IPv6.
This is not really an MFC because currently in HEAD the processing
of these options is disabled unilateraly pending discussion at the IETF
on the future of such headers.

Suggested By: itojun
Reviewed By: jinmei
2007-04-24 11:44:22 +00:00
Konstantin Belousov 89748905e4 MFC rev. 1.135:
Fix the NAMEI zone leak when snapshot was successfully created.
2007-04-24 11:08:27 +00:00
Konstantin Belousov 6376a75e5f MFC rev. 1.208:
When LK_NOWAIT is passed as argument to process_worklist_item(), this
does not prevent handle_workitem_remove() from recursing into a blocking
version. Add the dirrem to worklist instead of processing it now if this
is the case.
2007-04-24 11:06:12 +00:00
Konstantin Belousov 843e9141d6 MFC rev. 1.209:
Recalculate the NEWBLOCK flag for pagedep structure after the softdep
lock is dropped, since pagedep may be already processed and deallocated.
2007-04-24 11:03:26 +00:00
Christian Brueffer 901ba553f8 MFC: rev. 1.4
Remove useless FILES section.
2007-04-24 04:47:21 +00:00
Gregory Neil Shapiro e7239a99c1 Forced commit to .mc files to force creation of new .cf files for mergemaster. 2007-04-23 22:30:23 +00:00
John Baldwin 8f39146c3d MFC: Don't go to a whole lot of extra work to handle the race where the
new file descriptor is closed out from under us in kern_open().  This race
is already handled and the file will be closed when kern_open() does an
fdrop just before returning.

In addition, by handling the race early, this opens the code up to an
obscure bug where opening a devfs file could replace f_ops in the file
object so that fdrop() will try to close the vnode, but f_vnode never gets
set, so the vnode close routine panics due to the NULL f_vnode.
2007-04-23 18:08:59 +00:00
John Baldwin c38becb306 MFC: Correct word index calculation in pci_pending_msix(). 2007-04-23 18:03:57 +00:00
Christian Brueffer 02bca7082b MFC: rev. 1.6
Xref linsysfs(5).
2007-04-23 04:48:23 +00:00
Maxim Konovalov 3743f971e6 MFC rev. 1.8: IFNAMSIZ includes a terminating null byte. 2007-04-22 08:37:21 +00:00
Yaroslav Tykhiy 935a9aa0a2 MFC: edsc(4) -- a dummy Ethernet driver for testing, benchmarking,
and getting an easy intro to writing network interface drivers.
2007-04-21 13:01:04 +00:00
Marcel Moolenaar d3712506de MFC rev. 1.10: Add PCI IDs for the HP RMP3 serial port. 2007-04-20 22:58:25 +00:00
Marcel Moolenaar 90f8794b39 MFC rev. 1.41: Better handle the -F case.
PR: bin/101979
2007-04-20 22:53:20 +00:00
Robert Watson 641e250397 Merge ip_fw2.c:1.163 to RELENG_6:
Shorten text string for ip_fw2 dynamic rules zone by removing the word
  "zone", which is generally not present in zone names.  This reduces the
  incidence of line-wrapping in "vmstat -z " using 80-column displays.
2007-04-20 18:49:41 +00:00
Gregory Neil Shapiro b13e2d5ffb Include a note in the sendmail 8.14.1 release note regarding the libmilter
update.  Unfortunately, this problem (the need to recompile filters) was
found after the MFC.  The release engineering team has asked for this
instead of doing a full backout of sendmail 8.14 in the RELENG_[456]
branches.

Requested by:	re (bmah)
2007-04-20 05:12:48 +00:00
Yaroslav Tykhiy c4b67915cc Eliminate gratuitous difference from HEAD (style only). 2007-04-19 23:34:10 +00:00
Yaroslav Tykhiy 9a4dc15796 MFC 1.2-1.4:
Explain the change in sed behaviour WRT jumping over the 2nd address.
Add $FreeBSD$.

(Forgot to cvs up -j this file when doing MFC for the respective change
to the sed code.)
2007-04-19 23:29:05 +00:00
Yaroslav Tykhiy 7aec17680c MFC:
Don't forget to close the range if we branched over its end
and had no chance to match it by the 2nd address precisely.
Otherwise the unclosed range would bogusly extend to the end
of stream.

Add a regression test.

Explain the decision in the `POSIX' file.

	1.44	src/usr.bin/sed/process.c
	1.2-1.4	src/usr.bin/sed/POSIX
	1.13	src/tools/regression/usr.bin/sed/regress.sh
	1.1	src/tools/regression/usr.bin/sed/regress.b2a.out
2007-04-19 23:19:43 +00:00
Yaroslav Tykhiy db937f2110 MFC:
Make the `c' function not forget to print the text in some cases.
Add respective regression tests.

	1.42	src/usr.bin/sed/process.c
	1.12	src/tools/regression/usr.bin/sed/regress.sh
	1.1	src/tools/regression/usr.bin/sed/regress.c0.out
	1.1	src/tools/regression/usr.bin/sed/regress.c1.out
	1.1	src/tools/regression/usr.bin/sed/regress.c2.out
	1.1	src/tools/regression/usr.bin/sed/regress.c3.out
2007-04-19 23:04:51 +00:00
Yaroslav Tykhiy 0cc2eb7615 MFC rev 1.4:
Add missing newline to correct failure of the regression test.
According to IEEE Std 1003.1, 2004 "Whenever the pattern space is
written to standard output or a named file, sed shall immediately
follow it with a <newline>."
2007-04-19 22:53:21 +00:00
Yaroslav Tykhiy 757278eb41 MFC recent small fixes:
main.c		1.37:
	Kill a prototype for the defunct inplace_edit().

process.c	1.41:
	Make the comment for cspace() match reality.

process.c	1.43:
	Put the MATCH() macro's value in parentheses for safety.
2007-04-19 22:38:38 +00:00
Diomidis Spinellis 08b7efc8cc MFC revision 1.12
Fix the output of percentage figures, which mistakenly were
the corresponding ratios.

PR:		bin/111329
2007-04-18 06:29:54 +00:00
Diomidis Spinellis 80860b463d MFC: A dash as an argument to the -f option allows lastcomm to
read data from the standard input.
2007-04-18 05:53:50 +00:00
Pav Lucistnik 38a4c9ce9e MFC completely (up to rev. 1.58)
Requested by:	foxfair
2007-04-17 07:48:22 +00:00
Rong-En Fan eff0fddbf5 - Bump __FreeBSD_version for readline 5.2
Approved by:	delphij (mentor)
2007-04-17 04:05:19 +00:00
Alan Cox 017a5a012d Implement pmap_enter_object(). Note that this change is not an MFC
because support for the Alpha was removed from the HEAD of CVS just
before the introduction of pmap_enter_object().  I am adding
pmap_enter_object() to the Alpha because it allows for an efficient
solution to a race condition affecting pmap_enter_quick().  (See
sys/amd64/amd64/pmap.c revision 1.557.)
2007-04-17 03:56:22 +00:00
Xin LI 3f59680985 Note BSD gzip and GNU readline MFC. 2007-04-17 03:44:47 +00:00
Andrew Thompson 2fa1d44871 MFC r1.1.1.6
Pull in latest print-stp.c from vendor
2007-04-17 03:23:34 +00:00
Rong-En Fan 776abb1f96 MFC readline 5.2 patchset 002
Approved by:	delphij (mentor)
OKed by:	ache
2007-04-17 03:23:15 +00:00
Scott Long 4f31ed520e MFC: Don't destroy the devalias, it's handled automatically. 2007-04-17 01:21:08 +00:00
Ruslan Ermilov 5913be2bd3 MFC: 1.554: Always make obj when building the libraries.
PR:	bin/91226
2007-04-16 21:04:54 +00:00
Rong-En Fan ffa290db50 MFC: rev 1.88
- Add missing man page links
- Remove link for define_key.3 which is a real man page
- Some whitespace nits

Approved by:	delphij (mentor)
2007-04-16 09:13:07 +00:00
Gregory Neil Shapiro a14805c269 MFC: Include a note about recompiling ports which use the base libmilter.
Submitted by:	Matthew Seaman
2007-04-14 16:27:16 +00:00
Simon L. B. Nielsen adc4e7d546 MFC 1.242:
Update postfix MTA selection code to point at postfix 2.4 which is the
current version.
2007-04-14 14:43:11 +00:00
Ruslan Ermilov f40b4cb44d MFC: 1.27: Fix "doc without ports" build. 2007-04-14 06:30:31 +00:00
Will Andrews 92fe10a22e MFC: r1.125: Fix -j with Makefiles specified via stdin.
Requested by:	Ulrich Spoerlein <[email protected]>
2007-04-14 05:04:10 +00:00
Pyun YongHyeon a08df3267d MFC if_msk.c, rev. 1.13 to RELENG_6
Add work around for hardware Tx checksum offload bug in Yukon II.
  Yukon II generated corrupted TCP checksum for short TCP packets
  that's less than 60 bytes in size(e.g. window probe packet, pure ACK
  packet etc). Padding the frame with zeros to make the frame minimum
  ethernet frame size didn't work at all. Instead of dropping Tx
  checksum offload support we calculate TCP checksum with S/W method
  when we encounter short TCP frames.
  Fortunately it seems that short UDP datagrams appear to be handled
  correctly by Yukon II.

  While I'm here simplify ethernet/VLAN header size calculation logic.

  PR:	111384
2007-04-14 02:39:33 +00:00
Ruslan Ermilov 131a5b61f9 MFC: Fix the logic bug and static linkage. 2007-04-13 21:03:42 +00:00
Jung-uk Kim d39dbe9457 MFC: 1.187
Enable MSI support on RELENG_6.
2007-04-13 18:25:03 +00:00
Matt Jacob 225fc2d9dd MFC: Update the man page a bit- also to reflect that testing that
Jun Kuriyama did to verify the PCI-Express (Apple Fibre Channel)
HBA.
2007-04-13 04:09:06 +00:00
Matt Jacob 9526456054 MFC: Hide bus reset announcements within bootverbose. 2007-04-13 04:07:56 +00:00
Ruslan Ermilov c0657cf06b MFC: 1.23: Swap "underflow"/"overflow" in the table header. 2007-04-13 03:49:22 +00:00
Matteo Riondato f5b586a032 MFC
nfslocking: rev 1.12 [1] and 1.13 [2]
	rc.conf.5: rev 1.321 [2]
	rc.conf: 1.311 [2]

	[1] Record rc.d/nfslocking dependency on rc.d/rpcbind
	[2]Add rpc_statd_flags and rpc_lockd_flags options to allow
	options to be passed to rpc.statd and rpc.lockd

PR:		conf/105465 [1]
Approved by:	mtm [1]
2007-04-12 13:13:57 +00:00
Matteo Riondato 19b87f3968 MFC:
rpc.statd.8 rev.1.14
	statd.c rev.1.13-1.14

PR:		bin/94920
2007-04-12 08:03:40 +00:00
Matteo Riondato 1f8e5b676c MFC:
lockd.c rev.1.20
	rpc.lockd.8 rev.1.17
	Add the "-p" option, which allows to specify a port which the
	daemon should bind to.

PR:		bin/100969
2007-04-12 07:56:16 +00:00
Thomas Quinot 4d1e7b1411 MFC rev. 1.40:
(bread): For a read that is contained entirely within a block, never copy
 out more than size bytes to the caller's buffer.

PR:	bin/111191
2007-04-12 07:53:13 +00:00
Matteo Riondato b9de2f2751 MFC rev. 1.16 and rev. 1.17
1.16: compile under WARNS=6

	1.17: Make rpc.statd INET* indipendent by converting
	sockaddr_in structures to sockaddr ones and using
	svc_getrpccaller instead of svc_getcaller.
	A similar patch was committed to rpc.lockd back in 2002 . [1]

PR:	bin/42004 [1]
2007-04-12 07:47:44 +00:00
Tim Kientzle e7f0038c51 Check existing flags with an lstat(), not a stat().
Otherwise, restoring symlinks with flags consistently fails
(unionfs likes to set 'opaque' flags).
2007-04-12 04:27:29 +00:00
Gregory Neil Shapiro 2bd33c1b47 MFC: sendmail 8.14.1 2007-04-12 03:13:04 +00:00
Xin LI 7e04567776 MFC 1.5-1.6: Correctly compare between two UUIDs according
to specification found DCE 1.1.

PR:		83107
2007-04-12 02:20:15 +00:00
Remko Lodder ac5824c03c MFC if_fxp rev 1.265
Add support for the 82562GX chip within if_fxp.

  PR:             110251
  Submitted by:   Vyacheslav Vovk
  Approved by:    imp (mentor)
  MFC After:      3 days

Approved by:	imp (mentor, implicit)
2007-04-11 17:13:16 +00:00
Remko Lodder 6effaa88b1 MFC if_re.c rev 1.88
Add support for the RTL8110SC driver.

  PR:             110804
  Submitted by:   Daan Vreeken
  Sponsored by:   Vitsch Electronics (patch)
  Approved by:    imp (mentor)
  MFC After:      3 days

Approved by:	imp (mentor, implicit)
2007-04-11 17:12:38 +00:00
Thomas Quinot ce46d38ff6 MFC rev. 1.16:
Fix setting of serial port speed. A junk value was passed in AX when
bioscom is called to set up serial port parameters because COMSPEED
was treated as an address instead of an immediate value, causing
serial port parameters to never be set.

PR:	i386/110828
2007-04-11 07:19:36 +00:00
Xin LI 2ed5c212df Bump __FreeBSDrevision for Scott's CAM sg(4) MFC.
Requested by:	ler lerctr.org
2007-04-11 02:14:54 +00:00
Scott Long dc8f76fb28 MFC the scsi_sg driver. 2007-04-10 21:44:17 +00:00
cvs2svn f12177bc46 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-04-10 20:03:43 +00:00
Paolo Pisati 3ec4953887 MFC: Prevent the usage of an uninitialized variable: do not accept
StartMediaTx message before an OpnRcvChnAck message was received.

Found with:     Coverity Prevent(tm)
CID:            498
2007-04-10 18:59:19 +00:00
Paolo Pisati b8dc01f9fb MFC: Silence Coverity about an unused variable.
Found with:     Coverity Prevent(tm)
CID:            538
2007-04-10 18:57:24 +00:00
Nate Lawson 9e8079a8db MFC: resume the HPET timer 2007-04-10 15:23:00 +00:00
Christian Brueffer e8c012a783 MFC: rev. 1.18
Remove empty section.
2007-04-10 12:16:05 +00:00
Konstantin Belousov e7af86b325 MFC rev. 1.220:
Extend rev. 1.210 to avoid dereference NULL mp in VFS_NEEDSGIANT and
VFS_ASSERT_GIANT. Stop using reserved namespace.
2007-04-10 10:12:44 +00:00
Hidetoshi Shimokawa 45b9b4809e MFC: rev 1.11
Fix a bug for over 4GB media.
2007-04-10 04:37:30 +00:00
Ed Maste cb6895a282 MFC rtsock.c r1.124, which was overlooked some time ago:
Fix for PR 82974.  We were not checking that the route looked up in
  the case of an RTM_CHANGE was specific, i.e. that it matched completely.
  This led to a route change of a non-existent route changing the default
  route as the radix code would simply back track to that point and hand
  that route back to the routing socket code.

  PR: 82974
  Reviewed by: Tai-hwa Liang <[email protected]>
	       Ben Kaduk <[email protected]>
	       Bjoern A. Zeeb <[email protected]>
  Obtained from: OpenBSD with modifications.
2007-04-09 19:44:19 +00:00
Pyun YongHyeon 48ec02f3ae MFC if_msk.c, rev. 1.12 to RELENG_6
If we've encountered unrecognized chipset don't access hardware
  anymore. Previously it tried to access interrupt register to disable
  interrupts which could result in hang if the hardware was not
  properly initialized by system BIOS/ACPI.
2007-04-09 06:28:38 +00:00
Roman Kurakin 9d93cb6188 MFC: -j 1.26 -j 1.28
Log:
    Add description how the filter works in case of multiple interfaces
    with the same MAC.

    PR:     kern/109815
    MFC after:      7 days
    Submitted by:   Eygene Ryabinkin
    Glanced by:     rik (all pointy hats are mine)
    Discussed with: julian@, rik@

    Log:
    s/if_vlan/vlan/

    Noted by: brueffer
2007-04-09 00:07:54 +00:00
Alan Cox 24c13c79af MFC revisions 1.52 and 1.53
Introduce the function pmap_enter_object().
2007-04-08 19:20:49 +00:00
Alan Cox 8fe241bb43 MFC revision 1.47
Retire pmap_track_modified().
2007-04-08 05:10:36 +00:00
Christian Brueffer 3926a1e479 MFC:
New release notes:
- MSI support
- net.link.tap.up_on_open sysctl added
- ncurses 5.6-20061217 and wide character support
2007-04-07 12:02:20 +00:00
Alan Cox ce15c8eec5 MFC revisions 1.181, 1.187, and 1.189
Eliminate unneeded diagnostic code.

  Change pmap_enter_quick() to use the vm_prot_t parameter introduced in
  revision 1.179 to correctly set/clear execute permission on the mapping
  it creates.

  Eliminate an unneeded Instruction Memory Barrier (IMB) in
  pmap_enter_quick().

  Retire pmap_track_modified().
2007-04-07 05:57:00 +00:00
Alan Cox cbb8ceffc4 MFC revisions 1.184 and 1.185
Reimplement the reclamation of PV entries.
2007-04-07 03:56:30 +00:00
Bruce M Simpson 940e7d403b MFC:
Merge a slightly cleaner and SSM capable mtest(8).
2007-04-07 03:04:49 +00:00
Rong-En Fan 168d5a389f - Bump for ncurses 5.6 + ncursesw merge
Approved by:	delphij (mentor)
2007-04-06 17:53:33 +00:00
Rong-En Fan 8e9e8a3429 MFC: ncurses + wide character support from HEAD which include:
- new ncurses build framework
  - enable ncurses wide character support

Approved by:	delphij (mentor)
Tested by:	several people on stable@
2007-04-06 17:52:06 +00:00
Rong-En Fan 5559e2fb01 MFC: ncurses 5.6-20061217
Approved by:	delphij (mentor)
Tested by:	several people on stable@
2007-04-06 17:50:02 +00:00
Pav Lucistnik ecb6c4f4c2 MFC 1.113:
- Update for new tcl categories
2007-04-06 08:31:26 +00:00
Robert Watson 4805c16107 MFC: be specific that rc.firewall relates to ipfw(4), and not to other
firewalls.
2007-04-05 10:51:10 +00:00
Maksim Yevmenkin 1367aa9e18 MFC:
Try to silence Coverity by adding (void) in front of function call.
Also add a comment, explaining why return value is not being checked.

Requested by:	netchild
2007-04-04 22:21:09 +00:00
Yoshihiro Takahashi fd02460a06 MFi386: revision 1.538.2.13
Missed updating these with the amd64/i386 MSI MFC.
2007-04-04 15:51:09 +00:00
Rong-En Fan 6b78927102 MFC several improvements in lib32 build:
1.528: Default to producing 'k8' COMPAT_32BIT bits, but allow override.
1.529: SSE2 comes thru the users choice of CPUTYPE.
1.531: Use cross-compile friendly spelling of CPUTYPE.
1.567: Clean the lib32 object directory with cleandir rather than rm -rf.
1.568: Resurrect one of the patches from attic and refine the
       lib32 build somewhat.  Specifically, instead of spamming
       ${CC} et al with -I${LIB32TMP}/usr/include which can be
       harmful (as has been demonstrated by the ncursesw WIP),
       use slightly different approach to achieve the same goal.
       This also simplifies things a bit.

Approved by:	delphij (mentor)
2007-04-04 14:28:31 +00:00
Alan Cox 3638ce7b39 MFC revisions 1.152 and 1.159
Use the correct units when handling the hw.physmem tunable.

  Fix a typo in a comment.
2007-04-04 03:36:12 +00:00
Alan Cox 34d5daa77d MFC revision 1.377
Prevent a race between vm_object_collapse() and vm_object_split() from
  causing a crash.
2007-04-04 03:15:03 +00:00
Hidetoshi Shimokawa 6822f9369f MFC: rev 1.59
Teardown interrupt only when sc->ih is not NULL.
2007-04-03 22:41:43 +00:00
Hidetoshi Shimokawa 7f34bfa9dc MFC: rev 1.85
- Don't call fw_busreset() in firewire_attach().
2007-04-03 22:39:20 +00:00
Stefan Farfeleder 03d76bf4d1 MFC the latest synchronisation with the NetBSD code. 2007-04-03 20:47:25 +00:00
Julian Elischer 380fa09dee Revert the MFC if 1.112 ( 1.106.2.27 )
It turns out that 1.112 has bug in -current which is faithfully
reproduced in releng-6 with the MFC.
2007-04-03 09:46:52 +00:00
Julian Elischer 8c59d1bb4d Complete reversal of MFC:
I will investigate this further to possbly re-MFC it but for now
play safe and revert this line too.
2007-04-03 08:29:31 +00:00
Julian Elischer 12bbaa5deb Revert one of the MFCs from Friday as it produces an
unacceptable ABI change. I will re-MFC this when I have tested a version
that brings back the desirable changes but leaves the ABI the same.
2007-04-03 08:16:05 +00:00
Bruce M Simpson 5189443e46 MFC:
Merge latest ifmcstat from HEAD.

Obtained from:	KAME (with many FreeBSD changes)
2007-04-03 00:39:34 +00:00
Hajimu UMEMOTO a0f6df948c MFC 1.305: Turn default address selection on by default. Now,
when ipv6_enable="NO", an IPv4 address is preferred for a
destination address.
2007-04-02 09:23:29 +00:00
Alan Cox a73eee00c3 MFC
Retire pmap_track_modified().
2007-04-02 06:09:43 +00:00
Alan Cox 8fbb581fe1 MFC revision 1.179
Eliminate unnecessary PG_BUSY tests.
2007-04-02 05:43:38 +00:00
Pyun YongHyeon ef23334d53 MFC if_sk.c, rev. 1.129 to RELENG_6
Fix incorrect busy check for PHY write operation.
  While I'm here remove unnecessary return statement.
2007-04-02 04:30:23 +00:00
Scott Long b954c3760d MFC: Freeze the simq not the devq if we run out of command slots. This fixes
the last round of instability in the rev 13/14 driver.
2007-04-02 03:33:29 +00:00
Pyun YongHyeon bcc6ac5781 MFC if_sk.c, rev 1.132 if_skreg.h, rev 1.40 to RELENG_6
Remove incomplete Yukon II support code which was added in if_sk.c, rev 1.123.
  Yukon II users should use msk(4).
2007-04-02 02:04:13 +00:00
Pyun YongHyeon 3cdbe15ed1 Enable PCI MSI support for msk(4). 2007-04-02 01:22:31 +00:00
Alan Cox 6117ceffc5 MFC revisions 1.170 and 1.171
Reimplement the reclamation of PV entries.
2007-04-02 00:38:37 +00:00
Bruce M Simpson 406df7a314 MFC:
Add a sysctl net.link.tap.up_on_open which defaults to zero; when it
  is non-zero, tap(4) instances will be marked IFF_UP on attach.

  1.71 +6 -1 src/sys/net/if_tap.c
  1.19 +8 -1 src/share/man/man4/tap.4

PR:		110383
Requested by:	Frank Behrens
2007-04-01 22:02:30 +00:00
Alan Cox 79ae00a187 MFC revision 1.155
Introduce the function pmap_enter_object().
2007-04-01 21:43:54 +00:00
Alan Cox dcd584c70e MFC revision 1.182
Change pmap_protect() so that execute access can be removed without
  simultaneously removing write access.
2007-04-01 19:38:18 +00:00
Matt Jacob 8e61b6d734 MFC of constification, cleanups of pre-7.X compiles, additions of
SYNC_REG memory barriers and so on.
2007-04-01 17:21:19 +00:00
Matt Jacob bf83caa50e MFC of constification && some bad nvram flags. 2007-04-01 17:15:33 +00:00
Matt Jacob ab404703c9 MFC of some constification, error message spelling errors, splitting
FC and SPI default set/get into separate functions. Also, stop looking
for interrupts at the end of isp_starts- this seems to send some 23XX
cards into the weeds.
2007-04-01 17:14:25 +00:00
Alan Cox a58474a707 MFC revisions 1.175 and 1.177
Introduce the function pmap_enter_object().
2007-04-01 05:59:12 +00:00
Andrew Thompson 383a5ca687 MFC r1.134
Correct the name of the 'proto' command.
2007-04-01 02:09:47 +00:00
Alan Cox ddb67dba55 MFC revision 1.168
Remove the remaining spl*() calls.  Add some assertions.  Eliminate some
  excessive white space.

MFC revision 1.174
  Retire pmap_track_modified().
2007-04-01 01:34:31 +00:00
Sam Leffler 6ef12dac79 MFC: add IEEE80211_KEY_UNDEFINED and use it instead of local defs
Obtained from:	netbsd
2007-03-31 22:49:55 +00:00
Sam Leffler 05499252b3 MFC 1.102: move __inline before type to appease gcc 4.x
Obtained from:	netbsd
2007-03-31 22:42:45 +00:00
Sam Leffler 6b9f586c87 MFC 1.99: clear/reclaim challenge text when switching auth mode and
operating as an ap

Obtained from:	Atheros
2007-03-31 22:34:57 +00:00
Sam Leffler 1eb7875e05 MFC 1.101: discard deauth+disassoc frames that are not destined for us;
these can be received when the interface is in promisc mode

Obtained from:	netbsd
2007-03-31 22:31:36 +00:00
Alan Cox 340f355476 MFC revision 1.559
Introduce the function pmap_enter_object().

MFC revision 1.562 (in part)
  Change pmap_enter_quick_locked() to fail rather than wait if it is
  unable to allocate a page table page.  This prevents a race between
  pmap_enter_object() and the page daemon.  Specifically, an inactive
  page that is a successor to the page that was given to
  pmap_enter_quick_locked() might become a cache page while
  pmap_enter_quick_locked() waits and later pmap_enter_object() maps
  the cache page violating the invariant that cache pages are never
  mapped.  Similarly, change
  pmap_enter_quick_locked() to call pmap_try_insert_pv_entry() rather
  than pmap_insert_entry().  Generally speaking,
  pmap_enter_quick_locked() is used to create speculative mappings.  So,
  it should not try hard to allocate memory if free memory is scarce.

  Add an assertion that the object containing m_start is locked in
  pmap_enter_object().  Remove a similar assertion from
  pmap_enter_quick_locked() because that function no longer accesses the
  containing object.

  Remove a stale comment.
2007-03-31 22:13:26 +00:00
Sam Leffler 08fcd754a9 MFC 1.11: allow net80211 to fillin rate sets 2007-03-31 22:03:04 +00:00
Sam Leffler 67e6b89060 MFC 1.10: allow net80211 to fillin rate sets 2007-03-31 22:02:42 +00:00
Sam Leffler 4fac36356e MFC 1.49: allow net80211 to fillin rate sets 2007-03-31 22:00:44 +00:00
Sam Leffler 4d00f1d29f MFC 1.51: allow net80211 to fillin rate sets 2007-03-31 21:57:27 +00:00
Sam Leffler e2f683d94b sync w/ HEAD 2007-03-31 21:55:11 +00:00
Sam Leffler f54d7e60e5 MFC: expose IEEE80211_DISCARD, IEEE80211_DISCARD_IE, and
IEEE80211_DISCARD_MAC so they can be used within
     net80211 but outside ieee80211_input.c
2007-03-31 21:53:08 +00:00
Sam Leffler 98d517bfac MFC 1.106: improve debug msg for ie's that are too short 2007-03-31 21:50:53 +00:00
Sam Leffler c5b2ee6efe MFC: keep tx/rx seq #'s for non-QoS traffic separate from QoS; stations
aren't supposed mix traffic but if they did frames might be mis-handled

Obtained from:	Atheros
2007-03-31 21:49:28 +00:00
Sam Leffler 4cbd65cd36 MFC 1.104: split check for rate set mismatch on assoc req away from
check for pure 11g mode so we can give meaningful diagnostic msgs
2007-03-31 21:45:55 +00:00
Sam Leffler 75bc8cac2d MFC 1.103: disallow re-associate with a slot time mismatch
Obtained from:	Atheros
2007-03-31 21:44:41 +00:00
Sam Leffler 53e3391cb4 MFC 1.36: change ieee80211_mhz2ieee to use the PSB mapping when the
frequency falls in the proper place, not when we're handed
	  a 1/2 or 1/4-rate channel
2007-03-31 21:42:21 +00:00
Alan Cox 689a87947c MFC revision 1.76
Introduce the function pmap_enter_object().
2007-03-31 20:58:52 +00:00
John Baldwin 27ad9b5149 Missed updating these with the amd64/i386 MSI MFC.
Reported by:	Derkjan de Haan
2007-03-31 20:21:14 +00:00
Alan Cox 993652ed06 MFC revision 1.552
In general, bits in the page directory entry (PDE) and the page table
  entry (PTE) have the same meaning.  The exception to this rule is the
  eighth bit (0x080).  It is the PS bit in a PDE and the PAT bit in a
  PTE.  This change avoids the possibility that pmap_enter() confuses a
  PAT bit with a PS bit, avoiding a panic().

  Eliminate a diagnostic printf() from the i386 pmap_enter() that serves
  no current purpose, i.e., I've seen no bug reports in the last two
  years that are helped by this printf().
2007-03-31 19:20:23 +00:00
Sam Leffler 2bb4187f33 remove dead code
Coverity CID:	1082
Found with:	Coverity Prevent(tm)
2007-03-31 19:11:19 +00:00
Julian Elischer 0caaaa5431 unbreak build by puting back definition used by ipfw(8)
the real fix is to just remove the offending lines there but I don't
have time to check that now. I'll do it right on Tuesday.
2007-03-31 16:44:28 +00:00
John Baldwin 69ec5ee617 MFC: Simple single-message MSI support. 2007-03-31 15:25:11 +00:00
John Baldwin 8340dbeb24 MFC: PCI MSI support for amd64 and i386. 2007-03-31 15:23:21 +00:00
John Baldwin 40261b4cc3 Bump __FreeBSD_version for PCI MSI support. 2007-03-31 14:51:46 +00:00
John Baldwin 1fbaa5b68e MFC: MI support for PCI Message Signalled Interrupts (MSI). For more
details see the relevant commit logs in HEAD.  The notable differences
between this patch and what is in HEAD now are that pci_remap_msix() is not
currently implemented in this patch (I need to change the API in HEAD, so
I'm not going to MFC it until its API is stable) and MSI and MSI-X are not
enabled by default.  To enable MSI and MSI-X support, one must set the
'hw.pci.msi_enable' and/or 'hw.pci.msix_enable' loader tunables.
2007-03-31 14:50:51 +00:00
Julian Elischer 0f8efdb609 MFC: 1.161
include the opt_diver.h to get the banner massage right.

This brings ip_fw2.c up to date with -current with the exception of:
 1.113, 114, 125, 126, 130, 138, 140, 152-156, 158-160
All of which I do not believe to be MFC candidates (with the
possible exception of 140 which has a risk factor I don't
want to put in RELENG_6). 138 is also a possibility but requires more work
in other files.
I need to do the userland ipfw too to add some new features, but, not today..
2007-03-31 01:51:29 +00:00
Julian Elischer e60b9b7dd4 MFC: 1.139
Use the TAILQ macro. That's what it is for.
2007-03-31 01:23:56 +00:00
Julian Elischer 2995bc18e1 MFC 1.37
use less magic numbers.
2007-03-31 01:22:01 +00:00
Julian Elischer 3cd7a2e223 MFC: ip_fw2.c 1.129
ip_fw.h 1.105
     ip_fw_pfil.c 1.21
     ip_input.c 1.319
     Allow ipv6 filtering to be seperately enabled. plus cleanup
2007-03-31 01:14:28 +00:00
Julian Elischer 03e7117a7e MFC: 1.128
fix dmesg line if ipV6 not compiled in.
2007-03-31 00:37:10 +00:00
Julian Elischer fbe1e7e575 MFC 1.116
Remove unused items. I can not find them referenced anywhere else in the tree.
2007-03-31 00:31:28 +00:00
Gabor Kovesdan ce03ca554d MFC: rev1.22
Approved by:	keramida (mentor)
2007-03-30 20:33:55 +00:00
Gabor Kovesdan d64165c6cc MFC: rev1.238
Approved by:	keramida (mentor)
2007-03-30 20:33:11 +00:00
Matteo Riondato 57da01a04f MFC:
biosmptable.c: MFC rev. 1.2
	dist.c: MFC rev. 1.241, 1.243, 1.246, 1.247
2007-03-30 19:21:56 +00:00
Nick Hibma b920ab6561 MFC:
Revisit the watchdogs: Resetting the error to EINVAL after failing to set the
watchdog might hide the succesful arming of an earlier one. Accept that on
failing to arm any watchdog (because of non-supported timeouts) EOPNOTSUPP is
returned instead of the more appropriate EINVAL.
2007-03-30 19:17:37 +00:00
Hidetoshi Shimokawa aed44ff1dd MFC: rev 1.86
Wait SCLK to be stable after LPS enabled.
2007-03-30 14:28:10 +00:00
Hidetoshi Shimokawa 5ef9b85a4a MFC: rev 1.58
Poll only while interrupt is disabled.
2007-03-30 14:26:40 +00:00
Gleb Smirnoff d94fe14838 Merge rev. 1.17:
Do not build the libedit support if NO_LIBPTHREAD is defined.

  PR:		bin/104478
  Submitted by:	Mike Durian <durian shadetreesoftware.com>
2007-03-30 08:25:53 +00:00
Bruce M Simpson 28d5365cbe MFC rev 1.40:
In IPv4 fast forwarding path, send ICMP unreachable messages for
  routes which have RTF_REJECT set *and* a zero expiry timer.

PR:		kern/109246
Submitted by:	Ingo Flaschberger
2007-03-29 20:51:20 +00:00
Thomas Quinot 5ec37fc08d MFC rev. 1.48:
(reinit_bus): When the ATAPI bus is reset, do not schedule an automated
 CAM rescan if the ATAPI device entries have not changed.

The ATAPI bus may be reset for a variety of reasons, including any time an
ATAPI request times out. It is not necessary to rescan at the CAM level
in such a case, unless a device has appeared or disappeared, or has
otherwise changed.
---
MFC revs. 1.49 and 1.50:
(atapi_action): Improve error reporting by removing ATA_R_QUIET flag
 from ATAPI requests. If CAM debugging is enabled, also mark ATAPI
 requests with ATA_R_DEBUG flag.

(atapi_cb): Report ATAPI timeouts to the CAM layer.
 Fix incorrect debugging traces in the presence of ATAPI errors.

PR:	kern/103602
2007-03-29 20:08:32 +00:00
Thomas Quinot 69b8acc24a MFC rev. 1.69:
(ata_completed): When REQUEST SENSE is automatically issued after a failed
 ATAPI request, do not clear the ATA_R_DEBUG flag. This allows a request
 marked as requiring debug traces to produce these traces also during
 the completion of the autosense processing.
2007-03-29 19:14:39 +00:00
Maxime Henrion 1c438d658c MFC r1.20:
The code looks for all the loaded screensaver modules, tries to
  kldunload them, and only loads the new one if kldstat's output shows
  that there aren't any left.  However, the regexp looking for modules
  to unload was still searching according to the the old naming scheme,
  splash_<name>.ko, instead of <name>_saver.ko.
2007-03-29 19:06:14 +00:00
Kip Macy cbc8fa7dda Batch MFC the following changes:
- bus_size_t for link_width is a bad cross-architectural type with
  respect to printf, use uint32_t instead
- Increase coalesce_nsecs
- commit fixes for the following coverity warnings: 1765, 1760, 1758, 1756
- Check PCI-e link width to avoid foot shooting with 4x links
- allocate 9 messages in all cases
- move call to t3_prep_adapter earlier in attach before msi-x setup occurs
  (this works around the fact that pci_config_{save,restore} doesn't adequately
  restore state for msi-x)
- make MSI-X the default and allocate up to mp_ncpus queues per port
- Remove firmware version flags
- add support for the T3B2 ASIC rev by synchronizing with version 1.0.071 of
  Chelsio's common code (with the notable exception of improvements for using
  multiple TX queues)
2007-03-28 20:06:20 +00:00
John Baldwin abde8738dd MFC: Handle the case when a thread is blocked on a lockmgr lock with
LK_DRAIN in DDB's 'show sleepchain'.
2007-03-28 16:58:23 +00:00
John Baldwin cae4252c74 MFC: If vn_open() fails during kern_open(), don't fdrop() the new file
object until after the call to fdclose().
2007-03-28 16:55:31 +00:00
John Baldwin d5f5fcf5a3 MFC: Fix an off-by-one error that prevented the firmware DMA buffer from
being reused in the common case.
2007-03-28 16:53:55 +00:00
Ruslan Ermilov 3e6a65f2ea MFC: Add powerpc to the universe. In rev. 1.339 I accidentally
added it in HEAD without mentioning the fact in the commit log.
2007-03-28 08:46:02 +00:00
Marcel Moolenaar d2b3271fd6 MFC: Fix PowerPC-targeted cross-builds performed on 64-bit platforms.
Makefile.inc0:1.38
	libbfd/bfd.h:1.4

PR: amd64/102996
2007-03-28 02:44:37 +00:00
Julian Elischer d3ee8fa185 We really don't need FreeBSD 4.x code in RELENG 6
This is an MFC but I can't figure out where it was removed in head.
2007-03-28 01:59:27 +00:00
Julian Elischer bcaadb5607 MFC 1.112 mainly for diff reduction
use time_uptime instead of time_second.
2007-03-28 00:21:19 +00:00
Julian Elischer 66bccaf0fb THAT line wasn't part of the MFC..! 2007-03-27 23:51:45 +00:00
Julian Elischer 6642e72f49 MFC ip_fw2.c 1.143, 1.144
ip_fw.h 1.107, 1.108
    add the capacity to fwd to a table argument.
2007-03-27 23:50:17 +00:00
Julian Elischer aac3279d3b MFC of 1.157. clean up multipel references to headers and packet parts by
passing around a pointer that already points there.
2007-03-27 23:30:58 +00:00
Christian Brueffer 634c44535d MFC:
New release notes:
- acpi_dock(4) and acpi_hpet added
- msk(4) added
- GNOME updated to 2.8.0
- KDE updaed to 3.5.6
2007-03-27 21:50:36 +00:00
Nick Hibma 352841510d MFC rev 1.8:
In one of the previous commits I accidentally removed the enabling of the
  watchdog chip.

  Noticed by:     Mike Tancsa
  Tested by:      Mike Tancsa
2007-03-27 21:13:21 +00:00
Bruce M Simpson 377e781124 MFC rev 1.170:
Increase default size of raw IP send and receive buffers to the same as
  udp_sendspace, to avoid a situation where jumbograms (datagrams > 9KB)
  are unnecessarily fragmented.
2007-03-27 17:16:22 +00:00
Alan Cox 52dc566207 MFC revision 1.535 (in part)
Change the format strings in many of the assertions that were
  recently converted from PMAP_DIAGNOSTIC printf()s so that they are
  compatible with PAE.  Avoid unnecessary differences between the
  amd64 and i386 format strings.

MFC revision 1.549
  Retire pmap_track_modified().  We no longer need it because we do
  not create managed mappings within the clean submap.  To prevent
  regressions, add assertions blocking the creation of managed
  mappings within the clean submap.
2007-03-27 08:24:47 +00:00
Christian Brueffer 8048a0798b MFC:
Autogenerate hardware notes for msk(4).
2007-03-27 07:30:54 +00:00
Christian Brueffer 6814b81df6 MFC: rev. 1.19
Add Xref to msk(4).
2007-03-27 07:21:16 +00:00
Alan Cox 777a586aae MFC revision 1.534
Replace diagnostic printf()s by assertions.  Use consistent style for
  similar assertions.

MFC revision 1.545
  Remove stale KSE code.

MFC revision 1.580
  Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
2007-03-27 06:15:01 +00:00
Alan Cox e6df6f116a MFC revision 1.547
Introduce pmap_try_insert_pv_entry(), a function that conditionally
  creates a pv entry if the number of entries is below the high water mark
  for pv entries.

  Use pmap_try_insert_pv_entry() in pmap_copy() instead of
  pmap_insert_entry().  This avoids possible recursion on a pmap lock in
  get_pv_entry().

  Eliminate the explicit low-memory checks in pmap_copy().  The check that
  the number of pv entries was below the high water mark was largely
  ineffective because it was located in the outer loop rather than the
  inner loop where pv entries were allocated.  Instead of checking, we
  attempt the allocation and handle the failure.
2007-03-27 04:42:26 +00:00
Pyun YongHyeon b400e73ae1 MFC msk(4) to RELENG_6
Add msk(4) to the list of drivers supported by GENERIC kernel.
2007-03-27 02:33:00 +00:00
Pyun YongHyeon d2edc188de MFC devices.c, rev. 1.171 to RELENG_6
Add msk(4) to the list of supported network interface.
2007-03-27 02:31:34 +00:00
Pyun YongHyeon 66caa263b9 MFC loader.conf, rev. 1.114 to RELENG_6
Add an entry for the msk(4) module.
2007-03-27 02:29:45 +00:00
Pyun YongHyeon fda2cebd9c MFC miibus.4, rev. 1.19 to RELENG_6
Add msk(4) to the list of device drivers use the miibus interface.
2007-03-27 02:28:15 +00:00
Pyun YongHyeon f9f46a6aa8 MFC altq.4, rev. 1.23 to RELENG_6
Add msk(4) to the list of drivers supporting ALTQ.
2007-03-27 02:26:33 +00:00
Pyun YongHyeon 6a986dc2ac MFC vlan.4, rev. 1.33 to RELENG_6
Add msk(4) to the list of devices supporting full VLAN processing
   in the hardware.
2007-03-27 02:24:47 +00:00
Pyun YongHyeon 5dcf47716d MFC msk(4) to RELENG_6
Add a man page for msk(4)
2007-03-27 02:23:05 +00:00
Pyun YongHyeon c8af95d9c3 MFC msk(4) to RELENG_6
Hook up msk(4) to the build.
2007-03-27 02:20:20 +00:00
Pyun YongHyeon 663056481a MFC msk(4) to RELENG_6
Add msk(4), a driver for Marvell/SysKonnect Yukon II Gigabit Ethernet
  controller. Due to lack of documentation, this driver is based on the
  code from sk(4) and Marvell's myk(4) driver for FreeBSD. I've also
  adopted the OpenBSD interface name, msk(4) in order to reduce naming
  differences between BSDs.
2007-03-27 02:16:15 +00:00
Lukas Ertl adae8372d3 MFC:
Drop the ipw softc lock before calling back into net80211, fixing a
   LOR/deadlock.

   Tested by:   Denis Shaposhnikov <dsh_AT_vlink.ru>, le@
   LOR id:      205
2007-03-27 01:15:57 +00:00
Alan Cox 30586bfd5b MFC
Acquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful.
  For example, during a buildworld more than half of the calls do not
  generate an IPI because the only TLB entry invalidated is on the calling
  processor.  This revision pushes down the acquisition and release of
  smp_ipi_mtx into smp_tlb_shootdown() and smp_targeted_tlb_shootdown() and
  instead uses sched_pin() and sched_unpin() in pmap_invalidate_*() so that
  thread migration doesn't lead to a missed TLB invalidation.
2007-03-26 04:22:25 +00:00
Alan Cox edd5543c89 MFC revision 1.546
Eliminate unnecessary invalidations of the entire TLB by pmap_remove().
  Specifically, on mappings with PG_G set pmap_remove() not only performs
  the necessary per-page invlpg invalidations but also performs an
  unnecessary invalidation of the entire set of non-PG_G entries.
2007-03-25 22:01:24 +00:00
Roman Kurakin f4cd795672 MFC: -j 1.95 -j 1.96
rik         2007-03-18 23:28:53 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_bridge.c
  Log:
  Give a chance for packet to appear with a correct input interfaces
  in case of multiple interfaces with the same MAC in the same bridge.
  This commit do not solve the entire problem. Only case where packet
  arrived from such interface.

  PR:     kern/109815
  MFC after:      7 days
  Submitted by:   Eygene Ryabinkin and rik@
  Discussed with: bms@, thompsa@, yar@

  Revision  Changes    Path
  1.96      +50 -30    src/sys/net/if_bridge.c
2007-03-25 21:33:38 +00:00
Alan Cox 89d24ddda5 MFCrevision 1.560
Don't invalidate the TLB in pmap_qenter() unless the old mapping was
  valid.  Most often, it isn't.
2007-03-25 20:53:45 +00:00
Maxim Konovalov cf920fc5c0 o ommitted -> omitted.
PR:		docs/110809
Submitted by:	naddy
2007-03-25 18:31:45 +00:00
Nate Lawson eba9722c0d MFC: add acpi_hpet to the build (pointed out as missing by kib@) 2007-03-24 16:00:44 +00:00
Maxim Konovalov b1b6d2296f o Revert last: addr2ascii() is still there.
Pointed out by:	bmah
2007-03-23 21:56:06 +00:00
Maxim Konovalov 759c1264a5 MFC rev. 1.75: kill addr2ascii() man page. 2007-03-23 21:37:32 +00:00
Maxim Konovalov 4273b911dd o Kill EOL whitespaces. HEAD is OK already. 2007-03-23 21:35:32 +00:00
Maxim Konovalov 1e2a017d8a MFC rev. 1.20: add ENVIRONMENT section. 2007-03-23 21:03:19 +00:00
Nate Lawson d256fdf93d MFC: always return ok when getting number of units 2007-03-23 20:02:39 +00:00
Nate Lawson 2542c3f313 MFC: validity checking of _TMP values 2007-03-23 19:48:31 +00:00
Nate Lawson 241808c81e MFC: acpi_dock (docking station) and acpi_hpet (high-perf timer) support 2007-03-23 19:45:53 +00:00
Xin LI 17c6d18893 MFC revision 1.2
date: 2007/03/16 03:50:53;  author: delphij;  state: Exp;  lines: +9 -1
Mention a limitation that was inherted from RFC1952, making
it impossible to obtain correct file size from a file that
is larger than 4GB before compression.

PR:		bin/110329
2007-03-23 01:55:20 +00:00
Ed Maste 4d9b163be4 MFC r1.64:
KERN_PROC_ALL produces a kinfo_proc for each thread in a process, which
  caused fstat to produce duplicated output for threaded processes.  Instead
  use KERN_PROC_PROC to get just one kinfo_proc per process.
2007-03-23 01:00:40 +00:00
cvs2svn f33c26e313 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-03-22 18:16:44 +00:00
Gleb Smirnoff e67ae9e938 Carefully merge revs 1.123, 1.124, omitting the 1.120 change. This
should fix resets of the long living TCP connections with
EHOSTDOWN message.

PR:		100172
Submitted by:	"Andrew - Supernews" <andrew supernews.net>
2007-03-22 10:55:13 +00:00
Pyun YongHyeon b91f0178c9 MFC e1000phy.c rev. 1.17, 1.18 to RELENG_6
rev. 1.17
  o style(9) fixes

rev. 1.18
  o Add support code for newer Marvell PHYs.
  o Remove unused static global variable e1000phy_debug.
  o Take advantage of mii_phy_dev_probe().
  o Use MII_ANEGTICKS/MII_ANEGTICKS_GIGE instead of magic number 5.
  o Add IFM_NONE as e1000phy(4) supports it without issues.
  o Nuke magic PHY programming sequence in PHY reset and follow correct
    reset sequence. [1]
  o Make manual media selection work for all supported media types.
  o Don't set MIIF_NOISOLATE so e1000phy(4) can be used in
    configurations with multiple PHYs.
  o In 1000baseT, when setting the link manually, one side must be the
    master and the other the slave. If LINK0 is set, program the PHY
    to be a master, otherwise it's a slave.
  o When we lost a link, reset mii_ticks immediately so it correctly
    check number of seconds elapsed in autonegotiation phase.
  o Announce link loss right after it happens.
  o After kicking autonegotiation, report PHY status instead of
    returning immediatly.
  o When link state check is in progress, check auto negotiation
    completion bit only when auto negotiation is enbaled.
  o When PHY is resolved to a master, show it with IFM_FLAG2.
2007-03-22 04:05:17 +00:00
Pyun YongHyeon 78e0be143b MFC e1000phyreg.h, rev. 1.4 to RELENG_6
Add additional Marvell PHY registers.
2007-03-22 03:59:04 +00:00
Pyun YongHyeon b138874fe0 MFC miidevs, rev. 1.37 to RELENG_6
Add a bunch of new Marvell PHY ids.
2007-03-22 03:57:00 +00:00
Hidetoshi Shimokawa d019521b86 MFC: rev 1.12
Add a description about hw.firewire.hold_count.
2007-03-22 02:47:23 +00:00
Jung-uk Kim 9708165593 MFC: Sync bge(4) with -CURRENT (minus if_bge.c 1.185 and 1.186)
- Support for BCM5754/5755/5786/5787.
- Support for IPMI/ASF mode (disabled by default)
- Fix lots of bugs including style(9) nits.

Tested by:	net, stable
2007-03-21 22:53:22 +00:00
Colin Percival ccd400d5fb Fix previous commit due to libarchive 1.x vs libarchive 2.x differences.
Submitted by:	Henrik Nymann Jensen
Pointy hat to:	cperciva
2007-03-21 19:19:00 +00:00
Oleg Bulyzhin ccc98f5bd4 MFC rev. 1.102-1.105
- style(9) cleanup
- Use separate thread for servicing dummynet(4).
  Utilize taskqueue(9) API.
- Convert
        net.inet.ip.dummynet.curr_time
        net.inet.ip.dummynet.searches
        net.inet.ip.dummynet.search_steps
  to SYSCTL_LONG nodes. It will prevent frequent wrap around on 64bit archs.
- Implement simple mechanics for dummynet(4) internal time correction.
  Under certain circumstances (system high load, dummynet lock contention, etc)
  dummynet's tick counter can be significantly slower than it should be.
  (I've observed up to 25% difference on one of my production servers).
  Since this counter used for packet scheduling, it's accuracy is vital for
  precise bandwidth limitation.

  Introduce new sysctl nodes:
  net.inet.ip.dummynet.
    tick_lost           - number of ticks coalesced by taskqueue thread.
    tick_adjustment     - number of time corrections done.
    tick_diff           - adjusted vs non-adjusted tick counter difference
    tick_delta          - last vs 'standard' tick differnece (usec).
    tick_delta_sum      - accumulated (and not corrected yet) time
                          difference (usec).
- Use non-recursive mutex. MTX_RECURSE is unnecessary since rev. 1.70
- Pay respect to net.isr.direct: use netisr_dispatch() instead of ip_input()
- purge_flow_set():
    Do not leak memory while purging queues which are not bound to pipe.
2007-03-21 17:25:15 +00:00
Colin Percival b65b19673d MFC revision 1.13: Don't forget to increment the raw_position counter,
even when operating in non-buffered mode.
2007-03-21 15:26:02 +00:00
Colin Percival a8aa088d22 MFC revisions 1.5[6789]:
* Remove unused pathlen argument from write_entry function.
 * Fix logic bug in deciding if do_chdir should be called.
 * Don't consider an lstat(2) failure to be an error.
 * Correct warning message when lstat(2) fails.
2007-03-21 15:15:57 +00:00
Sam Leffler 2d87294f32 MFC: power save fix:
When dispatching frames saved on the power save queue to a
station exiting power save mode prepend them to the driver's
send q instead of appending them.  This insures the packets
are not misordered wrt any packets already q'd for the station.

This corrects a problem noticed when using a VoIP phone talking
to an ath card in ap mode; the misordered packets caused noise.

Submitted by:	"J.R. Oldroyd" <[email protected]>
2007-03-21 05:01:44 +00:00
Sam Leffler def15e3df7 MFC 1.79: when starting up an ibss master use a random address for the bssid
Obtained from:	Atheros
2007-03-21 04:56:38 +00:00
Yoshihiro Takahashi c1129cf9b0 MFi386: revision 1.13.8.4.
MFC: Fix the cdboot twiddle display.
2007-03-21 03:41:25 +00:00
Bruce M Simpson 7209bf6cad Sync with HEAD. 2007-03-21 00:45:13 +00:00
Bruce M Simpson bb1105bda7 MFC rev 1.53:
Remove obsolete polling members from documentation for struct ifnet.

Submitted by:	Aniruddha Bohra
2007-03-20 23:24:25 +00:00
Brian Somers 6159cdf127 MFC: Don't free the buffer with the sysctl value before printing it. 2007-03-20 23:15:45 +00:00
Will Andrews a5849fb40b MFC: r1.18: Allow overriding the HOME environment as per the man page. 2007-03-20 20:22:18 +00:00
Bruce M Simpson 86e84b318c MFC:
In regular forwarding path, reject packets destined for 169.254.0.0/16
  link-local addresses. See RFC 3927 section 2.7.

  Revision  Changes    Path
  1.96      +1 -1      src/sys/netinet/in.c
  1.324     +6 -0      src/sys/netinet/ip_input.c
2007-03-19 22:57:58 +00:00
Christian Brueffer c55c471cfe MFC:
- Add cxgb(4) entry, remove stale wx(4) entry
- (gigabit|fast) ethernet -> (Gigabit|Fast) Ethernet

Approved by:	rwatson (mentor)
2007-03-19 21:42:39 +00:00
Brian Somers e0889476b7 MFC: Default output to stdout as the man page suggests.
Only go through our cylinder group and inode info when we need to.
2007-03-19 19:16:49 +00:00
Brian Somers 25b79b1ee9 MFC: Reindent main() 2007-03-19 19:15:42 +00:00
Brian Somers 917cc8c454 MFC: Account for di_blocks allocations when IN_SPACECOUNTED is set in an
inode's i_flag.  This fixes an eventual df/du discrepency resulting
     from fs_pendingblocks being reduced to less than zero.
2007-03-19 18:56:40 +00:00
Christian Brueffer b821e79076 MFC:
my(4) doesn't need miibus(4).

Approved by:	rwatson (mentor)
2007-03-19 16:56:48 +00:00
Bruce A. Mah bc38242d5d MFC: Various changes to sync this manpage to HEAD.
cxgb.4	1.4 -> 1.7

Discussed with:	brueffer
2007-03-19 16:22:56 +00:00
Bruce A. Mah 4abd4617d8 MFC: npe(4).
New release note:  freebsd-update(8) SMP kernel update fix.
2007-03-19 15:26:24 +00:00
Pyun YongHyeon 3d70d171ff MFC if_ste.c rev 1.98, if_stereg.h rev 1.22 to RELENG_6.
Add new ST201 PCI id.
2007-03-19 06:58:47 +00:00
Sam Leffler 7bb7fa301b MFC: Change mtx's to use the formulated name as type so witness does not
complain on nested tx q lock acquisitions when processing the cab q.
2007-03-19 05:34:30 +00:00
Sam Leffler b7024d5792 MFC 1.163: Kick tx after processing rx'd frames
Submitted by:	"J.R. Oldroyd" <[email protected]>
2007-03-19 05:32:04 +00:00
Sam Leffler 3d42769727 MFC 1.46: correct conversions between TU and ms/ticks
Submitted by:	sephe
2007-03-19 05:27:18 +00:00
Hidetoshi Shimokawa 974c44284e MFC: rev 1.86 and 1.87
Support MAXPHYS up to 512KB
2007-03-19 05:13:21 +00:00
Hidetoshi Shimokawa db4a414832 MFC: rev 1.57
Don't mess with PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN.
This will fix 'NMI RAM parity error' while booting on some machines.

PR: kern/95077
2007-03-19 05:11:07 +00:00
Kip Macy 531d87fcae The driver would hang during attach on RELENG_6 - by "fixing" the issue
by adding debug print statements I've come to the conclusion that too little
time is being allowed to pass between register updates. Increasing the DELAY
interval by a constant interval eliminates this issue on my hardware.
2007-03-19 04:50:15 +00:00
Bruce A. Mah 8388ff5b86 New errata: EN-07:05.freebsd-update. 2007-03-18 19:42:24 +00:00
Nate Lawson d3a47d7c6a MFC rev 1.9: quiet down the errors when all fs are read-only 2007-03-18 05:34:47 +00:00
Kip Macy a67b29f878 move inline function before use so that -O works 2007-03-17 05:25:28 +00:00
Will Andrews 73b8218dff MFC: r1.67: Make error messages regarding -t and -l consistent. 2007-03-17 02:10:14 +00:00
Qing Li 1b251a26f8 MFC: r1.316, accept valid RST packet when delayed ack is in effect. 2007-03-16 22:04:25 +00:00
Maxim Konovalov 5d1e0b0187 MFC rev. 1.16: fix prototypes.
PR:		docs/110012
2007-03-16 21:35:13 +00:00
Yaroslav Tykhiy 7c8a7c6c10 MFC rev. 1.71, 1.74:
Prepend ${_chroot} to pathnames where appropriate,
	and do that properly.
2007-03-16 15:34:09 +00:00
Ariff Abdullah 8089f59c95 MFC:
Add AC97 inverted external amplifier quirk for ASUS A6R laptop.

PR:	kern/110244
2007-03-16 13:55:34 +00:00
Christian Brueffer 9afe56a07c MFC:
New release notes: vge(4) altq support, cxgb(4) added.
2007-03-15 13:46:08 +00:00
Christian Brueffer 42686b6458 MFC:
Autogenerate the hardware list for cxgb(4).
2007-03-15 09:17:01 +00:00
Xin LI d786934173 MFC fixes to regexp(3) from OpenBSD, this includes:
engine.c: 1.19+1.20
	grot/tests: 1.3
2007-03-15 05:51:24 +00:00
Kip Macy ae5dbb9acc hook cxgbtool into buildworld
update include names
2007-03-15 04:05:33 +00:00
Kip Macy b6b767cbd0 Add cxgb man page to build 2007-03-15 03:52:23 +00:00
Kip Macy 9715f8af1c add cxgb management tool cxgbtool 2007-03-15 03:21:32 +00:00
Kip Macy 2083299dcc hook cxgb into LINT build 2007-03-15 03:18:59 +00:00
Kip Macy ea09b48c11 hook cxgb into modules build 2007-03-15 03:13:49 +00:00
Kip Macy ae908445d7 MFC Chelsio T3 10 Gigabit Ethernet support
Don't hook into build just
2007-03-15 03:06:32 +00:00
Craig Rodrigues 466111770d MFC: 1.163
Add "force" to ext2_ops, to match what was in the old mount_ext2fs binary.

  Reported by:    Ivan Voras <ivoras fer hr>
2007-03-15 00:11:56 +00:00
Nate Lawson b49b40a470 Only enter the debugger on a Fatal op if this is a debug build of the
acpi module.  Also clean up print of args a little.
2007-03-14 19:50:07 +00:00
cvs2svn 99b33df140 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-03-14 18:20:37 +00:00
Bruce M Simpson 2671f84896 MFC:
AF_LINK support for getnameinfo().

Obtained from:	NetBSD
2007-03-14 16:44:31 +00:00
Bruce M Simpson 3f0601a0a3 Mark addr2ascii() and ascii2addr() clearly as being deprecated. 2007-03-14 16:31:16 +00:00
Yaroslav Tykhiy 21faec4cb9 MFC:
As suggested more than once in the lists, drop -M from flags to mfs
  for /tmp and /var.  This makes the memory discs swap-backed instead
  of malloc-backed.  A swap-backed memory disc should not be worse
  than a malloc-backed one in any scenario because it will start
  touching swap only when needed.  OTOH, a malloc-backed disc can
  starve limited kernel resources and evenually crash the system.

  Reflect the change in the rc.conf(5) manpage.  Also stop telling
  lies there about softupdates: it does not waste disc space, it
  just can delay its freeing.

	src/etc/defaults/rc.conf	1.306
	src/share/man/man5/rc.conf.5	1.317
2007-03-14 14:19:42 +00:00
Bruce M Simpson 4b18352c34 MFC rev 1.4:
Update host-mode multicast group information output.
   Display IPv4 and IPv6 memberships separately.
    Obey the MK_INET6_SUPPORT flag.
   Display link-layer memberships.
    Use addr2ascii() to correctly print non-IEEE 802 sockaddr_dl instances.
   Eliminate redundant switch..case blocks.
   Update copyright.
   Misc style changes.
2007-03-14 14:10:22 +00:00
Bruce M Simpson 238790e9e8 MFC rev 1.203:
Fix IP_SENDSRCADDR semantics.

   * To use this option with a UDP socket, it must be bound to a local port,
     and INADDR_ANY, to disallow possible collisions with existing udp inpcbs
     bound to the same port on other interfaces at send time.

   * If the socket is bound to INADDR_ANY, specifying IP_SENDSRCADDR with
     INADDR_ANY will be rejected as it is ambiguous.

   * If the socket is bound to an address other than INADDR_ANY, specifying
     IP_SENDSRCADDR with INADDR_ANY will be disallowed by in_pcbbind_setup().

Reviewed by:	silence on -net
Tested with:	src/tools/regression/netinet/ipbroadcast
2007-03-13 22:12:23 +00:00
Bruce M Simpson 10e7d3e737 MFC rev 1.159:
Comply with RFC 3927, by forcing ARP replies which contain a source
  address within the link-local IPv4 prefix 169.254.0.0/16, to be
  broadcast at link layer.

Reviewed by:	fenner
2007-03-13 21:59:20 +00:00
Bruce M Simpson 2837e0f9c2 MFC rev 1.38:
Document SO_ACCEPTCONN.

Submitted by:	Vlad GALU (with changes)
2007-03-13 21:56:18 +00:00
Thomas Quinot 5ebd377193 MFC mount_nfs.c rev. 1.72, mount_nfs.8 rev. 1.47:
Add "fg" option as antonym to "bg"; add "hard" option as antonym to "soft".
This is for better compatibility with other environments (Linux, Solaris,
HP-UX, AIX and Tru64 support these options).

PR: bin/109924
2007-03-13 20:28:24 +00:00
Joerg Wunsch 01507857a2 Merge Peter's fix from rev 1.14 back to RELENG_6. This line of code
appears to have been accidentally committed in rev 1.11, and was never
meant to go into any official code.
2007-03-12 21:41:01 +00:00
John Baldwin df44e5c4ee MFC: Don't reject file descriptors higher than FD_SETSIZE when using
kevent(2).
2007-03-12 19:51:57 +00:00
John Baldwin 963b7d6591 MFC: Add a simple device driver to "eat" any I/O APICs that show up as PCI
devices.
2007-03-12 19:50:29 +00:00
Ruslan Ermilov df1307075f MFC: Don't block on the socket zone limit during the socket()
syscall which can lock up a system otherwise; instead, return
ENOBUFS as documented, which matches the FreeBSD 4.x behavior.
2007-03-12 12:13:53 +00:00
Scott Long b308b195d9 Merge rev 1.16 and 1.18 to fix I/O problems under high load. Thanks to
Areca for working on this.

Submitted by: Erich Chen
2007-03-12 07:43:07 +00:00
Matt Jacob 8a7d3c1ff7 Use 2K Login firmware for 2300s. 2007-03-12 05:28:29 +00:00
Ariff Abdullah d5fe623e23 MFC (revision 1.31)
Fix long standing multi playback/recording issues, caused by
excessive interrupt clock timer reset, screwing interrupt generation
for already active channels. Track moving DMA pointer and call buffer
interrupt on each blocksize boundary.

PR:		kern/109791
2007-03-12 02:03:25 +00:00
Tim Kientzle edb8278740 MFC 1.32: Support entries up to 4G. 2007-03-11 20:19:45 +00:00
Tim Kientzle aa17afcad7 MFC 1.22: Re-enable archiving of ACLs 2007-03-11 19:46:56 +00:00
Kris Kennaway 15e12f85aa MFC: Don't hard-code the nfs root socket as SOCK_DGRAM. This is currently
a NOP in 6.x but this may change if further code is merged from 7.0.
2007-03-11 19:44:52 +00:00
Matteo Riondato dcb9956d25 mdmfs.c: MFC revs 1.29-1.31
mdmfs.8: MFC revs 1.27-1.29

PR:		bin/66763 103501 kern/109863
2007-03-11 18:24:22 +00:00
Simon L. B. Nielsen 8f5723519b MFC src/lib/libc/Makefile (1.69) src/lib/libc/rpc/clnt_dg.c (1.19):
Disable RPC exponential back-off for FreeBSD.org systems (IE. hidden
behind _FREEFALL_CONFIG).  This is done mainly to make NIS even more
resistant to packet loss.

This is not enabled by default for "normal" FreeBSD since it might cause
the server providing the RPC service to be hit heavily with RPC traffic
in case of problems.  freefall.FreeBSD.org and hub.FreeBSD.org have been
running with a patch similar to this for a couple of weeks.

MFC after:	1 week
Discussed with:	peter
2007-03-11 10:15:49 +00:00
Ruslan Ermilov e0d2f9794e MFC: 1.38: Fix interface output being stuck under low memory conditions. 2007-03-11 10:11:16 +00:00
Simon L. B. Nielsen 7619493d5b MFC 1.50:
- Bump _yplib_timeout limit from 10 to 20 seconds to better handle
  packet loss when talking to a NIS server.
- Set 1 second retry timeout to further realistically handle UDP
  packet loss for yp_next packet bursts.  If the packet hasn't come
  back within 1 second its rather unlikely to come back at all.  There
  is still back-off mechanism in RPC so if there is another reason
  than packet loss for the lack of response within 1 second, the NIS
  server will not be totally bombarded with requests.

This reduces the risk of NIS failing with:

	yp_next: clnt_call: RPC: Timed out

considerably.  This is mainly a problem if you have larger NIS maps
(like at FreeBSD.org) since enumerations of the lists will cause a UDP
packet bursts where a few packets being lost once in a while do
happen.

Discussed with: peter
Problem mainly diagnosed by:    peter
2007-03-11 09:59:51 +00:00
Matt Jacob 77b7102d4a feedback from RELENG_5 port 2007-03-11 01:59:44 +00:00
Matt Jacob 132db59155 MFC header/license cleanup. No effect on code. 2007-03-11 01:51:20 +00:00
Kirk McKusick 00741773c6 MFC from revision 1.165 2007-03-11 00:56:17 +00:00
Yaroslav Tykhiy 10e414c59c MFC rev. 1.100:
Typo fix: preceed -> precede.
2007-03-10 14:29:31 +00:00
Yaroslav Tykhiy e09c6541d6 MFC rev. 1.9:
Fix a typo in a warning message.
2007-03-10 14:20:34 +00:00
Yaroslav Tykhiy 44b58859ee MFC rev. 1.9-1.11:
Better handling for unset or null $hostname, which can appear
in a system just installed, or configured via DHCP.
2007-03-10 14:17:27 +00:00
Yaroslav Tykhiy bdfec40024 MFC rev. 1.26:
pkill(1) and pgrep(1) have been moved to /bin so that they are
available to rc.d scripts early in the boot sequence.
2007-03-10 14:07:01 +00:00
Yaroslav Tykhiy a6ab1396ff MFC rev. 1.10:
Improve rc.d conformance:
- don't play a needless trick with prestart, just use start method;
- provide no-op stop method so that we don't get bogus "abi not running" error.
2007-03-10 14:04:01 +00:00
Yaroslav Tykhiy 2f671a669f MFC rev. 1.18:
Syscons cannot be stopped, so provide a no-op stop method.
The default stop method from rc.subr isn't suited for this
case and produces a bogus warning: "syscons not running".
2007-03-10 14:00:51 +00:00
Yaroslav Tykhiy 25d1e0bd6a MFC rev. 1.73: Allow for interpreted scripts using env(1)
in their shebang lines.

PR:	bin/100287
2007-03-10 13:53:04 +00:00
Sam Leffler 3f1c78be71 MFC: set the antenna switch when fixing the tx antenna using the
dev.ath.X.txantenna sysctl
2007-03-10 00:53:09 +00:00
Sam Leffler be572866de MFC 1.162: don't call ath_reset when processing sysctl's before the
device is marked running
2007-03-10 00:51:49 +00:00
Sam Leffler 77a7baf2ea MFC 1.44: remove local def for IEEE80211_IS_CHAN_PASSIVE now that it's defined 2007-03-10 00:48:28 +00:00
Sam Leffler 2030f8fa13 sync whitepsace 2007-03-10 00:46:21 +00:00
Sam Leffler 8f9e643c4e MFC: Correct several issues with rate set negotiation
Submitted by:	Sepherosa Ziehau (w/ modifications)
Obtained from:	DragonFly
2007-03-10 00:33:47 +00:00
Sam Leffler 5fcf7c983d MFC: Fix potential node refcnt leak
Submitted by:	Sepherosa Ziehau
Obtained from:	DragonFly
2007-03-10 00:31:03 +00:00
Sam Leffler e8b9f59127 MFC 1.7: add IEEE80211_IS_CHAN_PASSIVE 2007-03-10 00:28:43 +00:00
Sam Leffler d2ac864e5f start of arm-specific man pages 2007-03-10 00:26:12 +00:00
Sam Leffler 1a2a0ea219 MFC: add ath hal rules 2007-03-10 00:19:24 +00:00
Sam Leffler 3efd7a4b51 MFC 1.10: elaborate on stepping names 2007-03-10 00:16:52 +00:00
Bruce A. Mah bf25f4c1c8 MFC: ath(4) HAL 0.9.20.3, 802.11 900 MHz and quarter/half channel
support, if_bridge(4) RSTP, ng_deflate(4), ng_pred1(4), unionfs
update, wpa_passphrase(8).

New release notes:  IPv6 over gif(4) fix.
2007-03-09 23:52:39 +00:00
Konstantin Belousov 94423ad821 MFC
rev. 1.201 src/sys/kern/kern_prot.c
rev. 1.334 src/sys/kern/vfs_export.c
rev. 1.95  src/sys/nfsserver/nfs_srvsock.c
rev. 1.137 src/sys/nfsserver/nfs_srvsubs.c
rev. 1.53  src/sys/sys/ucred.h
rev. 1.273 src/sys/ufs/ufs/ufs_vnops.c

Use the refcount API to manage the reference count for user credentials
rather than using pool mutexes.

MFC changes:
The cr_mtxp field of struct ucred is preserved as padding to keep structure
size intact. nfs_srvsock.c change is nullified by rev. 1.96, that was MFCed
as rev. 1.94.2.2.

OKed by:	jhb
LOR:		187
2007-03-09 13:54:26 +00:00
John Baldwin 856972727e MFC:
- Flesh out list of UART simple comms programming interfaces.
- Add list of PIC base peripheral programming interfaces.
- Add VPD capability register offsets.
2007-03-08 16:23:04 +00:00
Bruce M Simpson 64e4cd4c20 MFC rev 1.270:
Fix undirected broadcast sends for the case where SO_DONTROUTE has also
  been set at the socket layer, in our somewhat convoluted IPv4 source
  selection logic in ip_output().

  IP_ONESBCAST is actually a special case of SO_DONTROUTE, as 255.255.255.255
  must always be delivered on a local link with a TTL of 1.

  If IP_ONESBCAST has been set at the socket layer, also perform destination
  interface lookup for point-to-point interfaces based on the destination
  address of the link; previously it was not possible to use the option with
  such interfaces; also, the destination/broadcast address fields map to the
  same field within struct ifnet, which doesn't help matters.

Reviewed by:	andre
2007-03-08 13:19:03 +00:00
Bruce M Simpson 777c38fa55 MFC rev 1.266:
Fix a bug in if_findmulti(), whereby it would not find (and thus delete)
  a link-layer multicast group membership.
  Such memberships are needed in order to support protocols such as
  IS-IS without putting the interface into PROMISC or ALLMULTI modes.
  sa_equal() is not OK for comparing sockaddr_dl as it has deeper structure
  than a simple byte array, so add sa_dl_equal() and use that instead.

Reviewed by:	rwatson
Verified with:	/usr/sbin/mtest
Bug found by:	Jouke Witteveen
MFC after:	2 weeks
2007-03-08 13:15:27 +00:00
Shteryana Shopova 911f918b5d MFC:
etc/snmpd.config, Revision 1.8

Add a (disabled) configuration line to enable snmp_bridge(3) module.

Approved by:	bz (mentor)
2007-03-08 10:27:36 +00:00
Shteryana Shopova 95d596aa75 MFC:
src/usr.sbin/bsnmpd/modules/Makefile, Revision 1.13

Connect the snmp_bridge(3) module to the build.

Approved by:	bz (mentor)
2007-03-08 09:29:01 +00:00
Colin Percival 2c7ec642b8 MFC rev. 1.5: Fix problems resulting from SMP kernels (mis-)identifying
themselves as "SMP-GENERIC" (i386) or "GENERIC" (amd64).
2007-03-08 05:43:12 +00:00
Matt Jacob d5740ed60d Update isp(4) man page to match driver in RELENG_6. 2007-03-08 05:38:23 +00:00
Matt Jacob b3e3271ec9 Synchronize with -current as of this date. There is a lot of source
churn, but it's there to make diffs in the future easier. There isn't
much substantive change that springs to mind.
2007-03-08 05:35:08 +00:00
Matt Jacob 1355abe55f MFC 4 Gb support for QLogic cards. 2007-03-08 05:32:12 +00:00
Matt Jacob ce15fc6671 MFC 4 Gb support + rewrite of loop/fabric state machine code. 2007-03-08 05:31:40 +00:00
Matt Jacob 0f4b76b11a MFC xpt_rescan functionality. 2007-03-08 05:30:26 +00:00
Hajimu UMEMOTO 98057ee0a8 MFC 1.53: Check the return value from rad_cvt_ipv6prefix(). 2007-03-08 05:23:30 +00:00
Tom Rhodes c1eb4d8a92 MFC:
Add a 3rd entry in the cache, which keeps the end position
from just before extending a file.  This has the desired effect
of keeping the write speed constant.  And yes, that helps a lot
copying large files always at full speed now, and I have seen
improvements using benchmarks/bonnie.

Stolen from:	NetBSD
Reviewed by:	bde
2007-03-08 03:01:00 +00:00
Shteryana Shopova 1ca16ec726 MFC:
src/usr.sbin/bsnmpd/modules/snmp_bridge/BEGEMOT-BRIDGE-MIB.txt, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/BRIDGE-MIB.txt, Revision 1.1
   src/usr.sbin/bsnmpd/modules/snmp_bridge/Makefile, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/RSTP-MIB.txt, Revision 1.1
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c, Revision 1.3
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c, Revision 1.6
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_pf.c, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c, Revision 1.5
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.c, Revision 1.3
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h, Revision 1.4
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c, Revision 1.6
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/snmp_bridge.3, Revision 1.2

Bring in a SNMP module to support monitoring if_bridge(4) interfaces
via bsnmpd(1). The module implements IETF BRIDGE-MIB and RSTP-MIB as defined in
RFC4188 and RFC4318 and a private BEGEMOT-BRIDGE-MIB.

Sponsored by:	Google Summer of Code 2006
Approved by:	bz (mentor)
2007-03-07 20:16:31 +00:00
Bruce A. Mah cd4c5bb250 New errata: EN-07:03.rc.d_jail.
Updated errata:  IPv6 over gif(4) issue now described by
EN-07:02.net.
2007-03-07 19:38:21 +00:00
Shteryana Shopova 8d9e2cdaa2 To make sure build of newer RELENG_6 on older ones work,
advance __FreeBSD_version check for gensnmptree in the
list of bootstrap-tools.
This is needed for the upcoming MFC of snmp_bridge module,
which makes use of new features of gensnmptree.

Approved by:	bz (mentor)
2007-03-07 18:45:14 +00:00
Shteryana Shopova 1d92274eeb MFC:
src/contrib/bsnmp/gensnmptree/gensnmptree.1, Revision 1.1.1.7
    src/contrib/bsnmp/gensnmptree/gensnmptree.c, Revision 1.1.1.11
    src/contrib/bsnmp/gensnmpdef/gensnmpdef.1, Revision 1.1.1.5
    src/contrib/bsnmp/gensnmpdef/gensnmpdef.c, Revision 1.1.1.3

Vendor patch: add support for the BITS construct and enumerations in
both gensnmpdef and gensnmptree. Add include and typedef directives to
gensnmptree.

Approved by:	bz (mentor)
OKed by:	harti
2007-03-07 16:31:47 +00:00
Bruce M Simpson f8403d032d Fix license. Clause 4 is still required (UCB materiel).
Submitted by:	rwatson
Pointy hat to:	bms
2007-03-07 13:38:11 +00:00
Bruce M Simpson 1c595a0bc5 MFC rev 1.21:
Document protocol specific actions and return values.
  Use 2-clause FreeBSD license.
2007-03-07 11:09:52 +00:00
Remko Lodder fe6cb4d53b MFC 800.loginfail rev 1.8
Only match on log messages containing fail,invalid,
  bad or illegal. This prevents matching on systems that
  have a name that matches the query.

  PR:             conf/107560
  Submitted by:   Christian Laursen <cfsl at pil dot dk>
  MFC after:      3 days
  Approved by:    imp (mentor)

Approved by:	imp (mentor)
2007-03-06 18:29:19 +00:00
Remko Lodder c2a9e167c5 MFC cdboot.s rev 1.17
Fix the cdboot twiddle display.
  I created and tested this with a custom FreeSBIE cd-image.

  PR:             i386/96452
  Submitted by:   Yuichiro Goto <y7goto at gmail dot com>
  MFC after:      3 days
  Approved by:    imp (mentor)

Approved by:	imp (mentor)
2007-03-06 18:28:28 +00:00
Remko Lodder 721c7bb230 MFC 310.locate rev 1.7
Move to the preferred syntax for nice (-n) instead
  of the depricated one.

  PR:             conf/108611
  Submitted by:   TAOKA Fumiyoshi <fmysh at iijmio-mail dot jp>
  Approved by:    imp (mentor)

Approved by:	imp (mentor)
2007-03-06 18:27:24 +00:00
Thomas Quinot fe9879d49c MFC rev. 1.47:
(cam_rescan): Do not reference ccb->ccb_h.path in CAM_DEBUG call before
it is initialized; use path instead.
PR: kern/103602
2007-03-06 16:56:50 +00:00
Tim Kientzle d0d2ee1275 MFC archive_read_extract.c r1.52
Reset umask() during extraction so that mode computations come
out right.  In particular, this fixes the broken "tar -p" option.
2007-03-06 08:03:17 +00:00
Bruce M Simpson c1c9ec243e MFC rev 1.59:
Add ELSA XI330 product.  This is rebadged and sold as SMC 2532W-B and
  I/O Data also resells it.  Add an alternative airvast an100 id.

PR:	kern/92323
2007-03-05 12:46:16 +00:00
Bruce M Simpson 03a0ce805c MFC rev 1.152:
Do not dispatch SIGPIPE from the generic write path for a socket; with
  this patch the code behaves according to the comment on the line above.

  Without this patch, a socket could cause SIGPIPE to be delivered to its
  process, once with SO_NOSIGPIPE set, and twice without.

With this patch, the kernel now passes the sigpipe regression test in
both HEAD and RELENG_6.

PR:		78478 (the bug fix for this PR introduced this bug)
Tested by:	Anton Yuzhaninov
Reviewed by:	jhb
2007-03-05 11:17:31 +00:00
Bruce M Simpson aad77a91d8 MFC rev 1.33:
Add missing TH_PUSH to the TH_FLAGS enumeration.

Submitted by:	Andre Albsmeier <Andre.Albsmeier-at-siemens.com>
PR:		kern/85203
2007-03-05 10:21:52 +00:00
Bruce M Simpson 49e601f0b7 MFC rev 1.60:
In the output path, mask off M_BCAST|M_MCAST so as to prevent incorrect
  addressing if a packet is later re-encapsulated and sent to a
  non-broadcast, non-multicast destination after being received on the
  ng_ksocket input hook.

These mbuf flags should not be set on the mbuf packet header chain until
the data thus sent re-enters ip_output() by way of the pru_sosend callback
anyway.

PR:		106999
Tested by:	ume
Submitted by:	Kevin Lahey
2007-03-04 14:54:02 +00:00
Bruce M Simpson 7c12c9ef5f MFC:
Implement ifnet cloning for tun(4)/tap(4).
  Make devfs cloning a sysctl/tunable which defaults to on.

  If devfs cloning is enabled, only the super-user may create
  tun(4)/tap(4)/vmnet(4) instances. Devfs cloning is still enabled by
  default; it may be disabled from the loader or via sysctl with
  "net.link.tap.devfs_cloning" and "net.link.tun.devfs_cloning".

  Disabling its use affects potentially all tun(4)/tap(4) consumers
  including OpenSSH, OpenVPN and VMware.

  Revision  Changes    Path
  1.18      +32 -5     src/share/man/man4/tap.4
  1.24      +33 -4     src/share/man/man4/tun.4
  1.69      +126 -32   src/sys/net/if_tap.c
  1.162     +77 -7     src/sys/net/if_tun.c

PR:		105228 (potentially also 90413, 105570)
Submitted by:	Landon Fuller
Tested by:	Andrej Tobola
Approved by:	core (rwatson)
2007-03-04 14:34:42 +00:00
Bruce M Simpson 5a71d8bbbc MFC rev 1.131:
Unlock a mutex which should be unlocked before returning.
2007-03-04 12:39:43 +00:00
Colin Percival 72e0d0a2d0 MFi386: Ident the SMP kernel as SMP-GENERIC (not GENERIC). 2007-03-03 23:20:42 +00:00
Christian Brueffer efa9c77cb1 MFC: rev. 1.40 by ru
Update the URL for the list of supported products.
2007-03-02 20:47:06 +00:00
Jung-uk Kim 2892a11ec2 MFC: Use ETHER_BPF_MTAP() instead of BPF_MTAP(). 2007-03-02 19:19:31 +00:00
John Baldwin ba2e4e0a72 MFC: Always protect the kthread flags with the lock and close a race with
module unload and kthread_exit().
2007-03-02 17:03:04 +00:00
Christian S.J. Peron abb0049c15 MFC ether_vlan_mtap and modifications to em(4) which remove the
promisc mode hack while vlan hardware tag processing is enabled.

For all the details view the commitlog for the following files:

sys/net/ethernet.h revision 1.26
sys/net/if_ethersubr.c revision 1.220
sys/dev/em/if_em.c revision 1.165
2007-03-01 17:32:28 +00:00
Robert Watson dfd71cd5aa Merge uipc_usrreq.c:1.183 from HEAD to RELENG_6:
Close a race that occurs when using sendto() to connect and send on a
  UNIX domain socket at the same time as the remote host is closing the
  new connections as quickly as they open.  Since the connect() and
  send() paths are non-atomic with respect to another, it is possible
  for the second thread's close() call to disconnect the two sockets
  as connect() returns, leading to the consumer (which plans to send())
  with a NULL kernel pointer to its proposed peer.  As a result, after
  acquiring the UNIX domain socket subsystem lock, we need to revalidate
  the connection pointers even though connect() has technically succeed,
  and reurn an error to say that there's no connection on which to
  perform the send.

  We might want to rethink the specific errno number, perhaps ECONNRESET
  would be better.

  Reported by:    Young Hyun <youngh at caida dot org>

PR:             100940
2007-03-01 11:07:18 +00:00
Andrey A. Chernov 059243efac MFC: RUR->RUB 2007-02-28 19:00:37 +00:00
Christian Brueffer b3a0f6ff6f MFC:
Complete the support for altq(4).
2007-02-28 14:06:25 +00:00
Christian Brueffer 8a6526c82d MFC: rev. 1.29
Complete the support for altq(4).

Approved by:	rwatson (mentor)
2007-02-28 14:04:25 +00:00
Konstantin Belousov e86471bc8d MFC rev. 1.579: MFi386 rev. 1.544 of i386/i386/pmap.c:
Rounding addr upwards to next 2M boundary in pmap_growkernel() could
cause addr to become 0, resulting in an early return without populating
the last PDE.
2007-02-28 09:27:45 +00:00
Konstantin Belousov 017b075232 MFC rev. 1.431:
Remove union_dircheckp hook, it is not needed by new unionfs code anymore.
As consequence, getdirentries() no longer needs to drop/reacquire
directory vnode lock, that would allow it to be reclaimed in between.
2007-02-28 09:26:53 +00:00
Nick Hibma 6d56ef13aa Forced commit (cut&paste error in the MFC):
The default is '-t swap' not '-t malloc'.

Noticed by:	brooks
2007-02-27 18:59:27 +00:00
Nick Hibma d6d4afabca Make hosts.allow a link to hosts_options instead.
Requested by:	ru
2007-02-27 14:20:40 +00:00
Bruce M Simpson 185be0dd21 MFC:
Use int instead of u_int for the 'extra' argument to the
  clone_create() KPI.
  This fixes a signedness bug in unit number comparisons.

  Revision  Changes    Path
    1.201     +1 -1      src/sys/kern/kern_conf.c
    1.67      +1 -1      src/sys/net/if_tap.c
    1.231     +1 -1      src/sys/sys/conf.h

Submitted by:	imp, Landon Fuller
PR:		kern/105228
2007-02-27 13:27:06 +00:00
Nick Hibma cf85098a5e MFC:
1.203     +6 -2      src/sys/cam/scsi/scsi_da.c
1.101     +1 -1      src/sys/geom/geom_disk.c

Reduce the noise when plugging in (USB) mass storage devices, like a 4 port
flash card reader.
Also remove an 'Opened da0 -> <random number>' which is not needed on a daily
basis (available through bootverbose).
2007-02-27 12:15:51 +00:00
Nick Hibma 713759794f MFC
rev. 1.34-1.36 mdconfig.8
	rev. 1.52-1.54 mdconfig.c

Make attach the default for -f and assume '-a' and '-t malloc' flags for '-s
<size>' (malloc ramdisk) if not specified.

To mount an image:

	MD=`mdconfig -f image`
	mount $MD /mnt

To create and mount a RAM disk (gosh, last I used those was on an Atari 1040ST:
256kb just to piss off the 640kb PC loosers)

	MD=`mdconfig -s 5mb`
	newfs /dev/$MD
	mount /dev/$MD /mnt

Et voila! Much easier to remember.
2007-02-27 09:04:56 +00:00
Nick Hibma 4ef6d96831 MFC r1.19:
Create a link from hosts.allow(5) hosts_access(3), to give the user a
starting point for more information on a file in /etc.
2007-02-27 08:41:15 +00:00
Ed Maste 07a54aa47d MFC fbsd-threads.c 1.16:
Avoid writing uninitialized stack data into a thread's MMX/SSE state by
  first getting the current state with td_thr_getxmmregs_p.
2007-02-27 01:54:17 +00:00
Olivier Houchard 3d50470da4 MFC:
Teach the kernel and the ELF trampoline how to boot from onboard flash.
2007-02-27 00:27:50 +00:00
Olivier Houchard 518db8d540 MFC:
make arm/disassem.c conditional on DDB.
2007-02-27 00:02:40 +00:00
Olivier Houchard 289de55601 Partial MFC of rev 1.22 (the other bits were already MFC'd by marcel).
Additionally, remove the probe for the high 4 bits of IER being 0 and don't
assume we can always read/write 0 to/from those bits.

This is needed to get uart(4) to work on Xscale PXA255 and IXP425.
2007-02-26 23:33:07 +00:00
Olivier Houchard e01607951d MFC:
bounce pages for arm.
2007-02-26 23:23:31 +00:00
Olivier Houchard 6220e219e7 MFC:
Use -EB for LD as well, if we're running big endian.
2007-02-26 23:18:21 +00:00
Olivier Houchard 869f0bc096 MFC: add support for the Analog Devices AD7418 chip and the DS1672 RTC.
This require some bits of the work done by imp@ on iicbus, it should be
harmless.

MFC work done by:	sam
2007-02-26 23:17:51 +00:00
Olivier Houchard cd1831ff99 MFC support for the IXP425.
MFC work largely done by:	sam
2007-02-26 23:13:09 +00:00
Olivier Houchard 07a5144162 MFC:
Add CPU_XSCALE_IXP425
2007-02-26 23:10:16 +00:00
Christian Brueffer b7f6b25bad MFC: rev. 1.7
Remove an obsolete error message.
2007-02-26 21:11:38 +00:00
John Baldwin c15761a9cb MFC: Add support for SERDES phys which are handled by gentbi(4). brgphy(4)
had to be changed to only attach to 5706C phys as the SERDES phys use the
same MII model ID.

Approved by:	dwhite
2007-02-26 20:58:08 +00:00
John Baldwin 2cbcf41783 MFC: Add missing MIIBUS_MEDIAINIT() call. 2007-02-26 20:56:34 +00:00
John Baldwin 68a8a1c5c7 MFC r1.47: Use mii_phy_dev_probe() to reduce diffs with HEAD. 2007-02-26 20:50:58 +00:00
Olivier Houchard f0cbcaa1c7 MFC rev 1.29 and 1.30:
Use __QUAD_LOWWORD for __syscall, to always use the good word, whatever the
endianness is.

Special casing of __syscall return value for big endian.
2007-02-26 20:38:31 +00:00
Olivier Houchard 5332d6be11 MFC rev 1.2:
Provide definitions suitable for arm big-endian.
2007-02-26 20:29:29 +00:00
Maksim Yevmenkin 992a73d086 MFC:
Check that the length of the received message is at least as big as a PDU
before we use pdu->len.

Submitted by:	Iain Hibbert
2007-02-26 17:48:35 +00:00
Bruce A. Mah 20f6de38f9 Remove extraneous "No advisories" notation that should have gone away
when 6.2 got its first security advisory.

Submitted by:	Johann Tonsing jtonsing at fastmail dot fm
2007-02-26 17:09:29 +00:00
cvs2svn fcaa605b60 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-02-26 02:04:25 +00:00
Olivier Houchard 6a4bcd5efa MFC: Big endian support for arm. 2007-02-26 01:19:06 +00:00
Olivier Houchard afe7ebb4b3 MFC: Big endian support. 2007-02-26 01:05:01 +00:00
Andrew Thompson f7e55f61c5 MFC r1.93
Move the lock init until after if_alloc in case the allocation fails and we                                                                 free the softc and return.
2007-02-26 00:33:06 +00:00
Olivier Houchard 245abf396a MFC (in preparation for IXP425 support):
Use the good prototype for bus_space_unmap().
Add stream operations.
2007-02-25 23:09:51 +00:00
Olivier Houchard cc4967ea17 MFC: remove useless ixp425_icu_init(). 2007-02-25 23:08:22 +00:00
Marius Strobl be1aef4ac6 MFC: 1.48
Fix typo in printf string.
2007-02-25 19:08:54 +00:00
Marius Strobl 013842f4bc MFC: if_pcn.c 1.76, 1.81, 1.82; if_pcnreg.h 1.15
- In detach method, move if_free() after bus_teardown_intr().
- Clear the PCN_MISC_ASEL bit so the media port can be actually set
  via the PCN_CSR_MODE register. Along with sys/dev/mii/nsphy.c 1.23.2.3
  this fixes the case of certain Am79c971-based HP cards and on-board
  ones in IBM machines reporting link but not actually passing any
  traffic. [1]
- Add support for the internal 10baseT PHY, which actually is used on
  at least said HP cards (together with an external DP83840A in a
  multiple PHYs configuration). With cards that don't make use of this
  internal PHY it'll also show up in FreeBSD but not cause any harm.
  This is still missing support for multiple PHYs configuration using
  the internal 100baseTX and/or HomePNA PHYs together with external
  PHYs or multiple external PHYs though.
- Allow multiple (external) PHYs with Am79C97{2,6}, which actually
  only support external PHYs (besides not connectable internal ones
  which respond at the usual addresses, but which don't hurt if we
  let them show up) and don't wedge when isolating PHYs. Actually,
  this change special cases limiting PHYs to Am79C97{3,5,8}, for
  which this driver doesn't implement swiching between the internal
  and external PHYs, yet, and Am79C971, where isolating the external
  PHY (at least in case it's a DP83840A) wedges the chip. Together
  with sys/dev/mii/acphy.c rev. 1.16.2.5 this adds support for the
  100baseFX port of AT-2700 series adaptors, which use two AC101,
  one for the copper and one for the fibre port (there might be
  variants which only use one PHY though).
- In pcn_ifmedia_upd() call pcn_reset() as otherwise the Am79C971 of
  at least said HP cards can wedge when switching from the internal
  10baseT PHY to the external PHY. This means that we need to also
  initialize and possibly start the chip again in pcn_ifmedia_upd(),
  which isn't that bad though as for setting the media port the chip
  has to be powered down or stopped anyway and unlike documented
  doesn't take effect until the next initialization.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.

PR:		27995, 25959, 72966 (likely) [1]
2007-02-25 19:02:01 +00:00
Marius Strobl 6902a90ad6 MFC: 1.6
- Take advantage of mii_phy_dev_probe() and mii_phy_setmedia().
- Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP
  flag currently triggers nothing but hopefully will be respected by
  mii_phy_setmedia() later on.
- Use MII_ANEGTICKS instead of 5.
- Remove an unused macro.
- Fix some whitespace nits.
2007-02-25 18:36:36 +00:00
Marius Strobl cef62b105d MFC: 1.23
- Take advantage of mii_phy_dev_probe().
- In exphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- Remove #if 0'ed unapplicable code.
- Fix some whitespace nits.
2007-02-25 18:34:57 +00:00
Marius Strobl eded50e64b MFC: exphy.c 1.22; inphy.c 1.17
Use mii_phy_add_media()/mii_phy_setmedia()-compatible media table
indices when manually adding media. These were longstanding bugs.
2007-02-25 18:31:48 +00:00
Marius Strobl 1766fc4140 MFC: 1.21, 1.22
- Probe Davicom DM9102 PHYs.
- Don't set MIIF_NOISOLATE so amphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  AM79c873 and workalikes per se nor in combination with the NICs they're
  used with and amphy(4) was already adding IFM_NONE anyway.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix a whitespace nit.

Obtained from:	NetBSD dmphy(4) (except for the last item)
2007-02-25 18:25:14 +00:00
Marius Strobl e292243f96 MFC: 1.21
Set MIIF_HAVE_FIBER and add IFM_100_FX media when the AC_MCTL_FX_SEL
and thus the FX_DIS pin indicates fibre media. This is part 1/2 of
adding support for the 100baseFX interface/port of AT-2700 series
adaptors.

Idea from:	NetBSD
2007-02-25 18:22:30 +00:00
Marius Strobl d883388d17 MFC: 1.20
- In acphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- Fix a whitespace nit.
- Probe another Altima PHY, which is a AC101 workalike and integrated
  in at least ADMtek ADM8511 but apparently is not mentioned in any
  publically available data sheet so the actual identifier is unknown.
- Don't set MIIF_NOISOLATE so acphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  AC101 and workalikes per se nor in combination with the NICs they're
  used with.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().

Obtained from:	NetBSD (except for the first and second item)
2007-02-25 18:20:28 +00:00
Marius Strobl ee1620fb35 MFC: 1.2
- Correct the AC_MCTL_BYP_PCS constant.
- Correct whitespace nits (use #define<tab>, remove trailing whitespace).
2007-02-25 18:18:27 +00:00
Marius Strobl 7ae6def9db MFC: 1.35
- Add another Altima PHY, which is a AC101 workalike and integrated
  in at least ADMtek ADM8511 but apparently is not mentioned in any
  publically available data sheet so the actual identifier is unknown.
- Add Davicom DM9102 PHY.
- Add DM9101 to the description of AMD 79C873 as at least some Davicom
  DM9101F identify identical to AMD 79C873.

Obtained from:	NetBSD
2007-02-25 18:16:31 +00:00
Marius Strobl 2fa6f042e8 MFC: 1.22
- Don't set MIIF_NOISOLATE so tdkphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  78Q2120 per se nor in combination with the NICs they're used with and
  tdkphy(4) was already adding IFM_NONE anyway.
- Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP
  flag currently triggers nothing but hopefully will be respected by
  mii_phy_setmedia() later on.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().

Thanks to Hans-Joerg Sirtl for lending me test hardware.

Obtained from:	NetBSD tqphy(4)
2007-02-25 18:13:14 +00:00
Marius Strobl 6357984345 MFC: 1.9 (partial), 1.14, 1.15
- Remove the first rgephy_reset() invocation in rgephy_attach(). This
  seems to have been missed when merging rev. 1.9, which actually moves
  the rgephy_reset() invocation further down, in rev. 1.6.2.1.
- Don't set MIIF_NOISOLATE so rgephy(4) can be used in configurations
  with multiple PHYs and un-comment case IFM_NONE in case MII_MEDIACHG
  rgephy_service(). There doesn't seem to be a problem with isolating
  RTL8169S and their internal PHY.
- Take advantage of mii_phy_add_media(). [1]

Obtained from:	NetBSD [1]
2007-02-25 18:11:00 +00:00
Marius Strobl 7fbcd7022a MFC: brgphy.c 1.48; ciphy.c 1.6, 1.8; mlphy.c 1.22; rgephy.c 1.13;
tdkphy.c 1.21; tlphy.c 1.22; xmphy.c 1.21

Some style changes to a couple of PHY drivers:
- Fix some whitespace nits.
- Fix some spelling in comments.
- Use MII_ANEGTICKS instead of 5.
- Don't define variables in nested scope.
- Remove superfluous returns at the end of void functions.
- Remove unused static global rgephy_mii_model.
- Remove dupe $FreeBSD$ in ciphy(4) and dupe $Id$ in tdkphy(4).
- Sort brgphys table.
2007-02-25 17:57:12 +00:00
Marius Strobl 33a06bcac9 MFC: acphy.c 1.19; amphy.c 1.20; bmtphy.c 1.12; brgphy.c 1.44, 1.47;
ciphy.c 1.7; inphy.c 1.16; ip1000phy.c 1.2; lxtphy.c 1.18;
     mii_physubr.c 1.28; miivar.h 1.20; nsgphy.c 1.24; nsphy.c 1.27;
     pnaphy.c 1.18; qsphy.c 1.18; rgephy.c 1.12; rlphy.c 1.25, 1.27, 1.28;
     tdkphy.c 1.20; tlphy.c 1.21; xmphy.c 1.20

Add a helper function mii_phy_dev_probe(), which wraps around the
mii_phy_match() API and takes care of the PHY device probe based on
the struct mii_phydesc array and the match return value provided.
Convert PHY drivers to take advantage of mii_phy_dev_probe(),
converting drivers to provide a mii_phydesc table in the first
place where necessary.
2007-02-25 16:57:43 +00:00
Marius Strobl c669c6442f MFC: miivar.h 1.16; nsgphy.c 1.20
Add macros which follow the miidevs design pattern to make it easier
to construct tables for mii_phy_match.
2007-02-25 16:07:23 +00:00
Bruce M Simpson 1e55bda13b MFC rev 1.163:
Clean up after tun(4) properly; remove routes whose ifp is set to
  that of the tun instance even for the !AF_INET case, and properly
  remove configured addresses by calling if_purgeaddrs().

  Maintain the TUN_DSTADDR behaviour for compatibility with the OS/390
  emulator.

PR:		100080
Reviewed by:	bz
2007-02-25 14:48:29 +00:00
Tim Kientzle 5f56a60524 MFC write.c 1.54. This implements -r support for empty or
nonexistent files and corrects the bad handling of files that
change size during archiving.

PR: bin/108607
PR: bin/108990
2007-02-25 07:24:44 +00:00
Bruce Evans 4804e7bab2 MFC (1.118: only bzero() data in rtalloc1() if the data is actually used). 2007-02-25 05:36:25 +00:00
Bruce Evans 120e6f34a6 MFC (1.80: style fixes and 1.81: fix high resolution kernel profiling).
I was reminded of the brokenness when attempting to profile sendto()
to compare RELENG_6 with -current.  Just configuring high res profiling
made sendto() with profiling inactive almost twice as slow in RELENG_6,
and actual profiles were almost unusable due to multiple copies of
non-inlined inline functions like curthread().
2007-02-25 05:01:05 +00:00
Olivier Houchard c6c71db82e MFC rev 1.112:
Use __NO_STRICT_ALIGNMENT, instead of special casing ia64 and sparc64.
2007-02-24 16:08:03 +00:00
Philip Paeps 495fcae3c1 MFC:
Optimize set_origin() use in some screensavers to stop them eating
cpu power when the origin hasn't changed.
2007-02-24 15:10:25 +00:00
Bruce M Simpson bed1f3ff36 MFC rev 1.68:
Drop unicast Ethernet frames not destined for the configured address
  of a tap(4) instance, if IFF_PROMISC is not set.

  In tap(4), we should emulate the effect IFF_PROMISC would have on
  hardware, otherwise we risk introducing layer 2 loops if tap(4) is
  used with bridges. This means not even bpf(4) gets to see them.

  This patch has been tested in a variety of situations. Multicast and
  broadcast frames are correctly allowed through. I have observed this
  behaviour causing problems with multiple QEMU instances hosted on
  the same FreeBSD machine.

  The checks in in ether_demux() [if_ethersubr.c, rev 1.222, line 638]
  are insufficient to prevent this bug from occurring, as ifp->if_vlantrunk
  will always be NULL for the non-vlan case.

PR:             86429
Submitted by:   Pieter de Boer (with changes)
2007-02-24 11:11:36 +00:00
John Baldwin 235bb8efdb Fix mis-merge. 2007-02-23 20:56:27 +00:00
Konstantin Belousov f326f54379 MFC rev. 1.285:
Remove not needed acquision of the mount interlock aroung reading of
mnt_kern_flags in ufs_itimes().
2007-02-23 12:27:23 +00:00
Konstantin Belousov e2267e27c2 MFC rev. 1.98:
Handle the case when both ISDOTDOT and NOCROSSMOUNT are set, inside lookup().

Submitted by:   tegge
2007-02-23 12:23:41 +00:00
Luigi Rizzo 905f273b5b MFC: sync firmware(9) and iwi(4) with the version in HEAD (the changes
are related and this is why the MFC is done together).
In detail:

firmware(9):
  Cleanup and document the implementation of firmware(9) based on
  a version that i posted earlier on the -current mailing list,
  and subsequent feedback received. See the commit log
	luigi       2007-02-15 17:21:31 UTC
  The core of the change is just in sys/firmware.h and kern/subr_firmware.c,
  while other files are just adaptation of the clients to the ABI change
  (const-ification of some parameters and hiding of internal info,
  so this is fully compatible at the binary level).

  Note that in RELENG_6 sys/arm/xscale/ixp425, sys/dev/ipw and
  sys/dev/mxge do not exist or have not been updated to use firmware(9).

iwi(4)
  + add debugging code IWI_LOCK_CHECK() to print (under sysctl debug.iwi)
    missing locks;
  + make sure that iwi_ioctl() wait until the previous iwi_cmd() terminates.
2007-02-22 19:10:48 +00:00
John Baldwin 9e1d6d8dfb MFC: Catch up to nfiles -> openfiles rename. 2007-02-21 16:22:17 +00:00
John Baldwin 5afaf74bb5 MFC: Restore support for kvm_get_swapinfo(3) on crash dumps. 2007-02-21 16:21:32 +00:00
Nick Hibma 3d88e6e823 MFC the following commits:
Align the interfaces for the various watchdogs and make the interface
  behave as expected.

  Also:
  - Return an error if WD_PASSIVE is passed in to the ioctl as only
    WD_ACTIVE is implemented at the moment. See sys/watchdog.h for an
    explanation of the difference between WD_ACTIVE and WD_PASSIVE.
  - Remove the I_HAVE_TOTALLY_LOST_MY_SENSE_OF_HUMOR define. If you've
    lost your sense of humor, than don't add a define.

  Specific changes:

  i80321_wdog.c
    Don't roll your own passive watchdog tickle as this would defeat the
    purpose of an active (userland) watchdog tickle.

  ichwd.c / ipmi.c:
    WD_ACTIVE means active patting of the watchdog by a userland process,
    not whether the watchdog is active. See sys/watchdog.h.

  kern_clock.c:
    (software watchdog) Remove a check for WD_ACTIVE as this does not make
    sense here. This reverts r1.181.

  Revision  Changes    Path
  1.371     +1 -0      src/share/man/man4/Makefile
  1.8       +69 -25    src/share/man/man4/watchdog.4
  1.4       +7 -1      src/share/man/man9/watchdog.9
  1.3       +15 -11    src/sys/arm/xscale/i80321/i80321_wdog.c
  1.7       +12 -30    src/sys/dev/ichwd/ichwd.c
  1.8       +8 -17     src/sys/dev/ipmi/ipmi.c
  1.8       +3 -1      src/sys/dev/mk48txx/mk48txx.c
  1.4       +4 -1      src/sys/dev/watchdog/watchdog.c
  1.33      +9 -9      src/sys/i386/i386/elan-mmcr.c
  1.193     +3 -3      src/sys/kern/kern_clock.c
  1.4       +0 -4      src/sys/sys/watchdog.h

and

  Don't exit from watchdogd on receiving a signal if we cannot stop the watchdog.
  That'll require -KILL. This avoids resetting your system on one of the
  watchdogs that you cannot disable.

  Revision  Changes    Path
  1.15      +18 -11    src/usr.sbin/watchdogd/watchdogd.c

Reviewed by:	phk
2007-02-20 22:56:28 +00:00
Olivier Houchard 2aa6ffe863 MFC rev 1.2 and 1.5:
revision 1.2
date: 2005/10/03 14:18:21;  author: cognet;  state: Exp;  lines: +12 -2
Make mem.c know about the pages allocated with ARM_USE_SMALL_ALLOC.
revision 1.5
date: 2007/02/13 15:35:57;  author: cognet;  state: Exp;  lines: +13 -0
Make sure the address is valid before mapping it.
2007-02-20 18:03:28 +00:00
Xin LI a965bc1e6d MFC: Replace gzip(1) with the BSD licensed version found in -HEAD.
Discussed with:	re, so, portmgr (kris)

All bugs are mine.
2007-02-20 08:33:32 +00:00
Bruce Evans 55497114d0 MFC (1.23: fix -mprofiler-epilogue by working around a garbage-collection
problem).
2007-02-19 02:47:30 +00:00
Christian S.J. Peron 5bd673fe05 MFC the AUDIT_SYSCALL_ENTER/EXIT entry points in syscall handling. This
will unbreak auditing for the ARM architecture in RELENG_6
2007-02-19 00:34:28 +00:00
Olivier Houchard 1999479db4 Oops, we have no sc here, so use the global sa11x0_softc.
Spotted out by:	csjp
2007-02-19 00:23:40 +00:00
Christian S.J. Peron 08b646f16c MFC revision 1.168
ANSI cleanup, no functional change. This should make merging a bit easier.
2007-02-17 20:52:55 +00:00
Christian Brueffer b9db9f860f MFC:
Xref altq(4) for drivers that support it according to altq(4).
2007-02-16 13:55:25 +00:00
Mohan Srinivasan f1aeb07f64 MFC:
Backing out an earlier change. It seems harmless for NFS to miss the "force
unmount" flag, making the acquisition of the MNT_ILOCK in nfs_request() and
nfs_sigintr() unnecessary. Pointed out by tegge@.
2007-02-16 03:53:33 +00:00
cvs2svn 8b7fd7bd2a This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-02-15 22:22:58 +00:00
Bruce A. Mah 77e68c16e3 Update state of IPv6-over-gif(4) item. 2007-02-15 22:16:05 +00:00
Luigi Rizzo 4b4d942b7e MFC kern_linker.c 1.133 and related changes:
- push Giant into linker_reference_module();
- introduce linker_release_module(), which also takes care of
  proper locking.

The latter also fixes a missing mtx_loc/unlock in subr_firmware.c .

Apparently, digi.c is the only external client of linker_reference_module()
which is a bit suspicious - perhaps dev/digi/ could make with a bit
of review from someone knowledgeable to check how the function is used,
and whether it could be replaced by something else.
2007-02-15 19:49:27 +00:00
Bruce A. Mah b49328ffcd New errata: SA-07:02.bind. 2007-02-15 17:52:29 +00:00
Christian Brueffer 1cb3c1389f MFC:
The KAME project has been dissolved and kame.4 isn't terribly useful.
=> Sayonara
2007-02-15 17:35:16 +00:00
Christian Brueffer c24a3ac082 MFC: rev. 1.316
Nuke pcnfsd(8) reference.
2007-02-15 17:31:14 +00:00
Christian Brueffer 23dd4a1190 MFC: rev. 1.4
There is no isa(4) manpage, convert to normal text an join lines.
2007-02-15 17:29:55 +00:00
Christian Brueffer 57b6a827e2 MFC: rev. 1.3
Remove Xref to non-existant uhub(4).
2007-02-15 17:27:19 +00:00
Christian Brueffer 70d5f82a4c MFC: rev. 1.4
Correct references to tcpdump(1).
2007-02-15 17:24:31 +00:00
Christian Brueffer 348850ba19 MFC: rev. 1.21 + 1.22
Don't reference the non-existant lkm(4), use .Nm instead
since lkm is the name of an api.
2007-02-15 17:19:38 +00:00
Lukas Ertl a0378c6be3 MFC:
Add support for Huawei Technologies Mobile card (3G).

  Submitted by:  Thorsten Schroeder <ths_AT_dev.io>
2007-02-14 19:57:15 +00:00
John Baldwin e049be9318 Add a couple of missing breaks that are harmless, though the first one
missing meant that a PCI-PCI bridge that supported MSI but didn't support
PCIY_SUBVENDOR (or the MSI capability came after the subvendor cap) would
have garbage in its subvendor ID.
2007-02-14 17:04:05 +00:00
Bruce M Simpson e8e2751474 MFC rev 1.98:
Import macros IN_LINKLOCAL(), IN_PRIVATE(), IN_LOCAL_GROUP(), IN_ANY_LOCAL().
  This is not a functional change.

  IN_LINKLOCAL() tests if an address falls within the IPv4 link-local prefix.
  IN_PRIVATE() tests if an address falls within an RFC 1918 private prefix.
  IN_LOCAL_GROUP() tests if an address falls within the statically assigned
  link-local multicast scope specified in RFC 2365.
  IN_ANY_LOCAL() tests for either of IN_LINKLOCAL() or IN_LOCAL_GROUP().

  As with the existing macros in the FreeBSD netinet stack, comparisons
  are performed in host-byte order.

See also:	RFC 1918, RFC 2365, RFC 3927
Obtained from:	NetBSD (dyoung@)
2007-02-14 13:39:01 +00:00
Bruce M Simpson 91ef554ca0 MFC rev 1.75:
In the ICMP6 path to handle FQDN 'who-are-you' queries, check that the
  packet header mbuf is non-NULL before trying to create a duplicate of it.

PR:		95957
Reviewed by:	ume
2007-02-14 13:35:11 +00:00
Konstantin Belousov 10f87a7719 MFC rev. 1.15: fix race with execve(). 2007-02-14 10:24:50 +00:00
Pav Lucistnik c543695e86 MFC 1.41:
Fix a bug in 1.40 - it missed three occurences in pkg_info which leads to
  (null)/file output.
2007-02-14 09:37:15 +00:00
Pav Lucistnik d84b832f7b MFC 1.63:
Rewrite the udf_read() routine to use a file vnode instead of the devvp vnode.
  The code is modelled after cd9660, including support for simple read-ahead
  courtesy of clustered read.

  Fix udf_strategy to DTRT.

  This change fixes sendfile(2) not to send out garbage.
2007-02-14 09:29:33 +00:00
Tim Kientzle 86aed5e676 MFC: "empty" format support
PR: bin/108607
2007-02-14 08:29:35 +00:00
Maxim Konovalov 1c940056ae MFC rev. 1.158: increment requests counter right before send out
an ARP query actually.  Otherwise the code could lead to the
spurious EHOSTDOWN errors.
2007-02-13 15:38:17 +00:00
Colin Percival d1c67c275b MFC archive_read.c rev. 1.29:
Don't reference a NULL pointer.

MFC archive_read_support_compression_none.c rev. 1.14:
  Print off_t by casting to intmax_t and using %jd.
  Ask the client skipper to handle requests > SSIZE_MAX if the API works.
2007-02-13 07:31:22 +00:00
Craig Rodrigues 3f114d933b MFC: New unionfs implementation from Daichi GOTO and Masanori OZAWA,
which fixes many locking and crashing problems in the previous
     implementation.  kib@ helped a lot by eliminating a source
     of deadlocks encountered with unionfs with these commits:
       rev. 1.50 of src/sys/fs/deadfs/dead_vnops.c
       rev. 1.97 of src/sys/kern/vfs_lookup.c
Submitted by:	daichi, Masanori OZAWA <ozawa ongs co jp>
2007-02-13 05:56:43 +00:00
Christian Brueffer f0402b55f0 MFC: rev. 1.29 + 1.30
- Use the standard section 4 SYNOPSIS
- Utilize .Nm
2007-02-12 21:24:56 +00:00
John Baldwin 380688aa91 MFC: Don't send interrupts to CPUs disabled via lapic hints. 2007-02-12 21:20:43 +00:00
John Baldwin 82d804947b MFC: Do not set B_NOCACHE on buffers when releasing them in flushbuflist().
If B_NOCACHE is set the pages of vm backed buffers will be invalidated.
However clean buffers can be backed by dirty VM pages so invalidating them
can lead to data loss.
Add support for flush dirty page in the data invalidation function
of some network file systems.

This fixes data losses during vnode recycling (and other code paths
using invalbuf(*,V_SAVE,*,*)) for data written using an mmaped file.
2007-02-12 19:08:29 +00:00
John Baldwin 430f0777a4 MFC: Sync up bus_dma(9) to rev 1.39 (except for rev 1.37 since 6.x doesn't
have a real bus_get_dma_tag()) and add MLINK for bus_dmamap_load_mbuf_sg().
Prompted by a user who noticed the bus_dmamap_sync ops stuff was still
wrong in 6.x.

Reported by:	Jason Harmening <jason.harmening at gmail>
2007-02-12 17:57:14 +00:00
Bruce M Simpson 579444380d MFC rev 1.39:
When fast-forwarding is enabled, do not forward directed IPv4 broadcasts
  to locally attached broadcast networks.

  Note well: This relies on the layer 2 route cloning behaviour in BSD.

PR:		98799
Tested by:	Dmitry Sergienko
2007-02-12 12:52:54 +00:00
Christian Brueffer 7c586d4dcf MFC: rev. 1.71 + part of 1.69
- Document NetCell NC3000 and NC5000 support.
- New supported ALI and ServerWorks chipsets.
2007-02-12 05:37:55 +00:00
Rink Springer 164f494cfa MFC: Add support for the NetCell NC3000/5000 series SATA RAID cards.
Reviewed by:	sos
Approved by:	imp (mentor)
2007-02-11 23:46:45 +00:00
Xin LI 1bf5e4701d Mention that the 'zonelimit' issue has been fixed on -HEAD and RELENG_6.
Confirmed by:	mohans
2007-02-11 19:04:57 +00:00
Marius Strobl f7bf472d3b MFC: 1.24, 1.26
- In rlphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- In rlphy_status() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix some whitespace nits and remove commented out code that just can't
  be used with RealTek PHYs.
2007-02-11 18:10:58 +00:00
Marius Strobl a714ff8d70 MFC: 1.17
- In qsphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- Don't set MIIF_NOISOLATE so qsphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  QS6612 per se nor in combination with the NICs they're used with.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().

Obtained from:	NetBSD (except for the first item)
2007-02-11 18:05:42 +00:00
Marius Strobl 7f4362f4f6 MFC: 1.26, 1.28
- Don't add IFM_NONE when used in combination with pcn(4) as for MII
  loopback to work PCnet chips additionally need to be placed into
  external loopback mode which pcn(4) doesn't do so far.
- In nsphy_service() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Don't set MIIF_NOISOLATE, except for when used in combination with a
  NIC that wedges when isolating the PHYs, so nsphy(4) can be used in
  configurations with multiple PHYs.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia() (requires the MIIF_FORCEANEG
  added in sys/dev/mii/mii_physubr.c 1.22.2.3, sys/dev/mii/miivar.h
  1.15.14.2).
- Implement a separate nsphy_reset(). There are two reasons for this:
  1) This PHY can take an inordinate amount of time to reset if media
     is attached; under fairly normal circumstances up to nearly one
     second. This is because it appears to go through an implicit auto-
     negotiation cycle as part of the reset.
  2) During reset and auto-negotiation, the BMCR will clear the reset
     bit before the process is complete. It will return 0 until the
     process is complete and it's safe to access the PHY again.

  This is the first of two changes required to make the combination of
  Am79c971 and DP83840A found on certain HP cards and on-board in IBM
  machines work.
- Fix some whitespace nits.

Based on:	NetBSD (except for the first and second item)
2007-02-11 18:03:22 +00:00
Marius Strobl cd9f531556 MFC: if_pcn.c 1.74, 1.79 (sort of), 1.80; if_pcnreg.h 1.14
- Fix obsolete comment.
- Extend references to lnc(4) by references to le(4) as the constraint
  described in the comment applies to the latter as well.
- Don't bother to include IDs of PCnet chips which are not supported
  by this driver and largely are not even PCI devices in pcn_chipid.
- Use device_printf(9)/if_printf(9) rather than implementing their
  functionality with printf(9).
- Sprinkle some const.
2007-02-11 17:21:59 +00:00
Marius Strobl c6be0aafec MFC: 1.23
- Rely on mii_phy_add_media() setting mii_anegticks as appropriate.
- Fix some whitespace nits.
2007-02-11 16:21:04 +00:00
Marius Strobl 8c8bba3425 MFC: 1.17, 1.19
- Don't set MIIF_NOISOLATE so lxtphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  LXT970 per se nor in combination with the NICs they're used with and
  lxtphy(4) was already adding IFM_NONE anyway.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix some whitespace nits.

Obtained from:	NetBSD
2007-02-11 16:09:11 +00:00
Marius Strobl 3c45f98b38 MFC: acphy.c 1.17, amphy.c 1.18, brgphy.c 1.35, ciphy.c 1.3, dcphy.c 1.29,
exphy.c 1.20, lxtphy.c 1.15, nsphy.c 1.24, pnaphy.c 1.16, pnphy.c 1.19,
     qsphy.c 1.15, rgephy.c 1.7, rlphy.c 1.22, tlphy.c 1.19, ukphy.c 1.18,
     xmphy.c 1.18

Use ansi function definitions in preference to K&R to reduce diffs
with NetBSD (and cause it looks cooler).
2007-02-11 16:01:37 +00:00
Marius Strobl aea7f62420 MFC: bmtphy.c 1.11, gentbi.c 1.2, mii_physubr.c 1.27
Analogous to mii_add_media(), factor out the code for checking whether
the BMSR contains any media at all to mii_phy_add_media(). The majority
of the drivers currently using mii_phy_add_media() were missing such a
check anyway though.
2007-02-11 15:29:35 +00:00
Marius Strobl ecca7661c2 MFC: mii_physubr.c 1.26, miivar.h 1.19
- Add a MIIF_FORCEANEG flag which forces an auto-negotiation to always
  take place if IFM_AUTO is selected. This allows drivers like nsphy(4),
  which need to force writing the ANAR according to the BMSR, to take
  advantage of mii_phy_setmedia(). [1]
- In mii_phy_reset() once the current media is set don't isolate the PHY
  corresponding to the instance of the currently selected media rather
  than unconditionally not isolating the PHY corresponding to instance 0.
  This saves a isolation-unisolation-cycle of the PHY corresponding to
  the currently selected media for the case were it isn't instance 0.
- Fix some whitespace nits. [1]

Obtained from:	NetBSD [1]
2007-02-11 15:09:50 +00:00
Mohan Srinivasan 7ef9f3486b Add missing MNT_ILOCK around some mnt_kern_flag accesses. 2007-02-11 03:43:34 +00:00
Mohan Srinivasan f2c6a75fb4 MFC:
Fix for problems that occur when all mbuf clusters migrate to the mbuf packet
zone. Cluster allocations fail when this happens. Also processes that may have
blocked on cluster allocations will never be woken up. Thanks to rwatson for
an overview of the issue and pointers to the mbuma paper and his tool to dump
out UMA zones.

Reviewed by: andre@
2007-02-11 03:31:19 +00:00
Mohan Srinivasan a66f502e2c MFC :
Fix for a bug where only one process (of multiple) blocked on
maxpages on a zone is woken up, with the rest never being woken up as
a result of the ZFLAG_FULL flag being cleared. Wakeup all such blocked
procsses instead. This change introduces a thundering herd, but since
this should be relatively infrequent, optimizing this (by introducing
a count of blocked processes, for example) may be premature.

Reviewd by: ups@
2007-02-11 03:13:54 +00:00
Mohan Srinivasan d252a8297c MFC:
Fixes up the handling of shared vnode lock lookups in the NFS client,
adds a FS type specific flag indicating that the FS supports shared
vnode lock lookups, adds some logic in vfs_lookup.c to test this flag
and set lock flags appropriately.

This change fixes the general problem of cascading vnode locks when an
NFS server goes down.

Ideally, we wouldn't need these changes, as enabling shared vnode lock
lookups globally would work. Unfortunately, UFS, for example isn't
ready for shared vnode lock lookups, crashing pretty quickly.

This change is the result of discussions with Stephan Uphoff (ups@).
Thanks to Kris for shaking out several bugs in NFS with shared vnode
lock lookups in current. MFC'ed per Kris' request.

Reviewed by:	ups@
2007-02-11 03:07:46 +00:00
Bruce A. Mah e79968d81d MFC: SA-07:02.bind, BIND 9.3.4. 2007-02-10 20:05:45 +00:00
Max Laier 6fcb4039b8 MFC:
Add ALTQ support for aue(4).

  Tested by:	Greg Hennessy, Volker
2007-02-10 15:17:34 +00:00
Bruce M Simpson e9ca0f2f3a MFC rev 1.20:
Add lists of ICMP types and codes for user and developer reference.
  Cross-reference pf.conf(5) which is able to use these definitions.

PR:		85243
Submitted by:	Daniel Gerzo
Obtained from:	OpenBSD
2007-02-10 12:01:39 +00:00
Christian Brueffer 408efc10a6 MFC: rev. 1.33 by joel
Remove reference to T/TCP.
2007-02-09 21:22:32 +00:00
John Baldwin e4c63ebdf3 MFC: Fix iostat(8) to fully work on crash dumps. 2007-02-09 14:48:55 +00:00
cvs2svn 83d8069140 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-02-09 14:47:54 +00:00
John Baldwin 03975c1f2b MFC: Teach pciconf(8) to list PCI capabilities via the new -c flag and
update some cruft in the manpage.
2007-02-09 14:47:53 +00:00
John Baldwin 4bd34c3a3a MFC: Add constants for PCIY_VENDOR, PCIY_DEBUG, and PCIY_EXPRESS. 2007-02-09 14:43:45 +00:00
John Baldwin 163453b904 MFC: Change the PCI-X register constants to be relative to the PCI-X PCI
capability and expand the constants some.  Update ahc(4) to track the
changes.
2007-02-09 14:42:58 +00:00
Jens Schweikhardt 063d8dd354 MFC rev. 1.3 from HEAD,
Comment the token after #endif, like we do everywhere else.
  Static analyzers like FlexeLint complain about it.
2007-02-09 14:24:48 +00:00
John Baldwin c9cfdcfc88 MFC: Fix the subvendor ID for PCI-PCI bridges. 2007-02-09 14:23:01 +00:00
Jens Schweikhardt 1ada27c3b0 MFC rev. 1.5. from HEAD,
Properly parenthesize the __tg_is_complex() macro by moving a closing
  paren to where it belongs.
2007-02-09 14:21:54 +00:00
John Baldwin 8efd9e60ff MFC: Style fix: s/#define<space>/#define<tab>/. 2007-02-09 14:16:30 +00:00
John Baldwin bdb9747aac MFC 1.52 - 1.54: Add SDHC subclass, MSI-X and HT register constants. 2007-02-09 14:11:54 +00:00
Brooks Davis 011f692980 Sync dhclient and supporting code with CURRENT. In particular:
- Introduce per-interface dhclient_flags_<ifn> and
   background_dhclient_<ifn> rc.conf variables.
 - Default to sending a client identifer.
 - When an invalid host name option is sent, delete it and accept the
   lease.
 - Fix usage, the call to getopt, and a typo in rc.d/dhclient.
2007-02-09 03:11:32 +00:00
Olivier Houchard eac2d03d4a MFC rev 1.77:
Do not forget to call pmap_free_l2_bucket() in pmap_remove_pages().
This can fix the pmap-related panics reported on arm.
2007-02-09 00:19:58 +00:00
Bruce A. Mah f3894098da MFC: Revert nd6.c revs. 1.67, 1.68, 1.69, 1.70 in an attempt to unbreak
IPv6 over point-to-point gif(4) tunnels.

(On this branch, the affected revisions are 1.48.2.14 and 1.48.2.15.)

	nd6.c	1.73 -> 1.74
2007-02-08 22:52:56 +00:00
John Baldwin 2309af6821 MFC: Fix GDB_BUFSZ. 2007-02-08 17:45:50 +00:00
John Baldwin e2391ac39d MFC 1.18: Fix a typo in the device table that prevented 5708S adapters
from being probed.
2007-02-08 16:18:02 +00:00
Bruce M Simpson 7cb8fe0103 MFC rev 1.29:
Fix an incorrect TCP-MD5 key length check for the !FAST_IPSEC case.

PR:		104422, 107520
MFC after:	3 days
2007-02-08 12:46:14 +00:00
Craig Rodrigues 9843f75f0b MFC 1.61:
Add noatime to the list of mount options that msdosfs accepts.

  PR:             108896
  Submitted by:   Eugene Grosbein <eugen grosbein pp ru>
2007-02-08 02:44:19 +00:00
Lukas Ertl ca9a8cdbbc Grrr, missed a revision in the last MFC. 2007-02-07 20:03:17 +00:00
Lukas Ertl 4e48ccfd17 MFC:
Add support for various 3G datacards.
2007-02-07 19:52:33 +00:00
Philip Paeps abf7571699 MFC r1.3:
Fix hr.iso syscons keymap, making it possible to type < and >.
2007-02-07 09:27:42 +00:00
cvs2svn 2cc73f8b75 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-02-07 09:15:05 +00:00
Ade Lovett 1cab050982 MFC: rev 1.71/1.72
Remove hard-coded limit (200) on maximum number of packages that can be
added with a single invocation of pkg_add, replacing it with something
rather more dynamic.
2007-02-07 09:15:04 +00:00
Doug Barton b5ffb43644 MFC the upgrade to BIND 9.3.4 2007-02-07 00:46:35 +00:00
Hajimu UMEMOTO 24c88dfcfd MFC 1.75: ng_iface requiers neighbor cache as well. 2007-02-06 14:45:51 +00:00
Craig Rodrigues 176b638e65 MFC 1.94
Warn that "-t msdos" will be converted to "-t msdosfs".

PR:		79296
Submitted by:	Nobuhiro Yasutomi <nobuhiro yasutomi nifty ne jp>
2007-02-06 06:06:28 +00:00
Craig Rodrigues c7d3a8046d MFC: 1.142
Check the actual sector size of the underlying media before mounting.
Prevents a kernel panic if you try to "mount_cd9660 /dev/acd0 /mnt" while
an audio CD is in the CD-ROM drive.

PR:	92269
2007-02-06 02:37:42 +00:00
Craig Rodrigues d699406bb8 MFC: 1.73, 1.74, 1.84
Do not pass "noauto", "userquota", or "groupquota" mount options
down to nmount() or external mount programs.

PR:			108751
Reported and tested by:	Neil Hoggarth <neil hoggarth me uk>
2007-02-06 01:16:09 +00:00
Bruce M Simpson 149d17ed1c MFC rev 1.133:
Be explicit in examples about the correct grammar for 'alias' and
  '-alias', and that 'add' and 'delete are in fact synonyms for these
  in the ifconfig(8) grammar.

  Use network prefixes explicitly specified in IETF RFCs for
  documentation purposes. (bz)

PR		102701
See also:	RFC 3330, RFC 3849
Submitted by:	bz
2007-02-05 12:39:53 +00:00
Florent Thoumie 0460d43936 MFC: Add support for another ATI IGP 340M (RS200M) AGP bridge.
src/sys/pci/agp_ati.c: rev 1.2 -> 1.3

PR:		kern/100958
Submitted by:	Kazuo Dohzono <[email protected]>
2007-02-05 12:29:46 +00:00
Konstantin Belousov b41165758b MFC
rev. 1.50 of src/sys/fs/deadfs/dead_vnops.c
rev. 1.97 of src/sys/kern/vfs_lookup.c

Introduce mp_crossmp placeholder vnode to fix LOR in vfs_lookup().
2007-02-05 11:38:26 +00:00
cvs2svn 6bb7479503 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-02-04 13:31:06 +00:00
Stefan Farfeleder 404db8a584 MFC:
1.30: Correct exit status for type/command builtin.
1.31: Use eaccess instead of access.
2007-02-04 10:42:30 +00:00
Erwin Lansing cf27a4d1b1 MFC rev. 1.112
Add gnustep and ports-mgmt ports categories.
2007-02-04 10:41:20 +00:00
Ariff Abdullah 7040bb9cb7 Partial MFC (buffer.h 1.14, buffer.c 1.30)
Fix huge memory leak within sound buffer (during channel destruction,
buffer resizing, etc.) that was here since eon. Free all (unmanaged)
allocated buffer through sndbuf_destroy() in case we forgot to call
sndbuf_free(). For a managed buffer (mostly hw specific managed buffer),
either provide CHANNEL_FREE() method with appropriate return value to
invoke semi-automatic sndbuf_free() or simply do it on their own. If
everything is failed, sndbuf_destroy() will come to the rescue as a
final measure.
2007-02-04 06:17:48 +00:00
Ariff Abdullah 186c581326 Partial MFC (revision 1.27)
Fix apparent memory leak (during vchan destruction) that was here
since eon.
2007-02-04 06:17:14 +00:00
Florent Thoumie b347d27a21 MFC: Merge from DRM upstream:
- Add support for Intel 965 Express chipsets.
  - Add support for R200 vertex programs, along with minor bugfixes.
  - Add support for vblank synchronization to pipe B of Intel hardware
    (laptop screens).

      src/sys/dev/drm/i915_drm.h: rev 1.3 -> 1.4
      src/sys/dev/drm/radeon_drm.h: rev 1.13 -> 1.14
      src/sys/dev/drm/i915_irq.c: rev 1.3 -> 1.4
      src/sys/dev/drm/radeon_state.c: rev 1.21 -> 1.22
      src/sys/dev/drm/i915_dma.c: rev 1.3 -> 1.4
      src/sys/dev/drm/radeon_cp.c: rev 1.18 -> 1.19
      src/sys/dev/drm/drmP.h: rev 1.16 -> 1.17
      src/sys/dev/drm/drm_drv.c: rev 1.5 -> 1.6
      src/sys/dev/drm/mach64_drm.h: rev 1.2 -> 1.3
      src/sys/dev/drm/drm_pciids.h: rev 1.6 -> 1.7
      src/sys/dev/drm/i915_drv.h: rev 1.3 -> 1.4
      src/sys/dev/drm/radeon_drv.h: rev 1.15 -> 1.16
2007-02-03 20:01:54 +00:00
Wilko Bulte c3b38e28af MFC: %s/tranport/transport/ 2007-02-03 16:40:19 +00:00
Pawel Jakub Dawidek aafbf5f0aa MFC: sbin/geom/class/eli/geom_eli.c 1.19
When the following conditions are meet:
- First configured key is based only on keyfile (no passphrase).
- Device is attached.
- User changes first key (setkey) from keyfile to passphrase and doesn't
  specify number of iterations (with -i option).
...geli(8) won't store calculated number of iterations in metadata.
This result in device beeing unaccesable after detach.

One can recover from this situation by guessing number of iterations
generated, storing it in metadata and trying to attach device.
Recovery procedure isn't nice, but one's data is not lost.

Reported by:	Thomas Nickl <[email protected]>
2007-02-03 16:09:10 +00:00
Pawel Jakub Dawidek 7615a8dd58 MFC: sbin/geom/misc/subr.c 1.7
sbin/geom/misc/subr.h	1.8

Implement gctl_change_param() function, which changes value of existing
parameter.
2007-02-03 16:08:11 +00:00
Max Laier 1a0c49a3a6 MFC:
bce(4), ipw(4), iwi(4), ral(4), udav(4), ural(4) support ALTQ in RELENG_6
  as well.
2007-02-03 13:46:18 +00:00
Bruce M Simpson 51999163db Bump .Dd. 2007-02-03 11:57:44 +00:00
Bruce M Simpson a3c3b2e145 MFC rev 1.132:
Add an EXAMPLES section for ifconfig(8).

PR:		bin/102701
Obtained from:	OpenBSD
2007-02-03 11:57:09 +00:00
Bruce M Simpson 5655ad16d1 MFC:
Drop all received data mbufs from a socket's queue if the MT_SONAME
 mbuf is dropped, to preserve the invariant in the PR_ADDR case.

PR:		kern/38495
Submitted by:	James Juran
Reviewed by:	sam, rwatson
Obtained from:	NetBSD
2007-02-03 04:01:22 +00:00
Alan Cox 23fb2509d0 MFC revisions 1.308, 1.309, and 1.312
Pass VM_PROT_EXECUTE to vm_fault() instead of VM_PROT_READ if the page
  fault was caused by an instruction fetch.

  Differentiate between data and instruction fetch in the fatal
  page fault trap handler.
2007-02-03 03:14:21 +00:00
Alan Cox 519b984836 MFC revision 1.133
Define the additional page fault error codes that are implemented
  by amd64.
2007-02-03 02:57:02 +00:00
Craig Rodrigues ee952a8e0e MFC 1.6:
Try to avoid a possible infinite loop when parsing an invalid
  kernel dump file.

  PR:             108229
  Submitted by:   Jessica Han <jessicah juniper net>
2007-02-02 13:48:19 +00:00
Remko Lodder 198178f16e MFC:
Fix a typo in ata-queue.c

  PR:             kern/107100
  Submitted by:   Stephen J. Roznowski <sjr at comcast dot net>
  Approved by:    sos

and

  Add the SMART command to the ATA instruction set.
  When the disk has an error, it will now print SMART
  instead of 'Unknown CMD'.

  PR:             kern/93368
  Submitted by:   Garry Belka <garry at NetworkPhysics dot COM>
  Approved by:    sos

Approved by:	sos (implicitly with the previous two commits)
2007-02-02 07:42:44 +00:00
Christian Brueffer dd4ec8bfcf MFC: rev. 1.31
Add the 3Com 3c996-SX.
2007-02-02 07:29:51 +00:00
Marcel Moolenaar 9545cc4b3c MFC rev 1.4: remove screen and ttyy#; replace ttyd# with ttyu#. 2007-02-02 04:28:24 +00:00
Marcel Moolenaar 46e2bf7044 MFC rev 1.2: remove stale header. 2007-02-02 04:25:01 +00:00
Pyun YongHyeon a4c3531ebc MFC if_re.c rev 1.76 to RELENG_6.
Don't set RL_CFG1_FULLDUPLEX bit. The RL_CFG1_FULLDUPLEX bit in
  config register 1 is only valid on 8129.
2007-02-02 00:48:55 +00:00
Ruslan Ermilov c1dab334ea - Don't forget to reset the M_VLANTAG when removing a tag,
otherwise bad things may happen.  [1]

- More diff redux to HEAD.

Submitted by:	Vsevolod Lobko [1]
2007-02-01 14:32:37 +00:00
Mike Pritchard a8084f68e4 MFC: Document the acceptable values for the id parameter. 2007-02-01 09:02:28 +00:00
Mike Pritchard 0b05527631 MFC: Make quota exit with a non-zero status when the user
is over quota.
2007-02-01 08:46:42 +00:00
Mike Pritchard df9352c248 MFC: Quota system cleanup & disallow negative ids when accouting for
quota usage.

ffs/ffs_alloc.c rev 1.143
ffs/ffs_snapshot.c rev 1.132
ufs/quota.h rev 1.29
ufs/ufs_quota.c rev 1.86 - 1.88
ufs/ufs_vfsops.c rev 1.48
2007-02-01 04:45:43 +00:00
Mike Pritchard 312079ff04 MFC: quotacheck.c 1.27 - 1.29
Quota system cleanup.
2007-02-01 04:36:40 +00:00
Mike Pritchard cb5a99bbad MFC: Sync up with HEAD. Revs 1.18 1.19. 2007-02-01 04:31:57 +00:00
Mohan Srinivasan 55909d8298 MFC: Fix for a vnode lock leak in nfs_create() in the event of an error.
Spotted by ups@.
2007-01-31 23:11:15 +00:00
John Baldwin 6cb320740c MFC: Fix compile with BCE_DEBUG. 2007-01-31 22:57:10 +00:00
John Baldwin eb01e731ba MFC: Add a locked variant of bce_ifmedia_upd() and add missing locking
to bce_ifmedia_upd().
2007-01-31 22:55:08 +00:00
Luigi Rizzo 6e6f72500c MFC: protect against multiple inclusions 2007-01-31 10:44:04 +00:00
Craig Rodrigues d126f25b06 MFC: 1.148, 1.149:
Properly parse "longname", "longnames", "shortname", "shortnames",
"nowin95", "win95" mount options.

Requested by:	Tomas Doskocil <dosky gravastar cz>
2007-01-31 02:49:44 +00:00
Pyun YongHyeon 98be20a675 MFC if_re.c rev 1.83 to RELENG_6.
It seems that enabling Tx and Rx before setting descriptor DMA
  addresses shall access invalid descriptor DMA addresses on PCIe
  hardwares and then panicked the system.
  To fix it set descriptor DMA addresses before enabling Tx and Rx
  such that hardware can see valid descriptor DMA addresses. Also
  set RL_EARLY_TX_THRESH before starting Tx and Rx.
2007-01-31 00:24:11 +00:00
Max Laier 0f6c70018e Revert 1.1.2.2 as linker_release_module is not in RELENG_6. Will have to
look for a better way and will compile test "trivial changes" in the future.

Noticed by:	marcel, tinderbox
Pointy hat to:	mlaier
2007-01-30 23:54:49 +00:00
Marius Strobl b553747f92 Check the return value of bus_setup_intr() when setting up the
over-temperature and power-fail interrupts.
2007-01-30 15:44:16 +00:00
Marius Strobl 417e2be883 MFC: if_re.c 1.82, if_rlreg.h 1.64
o In re_newbuf() and re_encap() if re_dma_map_desc() aborts the mapping
  operation as it ran out of free descriptors or if there are too many
  segments in the first place, call bus_dmamap_unload() in order to
  unload the already loaded segments.
  For trying to map the defragmented mbuf (chain) in re_encap() this
  introduces re_dma_map_desc() setting arg.rl_maxsegs to 0 as a new
  failure mode. Previously we just ignored this case, corrupting our
  view of the TX ring.
o In re_txeof():
  - Don't clear IFF_DRV_OACTIVE unless there are at least 4 free TX
    descriptors. Further down the road re_encap() will bail if there
    aren't at least 4 free TX descriptors, causing re_start() to
    abort and prepend the dequeued mbuf again so it makes no sense
    to pretend we could process mbufs again when in fact we won't.
    While at it replace this magic 4 with a macro RL_TX_DESC_THLD
    throughout this driver.
  - Don't cancel the watchdog timeout as soon as there's at least one
    free TX descriptor but instead only if all descriptors have been
    handled. It's perfectly normal, especially in the DEVICE_POLLING
    case, that re_txeof() is called when only a part of the enqueued
    TX descriptors have been handled, causing the watchdog to be
    disarmed prematurely.
o In re_encap():
  - If m_defrag() fails just drop the packet like other NIC drivers
    do. This should only happen when there's a mbuf shortage, in which
    case it was possible to end up with an IFQ full of packets which
    couldn't be processed as they couldn't be defragmented as they
    were taking up all the mbufs themselves. This includes adjusting
    re_start() to not trying to prepend the mbuf (chain) if re_encap()
    has freed it.
  - Remove dupe initialization of members of struct rl_dmaload_arg to
    values that didn't change since trying to process the fragmented
    mbuf chain.
    While at it remove an unused member from struct rl_dmaload_arg.
o In re_start() remove a abandoned, banal comment. The corresponding
  code was moved to re_attach() some time ago.
2007-01-30 14:16:24 +00:00
Marius Strobl 5913c1e3c3 MFC: if_re.c 1.80, if_rlreg.h 1.63
- Use the re_tick() callout instead of if_slowtimo() for driving
  re_watchdog() in order to avoid races accessing if_timer.
- Use bus_get_dma_tag() so re(4) works on platforms requiring it;
  though for RELENG_6 this is a NOOP so far and just MFC'ed for diff
  reduction.
- Remove invalid BUS_DMA_ALLOCNOW when creating the parent DMA tag
  and the tags that are used for static memory allocations.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
- Remove an unused variable in re_intr().
2007-01-30 14:00:59 +00:00
Max Laier c16f86ef3f MFC, subr_firmware.c 1.7:
In case we are supplied with an imagename that matches a module, but not a
  firmware in that module (eventhough this is a programming error) - drop
  the reference to the module again.

  Submitted by:	Benjamin Close
2007-01-30 12:46:05 +00:00
Marius Strobl 08a26b65c7 MFC: 1.70 (partial), 1.74
- Sync descriptions of RL_HWREV_8168_SPIN{1,2} with HEAD (merge botch
  of rev. 1.70 in rev. 1.46.2.17).
- Consistently use if_printf() only in interface methods: if_start(),
  if_watchdog, etc., or in functions used only in these methods.
  In all other functions in the driver use device_printf().
2007-01-30 10:55:32 +00:00
Christian S.J. Peron 24209edb4c MFC auditing hooks for sparc64
NOTE: this is compile tested only
2007-01-29 21:32:18 +00:00
Christian S.J. Peron 8e27486352 MFC the AUDIT_SYSCALL_{EXIT|ENTER} macros. This unbreaks auditing for
amd64 by allocating and committing audit records for syscalls. It should
be noted that the submission of userspace records are not affected by
this bug.
2007-01-29 17:48:33 +00:00
Gleb Smirnoff a96ea5a909 Merge manual pages for ng_deflate(4) and ng_pred1(4). 2007-01-29 09:53:20 +00:00
Craig Rodrigues 94105c5383 MFC:
Convert mount_msdosfs to use nmount().
2007-01-28 18:01:28 +00:00
Craig Rodrigues ab01c62286 Include <stdio.h> for vsnprintf(). 2007-01-28 17:52:28 +00:00
Craig Rodrigues a7cebbe163 MFC 1.18:
In build_iovec(), if passed in len is -1, check to see if
val is NULL before doing strlen() to calculate new len.
2007-01-28 17:47:05 +00:00
Craig Rodrigues c07efee8dc MFC:
Add build_iovec_argf() function.
2007-01-28 17:42:06 +00:00
Gleb Smirnoff 5b30d365b3 Bump __FreeBSD_version for MFC of ng_deflate(4) and ng_pred1(4)
netgraph nodes and new features in ng_ppp(4).
2007-01-28 17:19:19 +00:00
Gleb Smirnoff ddfd5d719d Merge the ng_deflate(4) and ng_pred1(4) nodes.
Submitted by:	Alexander Motin <mav alkar.net>
2007-01-28 17:14:57 +00:00
Gleb Smirnoff 0206bac495 Sync ng_ppp(4) node with HEAD. This includes the rewrite of the PPP
stack and new options to specify the compression and encryption mode.

Submitted by:	Alexander Motin <mav alkar.net>
2007-01-28 17:14:08 +00:00
Sam Leffler 377fabf0cd sync w/ HEAD: factor common code in ath_tx_start to be used for
raw packet injection support
2007-01-28 06:10:12 +00:00
Yoshihiro Takahashi 2f0d5c5eb6 MFi386: revision 1.38.2.1.
Sync with HEAD including support for reading any %crX register as well
  as some space savings.
2007-01-28 05:49:02 +00:00
Yoshihiro Takahashi cbb1ba03c0 MFi386: revision 1.616.2.8.
MFC: Sync sizes of physmap[], phys_avail[], and dump_avail[] and bump up
  the sizes to handle systems with very fragmented memory maps.
2007-01-28 05:44:56 +00:00
Sam Leffler 96dd934bb2 MFC: half- and quarter-rate channel support 2007-01-28 04:27:52 +00:00
Sam Leffler d7cf7579df MFC: half- and quarter-rate channel support
enable write of most hw.ath sysctl knobs
     remove public safety band bandaids w/ more recent hal available
     allow net80211 to install default rate sets
2007-01-28 04:10:40 +00:00
Sam Leffler b1d869570f MFC: half- and quarter-rate channel support
900MHz channel support
     support for respecifying the channel set after attach
     default rate sets
2007-01-28 04:07:54 +00:00
Craig Rodrigues 347b1f17cc MFC: 1.199, 1.200, 1.219, 1.222
Cleanups to vfs_donmount() function to better handle
"mount -u -o ro", "mount -r /usr", "mount -ar".

PR:		104687
2007-01-28 01:56:50 +00:00
Craig Rodrigues 9e6568a535 MFC 1.89, 1.90
Fix "mount -u -o ro" and "mount -u -o rw".

PR:		104687
2007-01-28 01:24:57 +00:00
Craig Rodrigues 0321d4889c MFC 1.22:
Convert mount_ext2fs to a simple program which passes "-o option" to nmount().

PR: 104687
2007-01-28 01:06:18 +00:00
Craig Rodrigues 8099fcbb3f MFC: mount.h 1.200, 1.217
vfs_mount.c 1.198, 1.243

Add vfs_mount_error() and vfs_deleteopt() functions.
2007-01-27 21:02:57 +00:00
Sam Leffler b3bdbc207a sync with HEAD 2007-01-27 07:26:09 +00:00
Sam Leffler 2ca7a825cc MFC: track v0.9.20.3 hal 2007-01-27 07:12:58 +00:00
Sam Leffler 3b7ab4eba4 MFC: v0.9.20.3 hal 2007-01-27 07:07:32 +00:00
Tim Kientzle f1d23f52fa MFC copyright message correction: Make this a standard vanilla
2-clause BSD license, update the year to 2007.
2007-01-27 06:48:39 +00:00
Tim Kientzle cb89eb8332 MFC: synchronize libarchive with FreeBSD-CURRENT. This includes
the following:

 * License updates.
 * Fixes for FreeBSD/arm
 * New read_open_filename, read_open_memory
 * New write_open_filename, write_open_memory
 * Write-blocking cleanup (cperciva@)
 * Adjust API so read_open/write_open funcs only need public API
 * Portability improvements (casts, include guards, etc.)
 * Properly pad sparse archive entries with blocks of zero bytes (cperciva@)
 * Correct copy of data to file when very large reads are possible
 * Be more flexible about dir permissions to avoid some fixups
 * Correct skip handling for entries over 2G (cperciva@)
 * ISO9660: skip entries faster, support entries over 2G
 * Tar: correct position accounting when skipping large entries (cperciva@)
 * Support unbuffered write as a special case (blocksize=0) (cperciva@)
 * Documentation corrections, improvements
 * Spelling corrections (cperciva@)
 * Improve some internal error returns

A few of these changes break the API/ABI and are therefore conditional
on the version number.  FreeBSD 6 will continue to use libarchive 1.x,
which will continue to use the old API/ABI.  When all of these changes
are ready, the libarchive version number will be changed in -CURRENT
to enable the new API.  Hopefully, this will allow the actual source
to remain identical between FreeBSD 6 and 7; only the version
parameters in the Makefile will be different.
2007-01-27 06:44:54 +00:00
Sam Leffler c54db233d0 MFC 1.203: drop softc lock when passing rx frames up the stack 2007-01-27 06:37:41 +00:00
Sam Leffler 2d1b592993 MFC 1.202: split wi_start int locked+unlocked variants and use the
unlocked one from the isr to eliminate a recursive lock
2007-01-27 06:36:51 +00:00
Sam Leffler bbf390aefc MFC: nuke compatibility cruft 2007-01-27 05:51:29 +00:00
Sam Leffler acecc9ce5d MFC 1.156: mark tx/rx descriptors COHERENT 2007-01-27 05:46:57 +00:00
Scott Long 96a6887c45 MFC rev 1.26: Fix multicast. 2007-01-27 00:05:56 +00:00
John Baldwin 83b31ef0da MFC: Document LD_UTRACE. 2007-01-26 16:33:03 +00:00
cvs2svn bfa6c805eb This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-01-26 10:19:09 +00:00
Sam Leffler 1fe5a561fb MFC 1.10: reduce user-visible namespace to just what is needed 2007-01-26 06:48:07 +00:00
Sam Leffler 4663203c12 MFC 1.3: fix typo 2007-01-26 06:46:39 +00:00
Sam Leffler 2b29c708ba MFC 1.88: add entry points required by newer broadcom wireless driver 2007-01-26 06:45:33 +00:00
Sam Leffler 7e2e681bab MFC: device-independent implementation of AMRR tx rate control algorithm 2007-01-26 06:40:28 +00:00
Gleb Smirnoff 3d8962500c MFC 1.4:
Update ip and tcp pointers after m_pullup().

  Submitted by:	Alexander Motin <mav alkar.net>
2007-01-25 21:44:06 +00:00
Gleb Smirnoff 5a015120cd MFC 1.7, 1.8:
Return value PKT_ALIAS_FOUND_HEADER_FRAGMENT isn't an error case. The
  packet shouldn't be dropped.

  Submitted by:		Alexander Motin <mav alkar.net>

  Correctly calculate length of IP header.

  Submitted by:		Eugene Hartmann <eugene tpsb.com.ru>
2007-01-25 21:42:47 +00:00
Gleb Smirnoff 5153032a03 MFC 1.20 - 1.24:
- Use bitcount32() from sys/systm.h instead of my own.
- Use hash functions with better distribution.
- Break long line.
2007-01-25 21:39:00 +00:00
Gleb Smirnoff 624d5a1aa7 MFC 1.13:
Recognize 802.1q frames in Ethernet input and process them.

  PR:		kern/101162
  Submitted by:	CoolDavid (Tseng Guo-Fu) <cooldavid cdpa.nsysu.edu.tw>
2007-01-25 21:35:43 +00:00
Sam Leffler 6b4cc0dda9 MFC 1.2: add rate knob for net80211 rate control modules 2007-01-25 17:40:09 +00:00
Sam Leffler ccbc749d43 MFC 1.43: add rate control debug msg bit 2007-01-25 17:39:21 +00:00
Sam Leffler d7a05b0661 MFC 1.41: fix handling of ssid "-" etc 2007-01-25 17:29:04 +00:00
Ruslan Ermilov df236b93b5 MFC: 1.12: Fix definitions of kilobits etc.
PR:	bin/106116
2007-01-25 14:28:02 +00:00
John Baldwin b664b8e9a3 MFC: Add various utrace's to the ELF runtime linker/loader. 2007-01-23 22:31:45 +00:00
John Baldwin cc197fb9f0 MFC: Fix some edge cases in detach. 2007-01-23 22:17:48 +00:00
John Baldwin 73a10e009b MFC: Wrap propagate_priority() in a critical section to prevent unwanted
preemptions.
2007-01-23 22:16:33 +00:00
John Baldwin 7ba9bff597 MFC: Parse utrace(2) entries generated by malloc(3). 2007-01-23 22:14:14 +00:00
John Baldwin 3678acede0 MFC: Fix some edge cases in detach() and a memory leak if we fail to talk
to the BMC.
2007-01-23 21:55:47 +00:00
Bruce A. Mah 06ec1d0e44 Add errata entry for IPv6 over gif(4) problems. 2007-01-23 17:00:59 +00:00
Colin Percival 4463c2deb6 MFC revisions 1.48-1.50:
* Print error messages where appropriate, and print the right one.
 * Properly handle errors in archive_write_close.
 * Correct resource leak in @<archive> handling.
2007-01-23 12:13:29 +00:00
Nate Lawson 4d95f64eb7 MFC: support for separate CPU Cx idle states 2007-01-23 07:21:23 +00:00
Andrew Thompson 0b3af2d0fa MFC: sync to HEAD
- markup fixes
 - spelling
 - RSTP section
2007-01-22 19:48:50 +00:00
Florent Thoumie 4e681d4c63 MFC:
Fix USB printer Xerox WorkCentre M15 adding a quirk to bypass
  reported bidirectional functionality.

      src/sys/dev/usb/usbdevs: rev 1.276 -> 1.277
      src/sys/dev/usb/usb_quirks.c: rev 1.54 -> 1.55

PR:		usb/104704
Submitted by:	Eygene <[email protected]>
2007-01-22 17:57:30 +00:00
Florent Thoumie 5584f53bec MFC: Introduce mixer_enable (default: YES).
src/etc/rc.d/mixer: rev 1.6 -> 1.7
      src/share/man/man5/rc.conf.5: rev 1.307 -> 1.308
      src/etc/defaults/rc.conf: rev 1.297 -> 1.298

PR:		conf/101268
Submitted by:	Eugene Grosbein <[email protected]>
2007-01-22 17:51:17 +00:00
Ceri Davies a646dbc655 MFC revisions 1.92, 1.94 and 1.95. 2007-01-21 17:41:54 +00:00
Markus Brueffer 7cce01d306 MFC rev. 1.13:
- Grammar fixes
  - Reword some sentences
  - Use .Cm for arguments
  - s/CAVEAT/CAVEATS/

Approved by:	emax (mentor)
2007-01-21 02:32:06 +00:00
Markus Brueffer 35008fe9fe MFC rev. 1.83:
Fix a buffer overflow iff USB_DEBUG is set, hw.usb.ums.debug is > 5 and the
  total size of all input reports is < 6.

Approved by:	emax (mentor)
2007-01-21 02:27:40 +00:00
Andrew Thompson 576eb61aee MFC Rapid Spanning Tree support.
This fully syncs bridgestp* and if_bridge* to HEAD with the exception of the
default spanning tree protocol being v1 and not rstp.
2007-01-21 00:18:34 +00:00
Hajimu UMEMOTO b6ce3f0a1b MFC: Extend the nsswitch to support Services, Protocols and Rpc
databases.

	include/nsswitch.h:		1.4 (partly)
	include/rpc/rpcent.h:		1.3, 1.4
	lib/libc/net/Makefile.inc:	1.59 (partly)
	lib/libc/net/getproto.c:	1.6 (partly)
	lib/libc/net/getprotoent.c:	1.8 (partly)
	lib/libc/net/getprotoname.c:	1.6 (partly)
	lib/libc/net/getservbyname.c:	1.9
	lib/libc/net/getservbyport.c:	1.9
	lib/libc/net/getservent.c:	1.22 (partly)
	lib/libc/net/netdb_private.h:	1.12
	lib/libc/rpc/getrpcent.c:	1.15 (partly)
2007-01-20 14:59:12 +00:00
Xin LI 931bde1107 MFC revision 1.4
date: 2006/12/20 17:10:53;  author: delphij;  state: Exp;  lines: +5 -0
On amd64 platform, use linux32 headers so 32-bit Linux applications
would be able to work with aac(4).

This approach is used by some other drivers as well.  However, we
need a more generic way to do this in order to avoid having to
special case headers in individual drivers for each platform.

Obtained from:  Adaptec (version b11518)
2007-01-20 07:05:55 +00:00
Hajimu UMEMOTO 30ef04cf7c MFC 1.74: Avoid infinite loop if nicmp6 and nip6 are not on the same mbuf.
NetBSD PR 34994+35333
2007-01-20 06:22:31 +00:00
Christian S.J. Peron 311c7de1c2 MFC Makefile revision 1.53 (with changes)
MFC login.c revision 1.102
MFC login.h revision 1.6

- Conditional build of audit based on NO_AUDIT
2007-01-20 02:25:36 +00:00
Christian S.J. Peron cc25e9c1ee MFC audit_private.h revision 1.12
MFC audit_arg.c revision 1.7

- Change the type we are using for struct sockaddr storage
2007-01-20 02:24:06 +00:00
Christian S.J. Peron f5d2260bac MFC if_tap.c revision 1.65
- Do not unconditionally report success on write(2)
2007-01-20 02:23:39 +00:00
Christian S.J. Peron 90f11f7419 MFC hosts.allow revision 1.22
Since NIS is an RPC based service, add a note that when adjusting access
controls in NIS, similar access controls should be considered for the
rpcbind as well.
2007-01-20 02:19:57 +00:00
Christian S.J. Peron ce49423262 MFC df.c revision 1.66
Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our
current implementation of df(1) is does not properly format the output under
certain conditions. Right now -kP and -Pk are not the same thing. Further,
when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024",
making the header display incorrectly.
2007-01-20 02:19:09 +00:00
John Baldwin bad206d3cd MFC: Change the life cycle of bpf interface objects to close attach/detach
races with bpf(4).  This includes shims to preserve the ABI for any old
modules.  For more details see the commit log for 1.166 of sys/net/bpf.c.
2007-01-19 23:01:34 +00:00
Xin LI 547d6e9679 MFC if_bce.c (1.23-24), if_bcereg.h (1.11):
- Instead of if_watchdog/if_timer interface use our own timer
   that piggybacks on bce_tick() callout.
 - Instead of unconditionally resetting the controller, try to
   skip the reset in case we got a pause frame, like em(4) did.
 - Lock bce_tick() using callout_init_mtx().
2007-01-18 16:14:19 +00:00
Maxim Konovalov 0e73132561 MFC rev. 1.34, 1.36: markup nits, document SO_TIMESTAMP and SO_BINSTAMP. 2007-01-18 11:08:44 +00:00
Maxim Konovalov e52edea663 MFC rev. 1.110: FreeBSD 6.2-RELEASE, copyright years++. 2007-01-18 11:05:18 +00:00
Andrew Thompson 90196992f4 MFC r1.82
Use LIST_FOREACH_SAFE instead of a hand rolled version.
2007-01-18 02:02:03 +00:00
Andrew Thompson 69a6b302a1 MFC: ifbridge.c r1.5, ifconfig.8 r1.126, if_bridge.c r1.87, if_bridgevar.h r1.17
Add a new address cache type called sticky. On an interface marked sticky any
 address learned by the bridge is made permanent, the address will not age out
 and most importantly will not migrate to another interface.

 This can be used to stop mac address poisoning or clients roaming in much the
 same way as static entries without the hassle of preloading the table.
2007-01-18 00:08:00 +00:00
Maxim Konovalov d36815793d MFC revs. 1.115 - 1.117: fix lines misorder, typo, wrap long lines. 2007-01-17 02:45:35 +00:00
Bruce A. Mah b92c788801 Use canonical address for security Web page. 2007-01-16 20:31:50 +00:00
Bruce A. Mah ea45061b5e New errata: Separate doc disk, wrong geli(8) reference, arcmsr(4),
unp_gc.patch, zonelimit issue.
2007-01-16 20:28:35 +00:00
Bruce A. Mah dd5ea98354 Note FreeBSD 6.2-RELEASE. 2007-01-16 15:33:53 +00:00
Konstantin Belousov a20a040511 Bump __FreeBSD_version for MFC rev. 1.117, 1.118 and 1.119 of
libexec/rtld-elf/rtld.c.
2007-01-16 09:40:24 +00:00
Konstantin Belousov a74283464d MFC rev. 1.117, 1.118 and 1.119.
- When looking up the symbol by dlsym, look it not only in the object
  given as dso handle, but also in the implicit dependencies of that dso.
- Const-ify the read-only parameter objlist of symlook_list.
- Clean up white spaces and fix style(9).

Patch backported by:	jkim
2007-01-16 07:51:04 +00:00
Marius Strobl 32ddb9ef6f MFC: 1.12
In ofw_pcibus_attach() skip dupe PCI devices reported by the
firmware by checking whether a device with the same triple of
bus number, slot and function already has been added.
2007-01-15 22:24:37 +00:00
cvs2svn 2e2cc1566c This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-01-15 18:37:34 +00:00
Bruce A. Mah 16b45cc80c Update version numbers for 6.2-STABLE.
Trim release notes and errata appropriately.
2007-01-15 18:37:33 +00:00
Brooks Davis 07771743d4 MFC: head.c revs 1.19-20, Makefile rev 1.2
Fix head -c ### where ### is greater than 2^31.  Unlike the submitted
patch this uses off_t.

WARNSify and add $FreeBSD$ to Makefile.

PR:		bin/107824
Submitted by:	Brian Cornell <briancornell at earthlink dot net>
2007-01-15 17:11:38 +00:00
Ken Smith 2b3b93e6b6 6.2-RELEASE is done, RELENG_6 is back to -STABLE. 2007-01-15 06:16:29 +00:00
Ed Maste d8bd8af68b MFC hwpmc_x86.c 1.4 and 1.5:
Add support for a new/unreleased Pentium-M.
  Add support for Intel cpu model's 5 & 6.

Approved by:	jkoshy
2007-01-15 04:58:49 +00:00
Pav Lucistnik 4006392706 MFC 1.46:
Tell backing v_object the filesize right on it's creation.
2007-01-14 17:28:33 +00:00
Xin LI 6f18fbb52f MFen 1.73.2.36 -> 1.73.2.37. 2007-01-12 16:47:55 +00:00
Matt Jacob c371769d82 MFC 1.18-1.19: Add a function that checks for duplicate requests (based
on some fairly tight criteria) so we avoid having broken clients
spam rpc.lockd to death. Plus some whitespace.
2007-01-12 16:46:51 +00:00
John Baldwin 6af5ccf73f MFC: Close a race between enumerating UNIX domain socket pcb structures via
sysctl and socket teardown.  Note that we engage in a bit of trickery to
preserve the ABI of 'struct unpcb' in 6.x.  We change the UMA zone to hold
a 'struct unpcb_wrapper' which holds a 6.x 'struct unpcb' followed by the
new reference count needed for handling the race.  We then cast 'struct
unpcb' pointers to 'struct unpcb_wrapper' pointers when we need to access
the reference count.

Submitted by:	ups (including the ABI trickery)
2007-01-12 16:24:23 +00:00
John Baldwin 9254f12f57 MFC: Close a race between UNIX domain pcb garbage collection (unp_gc()) and
file descriptor teardown (fdrop()) by adding a new garbage collection flag
FWAIT.
2007-01-12 16:21:29 +00:00
John Baldwin e21a9f190c MFC: Add uma_zone_exhausted() and warn if we run out of objects in the
swap_zone.
2007-01-12 16:12:59 +00:00
Bruce A. Mah 42300bc468 New errata: SA-07:01.jail. Bump copyright date while here. 2007-01-11 20:14:48 +00:00
Bruce A. Mah 12fa50f108 MFC: SA-07:01.jail. Bump copyright date while here. 2007-01-11 19:48:51 +00:00
Simon L. B. Nielsen ad93de6e3d Fix jail rc.d script privilege escalation via symlink attack against
/var/log/console.log and mount points.

Security:	FreeBSD-SA-07:01.jail
2007-01-11 18:18:57 +00:00
John Baldwin 16b58a8cf1 MFC: Use a regular mutex instead of a spin mutex and remove unneeded locking
during attach.
2007-01-11 16:31:47 +00:00
Christian Brueffer f5228987aa MFC: rev. 1.5
Sync the hardware list with the driver and with what I could find on
the Areca website.
Also remove the module from the FILES section, it's already covered in
the SYNOPSIS.
2007-01-11 11:33:34 +00:00
Max Laier ae1d726906 MFC: ipfw2.c, 1.101:
Fix a parsing bug when specifying more than one address with dotted
  decimal netmask.

  Reported by:	Igor Anishchuk
  PR:		kern/107565
2007-01-10 11:34:51 +00:00
Xin LI ddbefbc6c9 The pc98 porting team's copyright year should be 2003, when
5.0-RELEASE, the first release including pc98 is released.

Noticed by:	hrs
Confirmed by:	nyan
2007-01-10 01:29:46 +00:00
John Baldwin 87cfa2c013 MFC: Use the vnode interlock to close a vnode destroy race. 2007-01-09 18:04:58 +00:00
Brooks Davis 58bcc6f4ad MFC rev 1.25:
Pull in /etc/rc.conf.d/network so that ifconfig_<if> variables can be
set there. This is required for consistency with /etc/rc.d/netif.

PR:		conf/103893
Submitted by:	Nick Hibma <nick at anywi.com>
2007-01-09 03:29:49 +00:00
Sam Leffler b43de3ea01 MFC 1.25: document recent change to return ECONNRESET for tcp sockets 2007-01-08 18:12:34 +00:00
Sam Leffler ec4f1d8a50 MFC 1.142: change error codes returned by protocol operations when an
incpb is dropped [revised for RELENG_6 code base]

Reviewed by:	rwatson, Eric Huss
2007-01-08 18:10:12 +00:00
cvs2svn aff812c270 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2007-01-07 18:38:00 +00:00
Marcel Moolenaar 98a74d4226 Add rudimentary release documentation for PowerPC. 2007-01-07 18:37:59 +00:00
Marcel Moolenaar 3c2decd8cc Add proc-ia64.sgml to SRCS. 2007-01-07 18:18:27 +00:00
Hiroki Sato 76a3c228da MFC: The nfsm_srvpathsiz() macro in nfsrv_symlink() in nfs_serv.c
should check length of the pathname in the range 0<=n<=NFS_MAXPATHLEN,
not 0<n<=NFS_MAXPATHLEN.  This fixes a minor interoperability problem
that the FreeBSD NFS server did not allow a symlink pointing the empty
pathname.
2007-01-07 13:20:24 +00:00
Maxim Konovalov 50f64819c7 MFC rev. 1.101: grammar. 2007-01-07 09:50:01 +00:00
Scott Long 6587bad890 Up the event class reporting from EVT_CLASS_DEBUG to EVT_CLASS_INFO.
Submitted by: Doug Ambrisko
2007-01-07 06:44:37 +00:00
Tai-hwa Liang 269183e0ac MFC (1.67): Completing the process of UUCP migration to ports. 2007-01-07 02:40:37 +00:00
Marcel Moolenaar bae1419b31 MFC 1.14: ata_generic_hw() takes a device, not a channel. 2007-01-07 01:07:22 +00:00
Marcel Moolenaar 14fa6c3910 MFC 1.89: Build gperf(1) on PowerPC. 2007-01-07 00:34:00 +00:00
Marcel Moolenaar dea9def18f MFC 1.58: Enable gmon on PowerPC. 2007-01-07 00:12:24 +00:00
Marcel Moolenaar ccc31caf59 MFC rev 1.21: Use the proper definition for the minbrk symbol. 2007-01-07 00:10:53 +00:00
Craig Rodrigues 7696740c99 MFC 1.56:
Fix mount update from read-only to read-write for FAT-16 and FAT-32.

PR:		105412
Tested by:	Eugene Grosbein <eugen grosbein pp ru>
2007-01-06 22:17:15 +00:00
Matt Jacob 286bffd350 MFC 1.41: Add a chip timeout to ENABLE/MODIFY/DISABLE lun calls. 2007-01-06 04:20:29 +00:00
Warner Losh 2fc75a5382 MFC: Merge MPEG2-TS/HDV support for fwcontrol.
Submitted by: Petr Holub
PR: bin/98134
2007-01-06 01:09:56 +00:00
John Baldwin cf7f4f8ad9 MFC: Whitespace fixes. 2007-01-05 21:38:46 +00:00
Stefan Farfeleder 53ecea101d MFC 1.33: Use a single comma instead of comma and space to separate
additional group entries.
2007-01-05 14:46:54 +00:00
Yaroslav Tykhiy a3dca515af MFC pkill(1) totally. Besides bugfixes, this brings in the following
visible changes:

* a new option -I for interactive killing;
* a new syntax for jail wildcards: -j any, -j none; -j0 is deprecated now.

MFC the regression tests for pkill(1), too, to make sure it works well.

Approved by:	gad, pjd, re
Tested by:	the regression tests
2007-01-05 14:03:21 +00:00
Yaroslav Tykhiy 6123da5f6d MFC all the recent fixes to systat(1). As a pleasant
side-effect, this reduces its difference against HEAD
almost to zero.

Idea by:	bde
OK by:		re
2007-01-05 11:55:35 +00:00
Konstantin Belousov 4828c37e1b MFC
rev. 1.167 of src/sys/dev/md/md.c
rev. 1.514, 1.515 of src/sys/kern/vfs_bio.c
rev. 1.319, 1.320 of src/sys/sys/vnode.h

Resolve two deadlocks that could be caused by busy md device backed by
vnode.
2007-01-05 09:51:14 +00:00
Craig Rodrigues 77ed5f6bb7 MFC 1.14, 1.15:
marcel      2006-12-21 05:40:46 UTC

  Unbreak 64-bit little-endian systems that do require alignment.
  The fix involves using le16dec(), le32dec(), le16enc() and
  le32enc(). This eliminates invalid casts and duplicated logic.

PR:             106703
Tested by:	Axel Gonzalez <loox e-shell net>
2007-01-05 05:50:36 +00:00
John Baldwin 759a63a87c MFC: Fix kenv() function prototype. 2007-01-04 19:59:41 +00:00
Max Laier d9a3b3b2a3 MFC: pf_ioctl.c 1.27:
Clean up pfr_kentry_pl2 as well.  This fixes a kernel panic in the vm.zone
  sysctl after unloading pf.

  Submitted by:	Earl Lapus
2007-01-04 18:31:43 +00:00
Konstantin Belousov b15ce2d3a6 MFC of rev. 1.164:
- Conditionally acquire Giant in mdstart_vnode(), mdcreate_vnode(), and
  mddestroy() only if the file is from a non-MPSAFE fs.
There, to accommodate for the vn_open() difference with HEAD, use
VFS_LOCK_GIANT after vn_open (since vn_open(..., -1) assumes caller is not
MP-safe).
- No longer unconditionally hold Giant in the md kthread for vnode-backed
  kthreads.
- Improve the handling of the thread exit race when destroying an md
  device.

No objections from:	jhb
2007-01-04 17:39:17 +00:00
Christian Brueffer 9080905349 MFC:
Xref uark(4)
2007-01-04 09:05:37 +00:00
Mohan Srinivasan 10ed4ef752 MFC 3 fixes from -current. All having to do with the case where the same
filehandle is looked up by 2 or more processes.
- Don't vrele() the losing vnode, as vfs_hash_insert() vput()'s it.
- Initialize mutexes on the losing nfsnode (as these get destroyed in the
  nfsnode reclaim path).
- Move the initialization of the filehandle to before the vfs_insert, to
  close some races which could result in multiple vnodes for the same
  filehandle being inserted into the hash.
2007-01-03 20:19:02 +00:00
Colin Percival 1e3f52b317 MFC:
Correct spelling of "accommodate", "guarantee", "guaranteed", "guard",
  "return", "ridiculous", and "success".
2007-01-02 12:35:07 +00:00
Florent Thoumie ad0f0e62a9 Jail_ip and jail_interface local variables were renamed to _ip and _interface
in a previous commit to avoid namespace collisions, unfortunately I missed two
of them. This leads to the ip alias being incorrectly removed in some cases
when using the stop command.

Reported by:	Philipp Wuensche <[email protected]>
2007-01-02 11:14:07 +00:00
Daniel Gerzo b52f506ee2 - Sync with -HEAD
Approved by: trhodes (mentor), keramida (mentor)
2007-01-01 21:26:32 +00:00
Ceri Davies 68a81677d2 Sync with -HEAD. 2006-12-31 18:57:31 +00:00
Ceri Davies 3024e5dce0 MFC revisions 1.20 and 1.23:
1.20: Markup fixes.
  1.23: Remove duplicate "clear" subcommand.

Revisions 1.21 and 1.22 do not currently apply to RELENG_6.
2006-12-31 18:46:42 +00:00
Ceri Davies dc4cbd63f0 MFC quotacheck.8 revision 1.17, quotacheck.c revision 1.26:
Document the -l option.

Approved by:	ru
2006-12-31 18:40:05 +00:00
Ceri Davies 5b348e058d MFC revisions 1.371 and 1.372.
1.371: Fix typos in comments.
  1.372: Remove a warning regarding disk entries in /dev.

Approved by:	ru
2006-12-31 18:34:58 +00:00
Ceri Davies c57a234051 MFC revisions 1.90, 1.91 and 1.93:
1.90: Fix typos in comments.
  1.91: Add /lib and /libexec to the list of directories that have the
        schg flag removed prior to an upgrade.
  1.93: Fix a pair of user-visible typos.

Approved by:	ru
2006-12-31 18:28:46 +00:00
Ceri Davies 4b43c26a16 MFC revision 1.158:
When using sysinstall on a running system and editing a disk label
  fails, suggest setting kern.geom.debugflags to 16.

PR:		bin/94409
2006-12-31 18:08:22 +00:00
Ceri Davies e872b5706d MFC revision 1.25:
Ensure that the load of rules into the alternate ruleset worked before
  loading them into the live one too.

PR:		conf/97311
Approved by:	ru
2006-12-31 17:49:38 +00:00
Ceri Davies a17a9367f9 MFC revisions 1.4 and 1.5.
Approved by:	ru
2006-12-31 17:41:49 +00:00
Ceri Davies f702650b11 MFC the cr_cansee.9 and p_cansee.9 manuals.
Approved by:	ru
2006-12-31 17:41:19 +00:00
Xin LI 8c8ef99b0d Welcome to 2007 2006-12-31 16:35:29 +00:00
Maxim Konovalov 0f58325226 MFC rev. 1.166 (with mods for RELENG_6): do not leave uninitialized
birthtime, set ctime to mtime.
2006-12-31 07:34:40 +00:00
Colin Percival cdf45a60a0 MFC: Note that updates aren't available for -CURRENT or -STABLE. 2006-12-31 05:14:41 +00:00
John Baldwin 6508556601 MFC: Include the style fix I had included in the other MFC's for the
inpcb fixes.
2006-12-30 17:58:46 +00:00
Maxim Konovalov 0ff3f2b802 MFC uark(4), a driver for Arkmicro Technologies ARK3116 based serial
adapters.
2006-12-30 17:55:15 +00:00
Robert Watson fe383d226c Merge tcp_subr.c:1.251 from HEAD to RELENG_6:
Fix race conditions on enumerating pcb lists by moving the initialization
  (and where appropriate the destruction) of the pcb mutex to the
  init/finit functions of the pcb zones.  This allows locking of the pcb
  entries and race condition free comparison of the generation count.
  Rearrange locking a bit to avoid extra locking operation to update the
  generation count in in_pcballoc().  (in_pcballoc now returns the pcb
  locked)

  I am planning to convert pcb list handling from a type safe to a
  reference count model soon.  (As this allows really freeing the PCBs)

  Reviewed by:    rwatson, mohans

This was missed in jhb's earlier MFC, and lead to a panic when creating
TCP sockets.

Reported by:	Larry Rosenman <ler at lerctr dot org>
		Henrik Brix Andersen <henrik at brixandersen dot dk>
		Karol Kwiatkowski <freebsd at orchid dot homeunix dot org>
		Danny Braniss <danny at cs dot huji dot ac dot il>
		Torfinn Ingolfsen <torfinn dot ingolfsen at broadpark dot no>
2006-12-30 16:03:44 +00:00
Pav Lucistnik 4048347c9f MFC rev. 1.62:
Call vnode_create_vobject() in VOP_OPEN.  Makes mmap work on UDF filesystem.
2006-12-30 15:42:11 +00:00
Luigi Rizzo c76054aacb MFC 1.39: Add support for 945G/GM AGP chipsets.
Approved by: Eric Anholt
2006-12-30 11:48:02 +00:00
Daniel Gerzo 1a84e0b200 MFC:
- Markup fixes.
- clock_gettime is in time.h instead of sys/time.h

Approved by: trhodes (mentor), keramida (mentor)
2006-12-29 23:35:08 +00:00
Daniel Gerzo abf9998fb6 MFC:
- add some files to FILES section and provide their description
- reference devfs.conf and devfs.rules in SEE ALSO section

Approved by: keramida (mentor), trhodes (mentor)
2006-12-29 23:23:59 +00:00
John Baldwin e43cc45c20 MFC: Close some races between enumerating inpcb's and tearing them down by
making the mutex portion of struct inpcb type-stable and never destroying
it.
2006-12-29 19:25:49 +00:00
Hiroki Sato 02001c032f MFC: Add "nojail" keyword to prevent a spurious error message.
Spotted by:	Keve Nagy
PR:		conf/107083
2006-12-29 16:01:12 +00:00
Ruslan Ermilov d0e6780a11 MFC: Fix tab lossage and get rid of redundant whitespace. 2006-12-29 07:27:06 +00:00
John Baldwin 0073b62e62 MFC: Make the ACPI and OpenFirmware PCI bus drivers subclasses of the
generic PCI bus driver.
2006-12-28 22:20:41 +00:00
John Baldwin 72dda3afec MFC: When loading a driver that is a subclass of another driver don't set
the devclass's parent pointer if the two drivers share the same devclass.
2006-12-28 22:13:26 +00:00
John Baldwin 39b8ea4458 MFC:
- Make pcib_devclass private to sys/dev/pci/pci_pci.c and change all the
  various pcib drivers to use their own private devclass_t variables for
  their modules.
- Use the DEFINE_CLASS_0() macro to declare drivers for the various pcib
  drivers while I'm here.
2006-12-28 22:09:47 +00:00
John Baldwin eff8e3f1f4 MFC: Use pci_find_extcap() in drm(4) and agp(4). 2006-12-28 21:54:50 +00:00
John Baldwin c854db54b6 Bump __FreeBSD_version for pci_find_extcap(). 2006-12-28 21:48:42 +00:00
John Baldwin 8352578b9c MFC: Add the PCI_FIND_EXTCAP() method to the PCI bus interface to lookup
specific extended capability registers by capability ID.

Requested by:	scottl
2006-12-28 21:40:55 +00:00
Yaroslav Tykhiy cf129a4a9c MFC cosmetic fixes to the asf(8) usage line and manpage,
thus eliminating the difference from HEAD completely in
this module.
2006-12-27 06:31:57 +00:00
Yaroslav Tykhiy dee6c67ac7 MFC:
Allow for module-path being a semicolon-separated list of dirs.
  This is consistent with kern.module_path sysctl and also compensates
  for the unconventional syntax of asf(8) where the last of multiple
  arguments is the output file, which prevents us from using the
  traditional Unix syntax "foo file ..." to specify multiple module
  dirs.

	asf.c	rev. 1.12
	asf.8	rev. 1.11
2006-12-27 06:22:44 +00:00
Diomidis Spinellis 106d61c663 MFC revisions 1.35-1.37.
Correct handling of format strings with escaped % specifications.
Prevent buffer overflow when forcibly terminating an escape character.
2006-12-26 20:09:40 +00:00
Marius Strobl f66f77e519 MFC: 1.7
Fix a typo in __fpu_ftox() that caused long double to long (and long long)
conversion of negative numbers to always result in -1.
While at it, rearrange the nearby comment so it fits in 80 chars per line,
like the rest of this file does.

PR:		107130
2006-12-26 09:45:19 +00:00
Colin Percival 5e24e8052b MFC revisions 1.68-1.71 of bsdtar.c, 1.25 of bsdtar.h:
* Remove nonexistant -F option from getopts string.
* Correct the names of some options.
* Check for -U and --strip-components options in inappropriate contexts.
2006-12-26 05:27:49 +00:00
Bruce A. Mah 3de886aefb MFC: arcmsr(4) 1.20.00.13, libc resolver from BIND 9.3.3. 2006-12-24 22:54:25 +00:00
Ariff Abdullah 1d6df91b51 MFC:
Add inverted amplifier sense quirk for HP Compaq nx4300 and few
NEC VersaPro.

PR:		kern/106104, kern/104715
Submitted by:	Shun-ichi Kobayashi <[email protected]>
             	KAWATA Masahiko <[email protected]>

Add support for Nvidia Nforce MCP04 AC97 controller.

PR:		kern/106829
Submitted by:	Frédéric Petit <[email protected]>
2006-12-24 05:44:10 +00:00
Matt Jacob b22d9af21b MFC 1.171-1.173- check in xpt_init for result of xpt_bus_register. 2006-12-24 03:23:43 +00:00
Sam Leffler dc432814f7 MFC 1.16: clarify shortcut return 2006-12-24 00:15:55 +00:00
Sam Leffler d4d782d201 MFC 1.13: add fls 2006-12-24 00:09:56 +00:00
Sam Leffler 561e92d524 MFC 1.24: mark struct ether_header packed for arm
While here bring along similar changes to pack struct ether_addr
and do compile-time asserts that structures are the expected sizes.
2006-12-24 00:08:46 +00:00
Sam Leffler 53c9d997b5 MFC wpa_passphrase 2006-12-23 22:44:47 +00:00
Sam Leffler 1e489b3760 MFC 1.67: honor nolockd flag in root mount options 2006-12-23 22:40:56 +00:00
Sam Leffler dbbcead733 MFC 1.12: add missing bits for crypto support 2006-12-23 21:46:56 +00:00
Max Khon 51cb0dafc2 MFC: Add support for the second (RT2561/RT2561S) and third
(RT2661 MIMO XR) generations of 802.11abg chipsets from Ralink Technology.
2006-12-23 07:14:42 +00:00
Erwin Lansing 88a97e7de2 MFC rev 1.111:
- Add geography and spanish ports categories
  - Use "related to" instead of "relating to" consistently [1]

  Submitted by:   Rostislav Krasny <[email protected]> [1]
  Reviewed by:    simon
2006-12-22 10:59:55 +00:00
Hajimu UMEMOTO 0c7fc58849 MFC: Merge BIND9 9.3.3 into main chunk.
include/arpa/nameser_compat.h:	1.6
	lib/libc/inet/inet_cidr_ntop.c:	1.1.1.2
	lib/libc/inet/inet_net_ntop.c:	1.3
	lib/libc/isc/eventlib_p.h:	1.4
	lib/libc/resolv/mtctxres.c:	1.3
	lib/libc/resolv/res_init.c:	1.4
	lib/libc/resolv/res_send.c:	1.5
2006-12-22 07:33:20 +00:00
Scott Long 35051f0c83 Partially back out revs 1.134 and 1.50 of if_bge.c and if_bgereg.h,
respectively.  A lot more is needed to support these chips than just PCI
IDs, and the code added to 7-CURRENT isn't ready for FreeBSD 6 yet.

Approved by: re
2006-12-21 21:53:54 +00:00
Matt Jacob 74a655f5a9 MFC 1.10: avoid some divide by zero cases in calculating geometry. 2006-12-21 19:51:53 +00:00
Martin Blapp 3e670c2844 MFC Rev. 1.267
Retest tp->t_session because Giant might have been temporarily dropped
while waiting for proctree_lock, allowing for an intervening tty_close()
that cleared tp->t_session.

Submitted by:	tegge
2006-12-21 16:24:22 +00:00
Pyun YongHyeon 6179ba3386 MFC if_rl.c, 1.166 to RELENG_6.
Don't assume IF_LLADDR returns aligned memory address.
  Because accessing ID registers in rtl81x9 needs 32bit register access
  and RL_IDR6/RL_IDR7 registers are reservered registers bzero() is
  needed before copying ethernet address.
  This fixes unaligned memory accesses panic in sparc64.
2006-12-21 12:57:06 +00:00
Xin LI 3337d743d2 MFC 1.13 (by ps):
Add E200, E200i, P400, and P400i storage controllers to
supported list.  Remove the E400 since it is not a real
product.
2006-12-21 08:03:03 +00:00
cvs2svn 8ae1628d83 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-12-20 22:02:46 +00:00
Konstantin Belousov abd7981999 MFC rev. 1.94:
Support __start_<section> and __end_<section> special symbols.

Requested by:	grehan
2006-12-20 14:05:41 +00:00
Yaroslav Tykhiy d414f67935 MFC rev. 1.80: We should return the name in cp, not printf it. 2006-12-20 12:47:50 +00:00
Yaroslav Tykhiy efcc8bcc50 MFC rev. 1.18:
Improve cleartmp in a number of aspects:

  + Use rc.subr(8) features properly.
  + Do the whole job of obliterating /tmp contents in find(1).
  + Leave lost+found and quota.{user,group} in /tmp only if root-owned.
  + Make the overall structure clearer by first removing the X dirs
    (perhaps along with the rest of /tmp) and then re-creating them.
  + Use "find -exec rm -rf {} +" for efficiency: each rm instance gets
    a chance to kill as much files in /tmp as ARG_MAX permits.
2006-12-20 12:29:40 +00:00
Yaroslav Tykhiy 6eac3853d8 MFC rev. 1.13:
De-uglify messages from the ipfw script.
2006-12-20 12:24:32 +00:00
Yaroslav Tykhiy a804c21957 MFC rev. 1.4:
Use more rc.subr(8) features.
  Skip useless work when ${natd_interface} is unset.
  Double quote user-supplied vars unless there is a reason not to.
2006-12-20 12:23:57 +00:00
Yaroslav Tykhiy 3343bd9c0c MFC fixes to comments and messages to reduce diff against HEAD. 2006-12-20 12:04:00 +00:00
Yaroslav Tykhiy d0f264e1e5 MFC rev. 1.65, 1.66:
- Avoid ps(1) output truncation to 80 columns.
- Eliminate header line(s) from ps(1) output instead of skipping over them.
2006-12-20 11:55:16 +00:00
Yaroslav Tykhiy 97d2287bd0 MFC rev. 1.9: Use load_kld(). 2006-12-20 11:45:40 +00:00
Yaroslav Tykhiy 20ed06ae54 MFC load_kld().
Prodded by:	delphij, emax
2006-12-20 11:43:04 +00:00
Ruslan Ermilov 3b20bcb9fe MFC: 1.17: Unbreak column(1) by jumping to the next column
instead of always skipping it.
2006-12-20 11:28:35 +00:00
Maxim Konovalov d75b85884e MFC rev. 1.197: X-Micro Flash Disk quirk. 2006-12-19 19:19:16 +00:00
Maxim Konovalov e15bc96748 MFC rev. 1.50: fix 8.3 capitalization. 2006-12-19 19:15:44 +00:00
Doug Barton 46b296a5c4 MFC version 1.6 of each Makfile, fixing man page markup. 2006-12-19 18:28:03 +00:00
Craig Rodrigues b2d2689a39 MFC 1.160: Add more mount options to ext2_ops, so that vfs_filteropts()
will accept options like "noatime" for ext2fs.

PR:		105483
Noticed by:	Dr. Markus Waldeck <waldeck gmx de>
2006-12-19 01:36:43 +00:00
Craig Rodrigues c3f1d548cc MFC: 1.91
Ignore SIGPIPE, instead of terminating process.

PR:		81230
Submitted by:	Dmitrij Tejblum <tejblum yandex-team ru>
2006-12-19 01:17:58 +00:00
Pawel Jakub Dawidek 8e2204bf19 MFC: sbin/ggate/ggated/ggated.c 1.8,1.9
sbin/ggate/shared/ggate.c	1.7,1.8
	sbin/ggate/shared/ggate.h	1.4,1.5

Fix ggated for platforms with 64bit size_t. The DIOCGSECTORSIZE ioctl
returns u_int.

Reported by:	Javier Martín Rueda <[email protected]>
PR:		amd64/91799
2006-12-18 11:25:02 +00:00
Matt Jacob 7e1236c001 MFC the xpt_print function. 2006-12-16 07:05:54 +00:00
Matt Jacob ca6faa28c0 RELENG_6 (5, 4) change to recognize 6 port NetMos
PR:		58953
Submitted by:	Milan Obuch
Reviewed by:	marcel
2006-12-15 22:31:37 +00:00
Warner Losh 423080f778 Directly commit a compatibility shim for -current.
bus_get_dma_tag(dev) in stable is spelled NULL presently.  Until such
time as we MFC this functionailty (which may be never), provide this
alternate spelling to aide in back-porting -current drivers.  When the
functionality is merged, this can be retired.
2006-12-15 21:33:23 +00:00
Tim Kientzle 10cdad043c MFC support for Linux-compatible -f flag. 2006-12-15 03:27:50 +00:00
Matt Jacob bafdd70844 MFC revisions 1.74 (module depedencies) && 1.71 (spin until a request
struct is available in the ioctl path)
2006-12-14 22:00:53 +00:00
Scott Long 2864728510 MFC: Bring the arcmsr driver up to the vendor 1.20.00.013 version.
Submitted by: Erich Chen
2006-12-14 17:55:12 +00:00
Bruce A. Mah ff982e8686 Update release note: BIND 9.3.3. 2006-12-14 17:02:36 +00:00
Christian Brueffer 282eb89761 MFC: rev. 1.34
Document IBM ServeRAID 8k support.
2006-12-14 13:44:41 +00:00
Erwin Lansing 7e0d7924f3 MFC: rev. 1.109 + 1.110
- Update the list of ports categories. [1]
  - Fix typo. [2]

  PR:           85367 [1]
  Submitted by: linimon [1],
                ceri, matteo [2]
  Reviewed by:  ceri, simon [1],
                cperciva [2]
2006-12-14 09:04:13 +00:00
Xin LI 912f78b4f5 MFC revision 1.60 (by scottl):
Add PCI Id for ServeRAID 8k.

Submitted by:	Danny Braniss
Ok'ed by:	scottl
2006-12-14 06:57:05 +00:00
Craig Rodrigues 76fca3d381 MFC: 1.155 (without vfs_mount_error()):
- Fix MNT_UPDATE for msdosfs, do not allow "export" requests if
  MSDOSFS_LARGEFS flag is set.

PR:	kern/105412
2006-12-14 04:48:17 +00:00
David E. O'Brien 128fbc2020 Back out rev 1.439.2.16 - it is on purpose that GENERIC doesn't support SMP
in 6.x vs 7-CURRENT (which has been SMP since Nov. 2003).
2006-12-14 04:06:59 +00:00
David E. O'Brien 56ae0d1a5b Turn on SMP in the default kernel.
Most FreeBSD/amd64 machines are either multi-socket and/or multi-core.
2006-12-14 03:57:34 +00:00
Matt Jacob aba56a885f MFC: All of those added MODULE_DEPEND clauses to make CAM and the
actual hardware busses get pulled in if they're modules

PRs: 106536, 106543
2006-12-14 02:57:07 +00:00
Erwin Lansing a09592b4ab MFC: rev. 1.421
Add a new turkish mirror

  Submitted by:   Evren Yurtesen <[email protected]>
  Reviewed by:    simon
2006-12-13 13:10:21 +00:00
Maxim Konovalov b3945a0fa9 MFC rev. 1.10: confstr(3) returns 0 on error. 2006-12-13 12:30:44 +00:00
Maxim Konovalov 40beeb1d24 MFC rev. 1.231: fix typo. 2006-12-13 12:28:55 +00:00
Maxim Konovalov f589f9afb2 MFC rev. 1.42: /stand/sysinstall -> /usr/sbin/sysinstall. 2006-12-13 12:27:08 +00:00
Maxim Konovalov 603ccd4ef7 MFC rev. 1.14: confstr(3) returns zero on errors, not -1. 2006-12-13 12:25:31 +00:00
Luigi Rizzo 18764561d0 MFC: sync with the version in -current, in detail:
- put some common code in a function handle_remount();
  - add better checks on non-existing directories to prevent error
    messages at run time;
  - introduce a function log() to help debugging diskless booting
    when things don't work;
  - modify the parsing of diskless_remount so you can add mount_nfs
    options after the pathname. You could use 'remount' to do something
    similar, but this way is more convenient because you don't have to
    hardwire the server name in the command.
  - document the above.
2006-12-13 10:19:37 +00:00
Doug Barton 74fd60d0b2 MFC upgrade to version 9.3.3
Approved by:	re (kensmith)
2006-12-13 09:47:02 +00:00
David Xu 3afeee1dd4 Avoid preempting in maybe_preempt_in_ksegrp() as code in maybe_preempt()
did, mainly, if a thread is in inhibited state, don't preempt it since
it will yield cpu, while here, synchoronize variable name with
maybe_preempt().

Tested by: Dmitriy Kirhlarov <[email protected]>
PR: kern/105464
2006-12-13 09:26:02 +00:00
cvs2svn 66ec132e09 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-12-13 02:37:49 +00:00
Hajimu UMEMOTO 76f0a207f2 MFC: Use callout mechanism instead of timeout()/untimeout().
sys/net/if_ppp.c:	1.119
	sys/net/if_pppvar.h:	1.26
	sys/net/ppp_tty.c:	1.72
2006-12-12 19:41:41 +00:00
Florent Thoumie 8948d0c026 MFC: Add a quirk for devices recognized as usb keyboards not to be hooked by
ukbd(4).

      src/sys/dev/usb/usbdevs: rev 1.283 -> 1.284
      src/sys/dev/usb/usb_quirks.c: rev 1.56 -> 1.57
      src/sys/dev/usb/ukbd.c: rev 1.58 -> 1.59
      src/sys/dev/usb/usb_quirks.h: rev 1.22 -> 1.23

PR:		usb/105669
Submitted by:	Henrik Brix Andersen <[email protected]>
2006-12-12 15:44:13 +00:00
Bruce Evans 4852f64fda MFC (1.2: add missing ldexpf()).
Previous history of ldexpf()'s existence in FreeBSD:

2005/03/07 s_scalbnf.c 1.8: first implemented (for all arches)
           i387 s_scalbnf.S 1.1: i386 MD implementation at same time
2005/04/16 amd64 s_scalbnf.S 1.1: missing here, and thus missing for amd64
2005/09/12 amd64 s_scalbnf.S 1.2: fixed in -current
2005/12/06 e_scalbnf.c 1.10: misimplemented for all arches (accidentally has
                             no effect except for amd64)
2006/07/05 e_scalbnf.c 1.11: backed out misimplementation
2006/07/05 e_scalbnf.c 1.12: attempt to fix log message in 1.11

The log message in e_scalbnf.c 1.12 still got the main detail wrong.
1.10 actually succeeded in misimplementing ldexpf() for amd64 only,
since for amd64 only there is no strong reference to hide the broken
weak reference.  For most arches, there is a strong reference in
s_scalbnf.c; for i386, there is a strong reference in s_scalbnf.S; for
amd64 there is supposed to be a strong reference in s_scalbnf.S but
it was missing.

So the problem mainly affected all versions of RELENG_6 on amd64.  -current
has ldexpf() and versions before 6.0 aren't supposed to have it.

Debugging completed by: Kael Fischer, Steve Kargl
2006-12-12 04:42:36 +00:00
Ken Smith c86fd4fa96 MFC of v1.134:
> revision 1.134
> date: 2006/03/05 17:52:32;  author: phk;  state: Exp;  lines: +4 -2
> When we get an unknown ATAPI comand, try it even if it is not listed,
> in all likelyhood just passing it through will work.

This fix allows for burning CDs/DVDs on USB drives which would be nice
for 6.2...

Original work by:	phk
Requested by:		phk
Reviewed by:		iedowse
2006-12-10 19:47:31 +00:00
cvs2svn 9ba0764b73 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-12-10 07:09:59 +00:00
David Xu 921a7fcc49 MFC: return EINVAL if thread was detached. 2006-12-10 02:01:51 +00:00
Erwin Lansing eef3ff6b4a MFC rev. 1.419 + 1.420
- Add israeli mirror IPv4 and IPv6 [1]
  - Add an IPv6 main site now both ISC and TDC have IPv6

  Submitted by:   Rostislav Krasny <[email protected]> [1]
  Reviewed by:    simon
2006-12-09 15:45:53 +00:00
Gabor Kovesdan 93ddea49d1 MFC rev1.189: Add several new committers' birthdates
Approved by:	erwin (mentor)
2006-12-09 15:36:16 +00:00
Xin LI 3f114dd061 MFen 1.73.2.35 -> 1.73.2.36 2006-12-08 18:27:57 +00:00
Hiroki Sato 9d5fc5808e MFC: Disable IPv6 configuration for interfaces in pccard_ether_start().
After a change of devd.conf, devd(8) handles NIC attach/detach event
 by using /etc/pccard_ether with the interface name as the argument.
 This model does not work properly with IPv6 configuration because the
 implementation of IPv6 stateless auto-configuration in the FreeBSD
 rc.d scripts depends on whether there are any explicit configurations
 for interfaces or not.  It works this way: if no manual configuration,
 it will perform auto-configuration, but otherwise no
 auto-configuration will be performed.  So, this behavior can only be
 determined by all of the interfaces on a system, not a single one.
 For this reason, the network6_interface_setup() function called from
 the pccard_ether_start() does not work with a single interface name.
 And what is worse, this combination of devd.conf and
 pccard_ether_start() caused a bad side-effect that when
 ipv6_enable=YES, all of interfaces marked as DOWN would be UP
 unconditionally (and router solicitation was sent) just after devd(8)
 was invoked.  This should be fixed in a more sophisticated way.
2006-12-08 15:52:25 +00:00
Hiroki Sato f76377985f MFC:
Add a link-local address to the lo0 even when ipv6_enable="NO".

 A kernel with INET6 always has ::1 on lo0, so in the case of
 ipv6_enable="NO" the lo0 can have ::1 with no link-local address.
 This is a violation of the IPv6 specification.  As a workaround
 for this situation, fe80::1 is added in rc.d/auto_linklocal when
 lo0 has no link-local address.
2006-12-08 06:40:34 +00:00
John Baldwin d316bb8c34 MFC: Ignore breakpoint instructions in vm86 mode. 2006-12-07 22:26:51 +00:00
John Baldwin 90e7d136d2 MFC: Fix an off by one error in struct nve_tx_desc's frags[] array. 2006-12-07 22:26:18 +00:00
John Baldwin a99434a764 MFC: Handle an end of ULONG_MAX properly in rman_manage_region(). 2006-12-07 22:25:50 +00:00
Bruce A. Mah 26bd815c53 New errata: SA-06:25.kmem. 2006-12-06 20:55:27 +00:00
Maxim Sobolev 6e2e0d4821 MFC all relevant changes since beginning of 2006:
- Correct spelling of 3DNow!;
- Add two new CPUID bits for AMD CPUs, i. e., SVM and extended APIC register;
- Add another Intel CPU feature flag, xTPR (Send Task Priority Messages);
- Remove bogus white-space diff to current.
2006-12-06 20:12:13 +00:00
Shteryana Shopova 3866e57c36 MFC: rev. 1.90 if_bridge.c
Fix SIOCGDRVSPEC/BRDGGIFSSTP ioctl: make it copyin() the user
provided buffer length before trying to use it.

Approved by:    bz (mentor)
2006-12-06 20:03:16 +00:00
Bruce A. Mah 4308757296 MFC: SA-06:25.kmem. 2006-12-06 19:55:31 +00:00
Wilko Bulte 751573b551 MFC: document that NCQ is not yet supported.
PR: kern/106343
2006-12-06 19:05:12 +00:00
Maxim Konovalov 9df8cfc543 MFC revs. 1.8, 1.9: Xr netconfig(5). 2006-12-06 13:44:46 +00:00
Colin Percival d29550e356 Correct a signedness bug which allowed members of the operator
group to read kernel memory.

Security:	FreeBSD-SA-06:25.kmem
2006-12-06 09:13:51 +00:00
Mohan Srinivasan 858c524b84 MFC :
Fix to readdir+ reply handling. When inserting an entry into the namecache,
initialize the nfsnode's ctime. Otherwise a subsequent lookup purges the
just entered namecache entry.
Approved by: re
2006-12-05 18:41:35 +00:00
Ruslan Ermilov 9f5999e2a7 Oops, alpha is still alive on RELENG_6. 2006-12-05 13:56:46 +00:00
Ruslan Ermilov 578e880938 MFC: Support cross-building by just specifying TARGET.
Requested by:	sam
2006-12-04 18:44:07 +00:00
Marius Strobl b49f5efbc8 MFC: rp.c 1.69, 1.71, 1.72; rp_isa.c 1.8; rp_pci.c 1.12; rpreg.h 1.8;
rpvar.h 1.9, 1.10

- We know it is called rpclose() so call it directly.
- Fix -Wundef from compiling the amd64 LINT.
- Make rp(4) 64-bit- and endian-clean as well as work on strict alignment
  archs.
- Instead of bus_space_{read,write}*(rman_get_bustag(), rman_get_bushandle())
  use bus_{read,write}*(). Unlike in 7.0-CURRENT, this has no other benefit
  than diff reduction with HEAD.
2006-12-04 12:26:52 +00:00
Ruslan Ermilov 8f9cefcaef MFC: 1.15: Add missing `;;' in the example shell code snippet.
PR:		i386/106113
2006-12-04 11:11:59 +00:00
Pawel Jakub Dawidek 314d89547b MFC: sys/kern/vfs_subr.c 1.682
Add 'show vnode <addr>' DDB command.

Requested by:	kib
2006-12-04 08:45:52 +00:00
Max Laier 8111239aa1 MFC:
ALTQify ep(4).

  Tested and Requested by:	Andy Brook
2006-12-04 00:51:14 +00:00
Luigi Rizzo 06bcedf011 MFC 1.33:
use standard mode instead of 500 for /sbin/init
2006-12-03 19:01:42 +00:00
Max Laier 17f0da2daa MFC: rev. 1.8 from OpenBSD, rev. 1.91:
fix servicecurve check; no point in checking the same sc three times, it
  was obviously intended to check all three. has been wrong since the
  beginning, 4 years... noticed by Earl Lapus <[email protected]>, Vasil
  Dimov <[email protected]> mailed me then, ok mcbride
2006-12-03 18:32:51 +00:00
Christian Brueffer 88cbde4e13 MFC: rev. 1.27
Remove pre-5.3 compatibility ifdefs.

Approved by:	rwatson (mentor)
2006-12-03 10:56:34 +00:00
Ruslan Ermilov 325f3fbaa8 MFC: 1.28: Fix the hardware VLAN tagging.
PR:		kern/105054
2006-12-03 07:15:49 +00:00
Christian Brueffer b57499f88e MFC:
bce(4) does not work correctly in polling(4) mode for now.
2006-12-02 09:05:22 +00:00
Pawel Jakub Dawidek a9274417a4 MFC: sys/nfsserver/nfs_serv.c 1.167
Protect nfsm_srvpathsiz() call with the nfsd_mtx lock.

Reviewed by:	mohans
Requested by:	kib
2006-12-02 09:00:09 +00:00
Pawel Jakub Dawidek 34bcf95d53 MFC: sys/geom/eli/g_eli.c 1.32,1.33
Skip disabled CPU, because after we sched_bind() to a disabled CPU,
we won't be able to exit from the thread.

Function g_eli_cpu_is_disabled() stoled from kern_pmc.c.

PR:		104669
Reported by:	Nikolay Mirin <[email protected]>
2006-12-02 08:49:40 +00:00
Maksim Yevmenkin 7ae00f3fc7 MFC:
Do not mark Bluetooth HID device as "potential keyboard" if its descriptor
has items with CONSUMER page. For now only check for items with KEYBOARD page.
This should prevent bthidd(8) from allocating vkbd(4) keyboard for Microsoft
Bluetooth Explorer mouse.

Approved by:	re (bmah)
2006-12-01 23:33:22 +00:00
cvs2svn 95714ee293 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-12-01 17:13:57 +00:00
John Baldwin c3c3c2daed MFC: Trim some x86 interrupt-related noise from bootverbose. 2006-12-01 17:13:56 +00:00
John Baldwin 6a25711191 MFC: Add suspend/resume support. 2006-12-01 17:02:35 +00:00
John Baldwin f86cdfc6de MFC: Look for capabilities in PCI-PCI bidges using the same CAP PTR
register as for type 0 devices.
2006-12-01 16:55:14 +00:00
John Baldwin 0eba7d025b MFC: Don't try to print a NULL string during boot. 2006-12-01 16:11:05 +00:00
Yoshihiro Takahashi 11fc5555ce MFC: revision 1.153
Increase USR_MIN_SIZE to 160 because it requires more disk space.
2006-12-01 15:54:34 +00:00
Ruslan Ermilov 044960a841 MFC: Revert signedness type changes to "struct vmtotal" to keep
overflows easier to detect.  As a bonus, fix printing of other
"struct vmtotal" members, t_rq, t_dw, t_pw, and t_sw.
2006-12-01 12:49:08 +00:00
David Xu a6cf851f12 MFC: Store fault address into POSIX siginfo.
PR: amd64/106109
2006-12-01 08:34:38 +00:00
Yaroslav Tykhiy a5af655c6b MFC rev 1.90:
Note that not all architectures use sendfile(2) buffers;
  refer to the respective manpage for details.
2006-12-01 08:06:42 +00:00
Yaroslav Tykhiy 7a7ddde74f MFC rev. 1.31:
Note that, thanks to the work by Alan Cox et al, some arch'es
  don't need sendfile() buffers any more.
2006-12-01 07:58:23 +00:00
Christian Brueffer ce81e5989c MFC: rev. 1.25
Overhaul this manpage somewhat:

- Move mentionings of required drivers to the SYNOPSIS where they belong
- Remove cruft (XiG, sheesh) from the EXAMPLES section and re-arrange things to make
  somewhat more sense
- Fix an Xref to manpage from ports to mention the corresponsing port
- Remove commented out HISTORY section header
2006-11-30 05:49:54 +00:00
Ruslan Ermilov c9d7ed1f5d MFC: 1.72: Prevent cached rtentry from being removed, add rtentry
locking to nd6_output().

PR:		kern/93910, kern/105437
2006-11-29 14:00:29 +00:00
Yaroslav Tykhiy 82906ab49e MFC rev 1.3: Remove the accidental duplicate
of the real contents of this file.
2006-11-29 11:20:10 +00:00
Yaroslav Tykhiy 7b0b633e4b MFC rev 1.4: Properly stop at the gigabyte scale when the number
to auto-scale is 1TB or greater.

PR:		bin/99731
2006-11-29 11:13:22 +00:00
Maxim Konovalov 4f2a92c80c MFC rev. 1.16: check that -w width is not above maximum. 2006-11-29 07:51:29 +00:00
Joseph Koshy 19e28fc005 MFC {r1.60 boot_i386.8, r1.24 reboot.8 }: Cross-reference nextboot(8). 2006-11-29 05:29:13 +00:00
Maxim Sobolev a7e98015ba Another attempt to MFC changes that prevent any accounting for the disabled
HTT cores. This time make code conditional on !defined(SCHED_ULE), since
SCHED_ULE is generally b0rken due to the fact that it doesn't honour
hlt_cpus_mask when scheduling processes like all other schedulers in the
system do.

I am not sure if such SCHED_ULE behaviour should be considered as a
security flaw, basically it means that anybody running SCHED_ULE kernel
on HTT system still affected by FreeBSD-SA-05:09.htt.
2006-11-29 01:19:23 +00:00
Marcel Moolenaar 5e0f60289e Partial MFC: Remove 16-bit wide I/O. It breaks when the register shift
is non-null and may not work on all chipsets.

PR: i386/105616
Tested by: Helge Oldach
2006-11-28 22:03:37 +00:00
Robert Watson 44a9077d55 Reformulate ip_ctloutput() and tcp_ctloutput() to work around the fact
that so_pcb can be invalidated at any time due to an untimely reset.
Move the body of ip_ctloutput() to ip_ctloutput_pcbinfo(), which
accepts a pcbinfo argument, and wrap it with ip_ctloutput(), which
passes a NULL.  Modify tcp_ctloutput() to directly invoke
ip_ctloutput_pcbinfo() and pass tcbinfo.  Hold the pcbinfo lock when
dereferencing so_pcb and acquiring the inpcb lock in order to prevent
the inpcb from being freed; the pcbinfo lock is then immediately
dropped.  This is required as TCP may free the inppcb and invalidate
so_pcb due to a reset at any time in the RELENG_6 network stack, which
otherwise leads to a panic.

This panic might be frequently seen on highly loaded IRC and Samba
servers, which have long-lasting TCP connections, query socket options
frequently, and see a significant number of reset connections.

This change has been merged directly to RELENG_6 as the problem does
not exist in HEAD, where the invariants for so_pcb are much stronger;
the architectural changes in HEAD avoid the need to acquire a global
lock in the socket option path.  This change will be merged to
RELENG_6_2.

PR:		102412, 104765
Reviewed by:	Diane Bruce <db at db.net>
Tested by:	Daniel Austin <daniel at kewlio dot net>,
		Kai Gallasch <gallasch at free dot de>
2006-11-28 21:41:12 +00:00
Ken Smith 5129320ad3 MFC v1.240:
revision 1.240
date: 2006/11/23 00:57:10;  author: kensmith;  state: Exp;  lines: +1 -1
Oops - what people refer to as linux_base-fc4 calls itself linux_base-fc
and that's what pkg_add needs.
2006-11-28 17:08:43 +00:00
Scott Long 6eafe0f66e Merge rev 1.10 of if_bcereg.h and 1.20-1.21 of if_bce.c These fix VLAN tag
handling and close a race in the TX path that would lead to lost packets under
heavy load.

Approved by: re
2006-11-28 17:05:36 +00:00
Colin Percival 53c14325dd Partial MFC of revision 1.4:
Fix a bug which caused a spurious "Fetching 2 metadata files... failed."
error message the first time FreeBSD Update is run on a release which
doesn't need any updates.
2006-11-27 21:26:20 +00:00
Ruslan Ermilov 680ee79b46 MFC: a.out -> ELF in comments. 2006-11-27 14:53:53 +00:00
Ruslan Ermilov d691016c79 MFC: 1.80: Restore support for directly loaded kernels.
1.81: Restore support for -c and -d.

PR:		i386/96430, i386/104709
2006-11-27 14:49:38 +00:00
Ruslan Ermilov 3cddd6b4f6 MFC: 1.449: Fix endless visual beeping.
PR:		kern/68016
2006-11-27 14:37:09 +00:00
Nick Hibma 67477c4ee0 MFC 1.22 and 1.23:
Shorten the kernel config file on the make command line to make things
like
	NANO_KERNEL=/path/to/kernel.config
work, so multiple images can share the same kernel config file.
2006-11-27 12:17:32 +00:00
Diomidis Spinellis 0afe9ff401 MFC 1.26-1.34 of jot.c and 1.18-1.23 of jot.1.
These revisions address bin/54878, docs/54879, bin/68981,
and improve the code's readability.
2006-11-27 09:02:01 +00:00
Marius Strobl cd3b549b7c Add le(4). 2006-11-27 00:33:15 +00:00
Marius Strobl 83aeea05a7 MFC: 1.457, 1.458
- Kill more references to lnc(4).
- Add le(4).

Tested by:	Gheorghe Ardelean
2006-11-26 22:28:10 +00:00
Christian Brueffer 248cf7812d MFC:
Grr, fix typo introduced in the previous commit.
2006-11-25 12:13:00 +00:00
Christian Brueffer b15cb1199f MFC:
Use our standard section 4 SYNOPSIS.
2006-11-25 12:03:55 +00:00
Maxim Konovalov c3d3f79e23 Finish MFC (rev. 1.17) "optional" keyword.
Spotted by:	Ulrich Spoerlein
2006-11-24 19:58:31 +00:00
Konstantin Belousov d104b7db47 MFC rev. 1.15:
Wake up PIOCWAIT handler on the process exit in addition to the stop events.
2006-11-24 09:24:11 +00:00
SUZUKI Shinsuke f5a3113dc2 MFC Rev 1.35
implemented more validation checks about incoming responses per RFC2080,
 and one additional heuristic check for safer operation.

Obtained from: KAME
2006-11-23 23:15:19 +00:00
Ruslan Ermilov 677640d484 MFC: Make members of "struct vmmeter" unsigned; fix overflow bugs when
printing them in kilobytes in sysctl(8), systat(1), and vmstat(8).
Fix sysctl(8) reporting of the virtual memory's total; it's accounted
in pages too.
2006-11-23 11:57:12 +00:00
Ruslan Ermilov 3d5d9d5282 MFC: 1.90: Skip unreferenced objects when counting vm totals.
1.91: Remove a redundant pointer-type variable.
2006-11-23 11:19:31 +00:00
Bruce Evans 17b655ffd3 MFC (1.270: don't do null Setattr RPCs for VA_MARK_ATIME). 2006-11-23 09:50:18 +00:00
Christian Brueffer 7c4d69c18a MFC: rev. 1.61
Note uhidev.4 removal.

Approved by:	rwatson (mentor) (except trivial adjustment of the date)
2006-11-23 09:28:29 +00:00
Christian Brueffer d212bd9c96 MFC:
Remove uhidev.4 and references to it, the corresponding code was never
imported from NetBSD.
2006-11-23 09:21:24 +00:00
Xin LI a166c84a19 MFen 1.73.2.34 -> 1.73.2.35 2006-11-23 05:54:45 +00:00
Mohan Srinivasan 7726f1d598 Fix a race in soclose() where connections could be queued to the
listening socket after the pass that cleans those queues. This
results in these connections being orphaned (and leaked). The fix
is to clean up the so queues after detaching the socket from the
protocol. Thanks to ups and jhb for discussions and a thorough code
review.
Approved by: re
2006-11-22 22:21:57 +00:00
Ken Smith 751a61459c Go back to building documentation for all the languages now that we have
a separate disc just for docs.
2006-11-22 20:47:58 +00:00
Dmitry Morozovsky d3fa61b16d MFC:
revision 1.4
  date: 2006/01/14 20:45:02;  author: ru;  state: Exp;  lines: +2 -0
  Ignore spurious '\0' first character read on a serial console.
  This allows me to "boot -a" over a serial console.  Tested on
  several machines.

Approved by:	ru
2006-11-22 17:18:05 +00:00
Bruce A. Mah abd8c2e89b Update state of 6.1-RELEASE sysinstall(8) CD-ROM disk-swapping bug
(now fixed).
2006-11-22 17:02:26 +00:00
Pav Lucistnik 37867b8585 MFC 1.8: Update URL of Intel documentation 2006-11-22 16:39:21 +00:00
Ken Smith 2d6850fb35 MFC v1.108:
> revision 1.108
> date: 2006/11/19 08:12:54;  author: kensmith;  state: Exp;  lines: +15 -19
> Move the check for which disc volume we have/want to after we install
> the package dependencies.  Installation of the dependencies may leave
> us on the wrong disc volume.
2006-11-22 13:44:27 +00:00
Stefan Farfeleder 84c1e614ce MFC: Fix expanding of quoted positional parameters in case patterns. 2006-11-22 00:28:04 +00:00
Stefan Farfeleder 4349759048 MFC: Report invalid parameter expansions only when they are executed. 2006-11-22 00:26:06 +00:00
Stefan Farfeleder 7b42392978 MFC: Add the -p option to the jobs builtin. 2006-11-22 00:23:09 +00:00
Stefan Farfeleder afbe95ff48 MFC: Don't crash on "<cmd> | { }". 2006-11-22 00:17:21 +00:00
Stefan Farfeleder f4f4d40cd1 MFC: Implement the PS4 variable. 2006-11-22 00:11:11 +00:00
Christian Brueffer cc46768b01 MFC: rev. 1.7
Use a standard section 4 SYNOPSIS
2006-11-21 20:26:03 +00:00
Ken Smith 28d4d74234 MFC v1.918:
> revision 1.918
> date: 2006/11/16 23:09:35;  author: kensmith;  state: Exp;  lines: +13 -2
> Move the documentation to its own separate disc to make room for more
> packages on disc2.  This will also let users decide if they want to
> have a CD of the docs at all - unless they're disconnected from the
> net they will probably find the Web site more useful.
>
> Reviewed by:    ru
2006-11-21 17:46:17 +00:00
Ken Smith 3805edc593 MFC v1.239:
> revision 1.239
> date: 2006/11/16 19:09:41;  author: kensmith;  state: Exp;  lines: +1 -1
> Switch to linux_base-fc4 for the Linux emulation package.
2006-11-21 17:40:52 +00:00
Ken Smith 36fc0ab71d MFC v1.16 and v1.14:
> revision 1.16
> date: 2006/11/17 05:10:41;  author: kensmith;  state: Exp;  lines: +1 -1
> Shift to vim-lite package because vim package doesn't build at the moment.
>
> revision 1.14
> date: 2006/11/16 19:08:27;  author: kensmith;  state: Exp;  lines: +1 -1
> Switch to emulators/linux_base-fc4 since that's the new default
> Linux emulator.
2006-11-21 17:26:56 +00:00
Dag-Erling Smørgrav 9c8a3721eb MFC: (1.78) preserve ownership and permissions when replacing an existing file
PR:		bin/104702
2006-11-21 09:39:12 +00:00
John Baldwin 3363cd5902 MFC: Fix various issues such as wrong decoding for half of the 0x0f
prefixed instructions, 64-bit immediates in mov, %rip relative addressing,
and 32-bit addresses.
2006-11-20 22:48:19 +00:00
John Baldwin b3c82fc837 MFC: Trim the bootverbose output somewhat by making ACPI pci link output
more compact and stop dumping the $PIR table.
2006-11-20 22:47:00 +00:00
John Baldwin 99bb3bc012 MFC: Define time_t in this header and various cleanups. 2006-11-20 22:39:41 +00:00
Tom Rhodes 6d1c4d0481 MFC Rev 1.18:
Add needed hyphens, note the KTRACE kernel option, bump doc date.

PR:		85186
Submitted by:	garys
2006-11-20 17:29:12 +00:00
Rink Springer 106f5d167a MFC: Added yet another extra fxp(4) PCI ID.
PR:             kern/104896
Submitted by:   Yoshihiko Sarumaru <[email protected]>
Reviewed by:    imp (mentor), jfv
Approved by:    re (bmah), imp (mentor)
2006-11-20 16:22:32 +00:00
Maxim Konovalov 030da4bcc5 Actually MFC rev. 1.151: s/args->f_id.addr_type == 6/IS_IP6_FLOW_ID()/. 2006-11-20 15:19:10 +00:00
Maxim Konovalov e75e35742d MFC revs. 1.149 - 1.151: extend ipfw(4) message 'drop session, too many
entries' by src:port and dst:port pairs.  Use IS_IP6_FLOW_ID() instead
of args->f_id.addr_type == 6.
2006-11-20 15:13:09 +00:00
Warner Losh c345396bb1 MFC: AT91RM9200 (and other processors from Atmel) SD/MMC bridge. This
device supports SD 1.0 and MMC 3.2 cards (and maybe others).
2006-11-20 07:23:29 +00:00
Warner Losh 158dcc3d77 MFC: mmc/sd support 2006-11-20 07:18:24 +00:00
Warner Losh 5d9887aadf MFC: Start merging the sd/mmc support. 2006-11-20 07:16:28 +00:00
Ruslan Ermilov dd19da3af8 MFC: 1.41: Document that visual bell is the global property, while
other bell types can be programmed individually for each vty.
2006-11-19 12:37:30 +00:00
Ruslan Ermilov d22edf451e MFC: Replace magic numbers for console bell types with defines. 2006-11-19 12:36:38 +00:00
Ruslan Ermilov ba2301b507 MFC:
Remove the -C option as it does more harm than good.  To be fully
compatible, it would have to (at least):

- support the "compat-compat" -T option,
- *not* support the -l, -O, and -v options,
- default to soft updates being disabled.

Worse, the compatibility mode made it impossible to mount_mfs(8)
a file system from fstab(5) with soft updates disabled (-S).  [1]

Now, the only difference when called as "mount_mfs" or "mfs" (as
opposed to "mdmfs") is that the file mode of the mount point is
set by default to 01777.  All options available to mdmfs(8) are
also available to mount_mfs(8); the -C option is still recognized
but ignored for backward compatibility.

PR:		bin/98860 [1]
2006-11-19 12:30:31 +00:00
Bjoern A. Zeeb 4a58b0839f Fix PMTU discovery in IPsec case by using an MTU hint in ICMP unreachable
fragmentation needed other then 0 when we cannot get a security policy.
This changes the code path to match what we have had in HEAD since
rev. 1.312.

PR:		kern/91412
Submitted by:	Tom Judge <tom tomjudge.com>
2006-11-19 10:07:08 +00:00
Hajimu UMEMOTO 223472fea9 MFC: Teach an IPV6CP to pppd(8).
The eui64.[ch] and ipv6cp.[ch] were taken from ppp-2.3.11.
However, our stock pppd(8) doesn't provide option_t nor some
utility functions.  So, I made some hacks to adjust to our
stock pppd(8).
The sys_bsd.c part was taken from NetBSD with some
modifications to adjust to our stock pppd(8).

	usr.sbin/pppd/Makefile:		1.31
	usr.sbin/pppd/eui64.c:		1.2
	usr.sbin/pppd/eui64.h:		1.1
	usr.sbin/pppd/ipv6cp.c:		1.2
	usr.sbin/pppd/ipv6cp.h:		1.2
	usr.sbin/pppd/main.c:		1.22
	usr.sbin/pppd/options.c:	1.25
	usr.sbin/pppd/pathnames.h:	1.11
	usr.sbin/pppd/pppd.8:		1.27
	usr.sbin/pppd/pppd.h:		1.14
	usr.sbin/pppd/sys-bsd.c:	1.21
2006-11-19 07:27:42 +00:00
Hajimu UMEMOTO 639024ba3b MFC: Teach an IPv6 to ppp(4).
sys/modules/if_ppp/Makefile:	1.37
	sys/net/if_ppp.c:		1.118
	sys/net/if_pppvar.h:		1.25
2006-11-19 07:17:22 +00:00
Colin Percival f6169f37da MFC: Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD.
Accuracy confirmed by:	grog, by inspection of CSRG CDs
2006-11-19 00:43:39 +00:00
Maxim Konovalov f9f83d01f0 MFC revs. 1.107 - 1.109: OpenBSD 4.0, NetBSD 3.0.2, NetBSD 3.1, cosmetic. 2006-11-18 21:55:33 +00:00
Andrey A. Chernov 221dd26cd7 MFC: 1.11 (automatically re-stir) 2006-11-18 21:35:13 +00:00
Andrey A. Chernov e187a1d737 MFC: 1.14-1.17 (position bugfixes) 2006-11-18 21:16:55 +00:00
Konstantin Belousov f156fd465d On RELENG_6, vn_open() will drop Giant aquired for calls into
non-MP-safe filesystem if fdx == -1, assuming the in-kernel callers are
not MP-safe. On HEAD, vn_open() after rev. 1.240 of sys/kern/vfs_vnops.c
would keep the Giant locked when the MPSAFE flag is given.

The difference in the API caused the auditctl() syscall code to try to
unlock non-locked Giant for non-MP-safe filesystems, for instance, UFS
when QUOTA is compiled in.

This is direct commit to RELENG_6 to accomodate for RELENG_6' vn_open().

Reported by:	Steve Wills (steve at stevenwills com)
Reviewed by:	rwatson
Approved by:	re (bmah)
X-MFC to RELENG_6_2 after:	3 days
2006-11-18 20:59:50 +00:00
cvs2svn e729e23abe This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-11-18 03:53:17 +00:00
David E. O'Brien 8fe69c690a Fix ARM build:
1. NO_FORTH needs to be defined
2. bootpd.c rev 1.24: make tv_sec a time_t
3. authpf.c rev 1.7: handle timeval.tv_sec change from long to time_t

Approved by:	re(BMAH)
2006-11-17 00:32:53 +00:00
cvs2svn 0cdfbdddbd This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-10-13 14:27:52 +00:00
cvs2svn fa0a183de0 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-08-17 01:20:37 +00:00
cvs2svn c6762f5f62 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-08-15 12:41:11 +00:00
cvs2svn 109a275834 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-06-23 10:51:37 +00:00
cvs2svn 5941c0383e This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-04-10 20:12:20 +00:00
cvs2svn ffb96c759a This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-03-10 19:37:37 +00:00
cvs2svn 60e943ac64 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-02-08 05:58:18 +00:00
cvs2svn aba3d67b94 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-01-31 15:44:52 +00:00
cvs2svn 8701469d4e This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2006-01-25 08:13:47 +00:00
cvs2svn c42ecb824c This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2005-09-26 19:35:34 +00:00
cvs2svn 84d5a41287 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2005-08-25 05:01:25 +00:00
cvs2svn 02a4541cca This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2005-08-19 18:38:56 +00:00
cvs2svn aa52f66151 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2005-07-11 04:15:01 +00:00
cvs2svn d985c83698 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2005-07-11 04:15:00 +00:00
cvs2svn 4605e0666a This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. 2005-07-11 04:14:59 +00:00
4004 changed files with 583200 additions and 384243 deletions

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
The compilation of software known as FreeBSD is distributed under the
following terms:
Copyright (C) 1992-2006 The FreeBSD Project. All rights reserved.
Copyright (C) 1992-2008 The FreeBSD Project. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
+17 -21
View File
@@ -55,8 +55,8 @@
#
# See src/UPDATING `COMMON ITEMS' for more complete information.
#
# If TARGET_ARCH=arch (e.g. ia64, sparc64, ...) is specified you can
# cross build world for other architectures using the buildworld target,
# If TARGET=machine (e.g. ia64, sparc64, ...) is specified you can
# cross build world for other machine types using the buildworld target,
# and once the world is built you can cross build a kernel using the
# buildkernel target.
#
@@ -265,36 +265,32 @@ universe_prologue:
@echo "--------------------------------------------------------------"
@echo ">>> make universe started on ${STARTTIME}"
@echo "--------------------------------------------------------------"
.for target in i386 i386:pc98 sparc64 alpha ia64 amd64
.for arch in ${target:C/:.*$//}
.for mach in ${target:C/^.*://}
KERNCONFS!= cd ${.CURDIR}/sys/${mach}/conf && \
.for target in alpha amd64 i386 ia64 pc98 powerpc sparc64
KERNCONFS!= cd ${.CURDIR}/sys/${target}/conf && \
find [A-Z]*[A-Z] -type f -maxdepth 0 \
! -name DEFAULTS ! -name LINT
KERNCONFS:= ${KERNCONFS:S/^NOTES$/LINT/}
universe: universe_${mach}
.ORDER: universe_prologue universe_${mach} universe_epilogue
universe_${mach}:
@echo ">> ${mach} started on `LC_ALL=C date`"
universe: universe_${target}
.ORDER: universe_prologue universe_${target} universe_epilogue
universe_${target}:
@echo ">> ${target} started on `LC_ALL=C date`"
-cd ${.CURDIR} && ${MAKE} ${JFLAG} buildworld \
TARGET_ARCH=${arch} TARGET=${mach} \
TARGET=${target} \
__MAKE_CONF=/dev/null \
> _.${mach}.buildworld 2>&1
@echo ">> ${mach} buildworld completed on `LC_ALL=C date`"
.if exists(${.CURDIR}/sys/${mach}/conf/NOTES)
-cd ${.CURDIR}/sys/${mach}/conf && ${MAKE} LINT \
> ${.CURDIR}/_.${mach}.makeLINT 2>&1
> _.${target}.buildworld 2>&1
@echo ">> ${target} buildworld completed on `LC_ALL=C date`"
.if exists(${.CURDIR}/sys/${target}/conf/NOTES)
-cd ${.CURDIR}/sys/${target}/conf && ${MAKE} LINT \
> ${.CURDIR}/_.${target}.makeLINT 2>&1
.endif
.for kernel in ${KERNCONFS}
-cd ${.CURDIR} && ${MAKE} ${JFLAG} buildkernel \
TARGET_ARCH=${arch} TARGET=${mach} \
TARGET=${target} \
KERNCONF=${kernel} \
__MAKE_CONF=/dev/null \
> _.${mach}.${kernel} 2>&1
.endfor
@echo ">> ${mach} completed on `LC_ALL=C date`"
.endfor
> _.${target}.${kernel} 2>&1
.endfor
@echo ">> ${target} completed on `LC_ALL=C date`"
.endfor
universe: universe_epilogue
universe_epilogue:
+66 -43
View File
@@ -22,7 +22,7 @@
# -DNO_PORTSUPDATE do not update ports in ${MAKE} update
# -DNO_DOCUPDATE do not update doc in ${MAKE} update
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
# TARGET_ARCH="arch" to crossbuild world to a different arch
# TARGET="machine" to crossbuild world for a different machine type
#
# The intended user-driven targets are:
@@ -87,7 +87,7 @@ CLEANDIR= cleandir
.endif
CVS?= cvs
CVSFLAGS?= -r RELENG_6 -P -d -I!
CVSFLAGS?= -r RELENG_6_3 -P -d -I!
SUP?= /usr/bin/csup
SUPFLAGS?= -g -L 2
.if defined(SUPHOST)
@@ -103,14 +103,36 @@ OSRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
OSRELDATE= 0
.endif
.endif
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
# Guess machine architecture from machine type, and vice versa.
.if !defined(TARGET_ARCH) && defined(TARGET)
TARGET_ARCH= ${TARGET:S/pc98/i386/}
.elif !defined(TARGET) && defined(TARGET_ARCH) && \
${TARGET_ARCH} != ${MACHINE_ARCH}
TARGET= ${TARGET_ARCH}
.endif
# Otherwise, default to current machine type and architecture.
TARGET?= ${MACHINE}
TARGET_ARCH?= ${MACHINE_ARCH}
KNOWN_ARCHES?= alpha amd64 arm i386 i386/pc98 ia64 powerpc sparc64
.if ${TARGET} == ${TARGET_ARCH}
_t= ${TARGET}
.else
_t= ${TARGET_ARCH}/${TARGET}
.endif
.for _t in ${_t}
.if empty(KNOWN_ARCHES:M${_t})
.error Unknown target ${TARGET_ARCH}:${TARGET}.
.endif
.endfor
.if ${TARGET} == ${MACHINE}
TARGET_CPUTYPE?=${CPUTYPE}
.else
TARGET?= ${TARGET_ARCH}
TARGET_CPUTYPE?=
.endif
.if !empty(TARGET_CPUTYPE)
_TARGET_CPUTYPE=${TARGET_CPUTYPE}
.else
@@ -122,7 +144,7 @@ _CPUTYPE!= MAKEFLAGS= CPUTYPE=${_TARGET_CPUTYPE} ${MAKE} \
.error CPUTYPE global should be set with ?=.
.endif
.if make(buildworld)
BUILD_ARCH!= sysctl -n hw.machine_arch
BUILD_ARCH!= uname -p
.if ${MACHINE_ARCH} != ${BUILD_ARCH}
.error To cross-build, set TARGET_ARCH.
.endif
@@ -192,11 +214,14 @@ BMAKE= MAKEOBJDIRPREFIX=${WORLDTMP} \
# build-tools stage
TMAKE= MAKEOBJDIRPREFIX=${OBJTREE} \
${BMAKEENV} ${MAKE} -f Makefile.inc1 \
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
DESTDIR= \
BOOTSTRAPPING=${OSRELDATE} -DNO_LINT -DNO_CPU_CFLAGS -DNO_WARNS
# cross-tools stage
XMAKE= TOOLS_PREFIX=${WORLDTMP} ${BMAKE} -DNO_FORTRAN -DNO_GDB
XMAKE= TOOLS_PREFIX=${WORLDTMP} ${BMAKE} \
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
-DNO_FORTRAN -DNO_GDB
# world stage
WMAKEENV= ${CROSSENV} \
@@ -209,35 +234,35 @@ WMAKE= ${WMAKEENV} ${MAKE} -f Makefile.inc1 DESTDIR=${WORLDTMP}
# 32 bit world
LIB32TMP= ${OBJTREE}${.CURDIR}/lib32
LIB32PREFLAGS= -m32 -march=athlon-xp -msse2 -mfancy-math-387 -DCOMPAT_32BIT
LIB32POSTFLAGS= -I${LIB32TMP}/usr/include \
.if empty(TARGET_CPUTYPE)
LIB32CPUTYPE= k8
.else
LIB32CPUTYPE= ${TARGET_CPUTYPE}
.endif
LIB32FLAGS= -m32 -march=${LIB32CPUTYPE} -mfancy-math-387 -DCOMPAT_32BIT \
-iprefix ${LIB32TMP}/usr/ \
-L${LIB32TMP}/usr/lib32 \
-B${LIB32TMP}/usr/lib32
LIB32CC= ${LIB32PREFLAGS} \
${LIB32POSTFLAGS}
LIB32CXX= ${LIB32PREFLAGS} -I${LIB32TMP}/usr/include/c++/3.4 \
${LIB32POSTFLAGS}
LIB32OBJC= ${LIB32PREFLAGS} -I${LIB32TMP}/usr/include/objc \
${LIB32POSTFLAGS}
# Yes, the flags are redundant.
LIB32MAKEENV= MAKEOBJDIRPREFIX=${OBJTREE}/lib32 \
LIB32WMAKEENV= MAKEOBJDIRPREFIX=${OBJTREE}/lib32 \
_SHLIBDIRPREFIX=${LIB32TMP} \
MACHINE=i386 \
MACHINE_ARCH=i386 \
INSTALL="sh ${.CURDIR}/tools/install.sh" \
PATH=${TMPPATH} \
CC="${CC} ${LIB32CC}" \
CXX="${CXX} ${LIB32CXX}" \
OBJC="${OBJC} ${LIB32OBJC}" \
CC="${CC} ${LIB32FLAGS}" \
CXX="${CXX} ${LIB32FLAGS}" \
OBJC="${OBJC} ${LIB32FLAGS}" \
LD="${LD} -m elf_i386_fbsd -Y P,${LIB32TMP}/usr/lib32" \
AS="${AS} --32" \
LIBDIR=/usr/lib32 \
SHLIBDIR=/usr/lib32
LIB32MAKE= ${LIB32MAKEENV} ${MAKE} -DNO_CPU_CFLAGS -DCOMPAT_32BIT \
-DNO_BIND -DNO_MAN -DNO_NLS -DNO_INFO -DNO_HTML
LIB32IMAKE= ${LIB32MAKE:NINSTALL=*} -DNO_INCS
LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} -DNO_CPU_CFLAGS -DCOMPAT_32BIT \
-DNO_BIND -DNO_MAN -DNO_NLS -DNO_INFO -DNO_HTML \
DESTDIR=${LIB32TMP}
LIB32IMAKE= ${LIB32WMAKE:NINSTALL=*:NDESTDIR=*} -DNO_INCS
.endif
# install stage
@@ -336,7 +361,7 @@ _cleanobj:
@echo "--------------------------------------------------------------"
${_+_}cd ${.CURDIR}; ${WMAKE} ${CLEANDIR:S/^/par-/}
.if ${TARGET_ARCH} == "amd64"
rm -rf ${OBJTREE}/lib32
${_+_}cd ${.CURDIR}; ${LIB32WMAKE} -f Makefile.inc1 ${CLEANDIR:S/^/par-/}
.endif
.endif
_obj:
@@ -406,34 +431,28 @@ build32:
.endfor
.endif
.for _t in obj includes
cd ${.CURDIR}/include; \
${LIB32MAKE} DESTDIR=${LIB32TMP} ${_t}
cd ${.CURDIR}/lib; \
${LIB32MAKE} DESTDIR=${LIB32TMP} ${_t}
cd ${.CURDIR}/gnu/lib; \
${LIB32MAKE} DESTDIR=${LIB32TMP} ${_t}
cd ${.CURDIR}/include; ${LIB32WMAKE} ${_t}
cd ${.CURDIR}/lib; ${LIB32WMAKE} ${_t}
cd ${.CURDIR}/gnu/lib; ${LIB32WMAKE} ${_t}
.if !defined(NO_CRYPT)
cd ${.CURDIR}/secure/lib; \
${LIB32MAKE} DESTDIR=${LIB32TMP} ${_t}
cd ${.CURDIR}/secure/lib; ${LIB32WMAKE} ${_t}
.endif
.if !defined(NO_KERBEROS) && !defined(NO_CRYPT) && !defined(NO_OPENSSL)
cd ${.CURDIR}/kerberos5/lib; \
${LIB32MAKE} DESTDIR=${LIB32TMP} ${_t}
cd ${.CURDIR}/kerberos5/lib; ${LIB32WMAKE} ${_t}
.endif
.endfor
.for _dir in usr.sbin/pcvt/keycap usr.bin/lex/lib
cd ${.CURDIR}/${_dir}; \
${LIB32MAKE} DESTDIR=${LIB32TMP} obj
cd ${.CURDIR}/${_dir}; ${LIB32WMAKE} obj
.endfor
.for _dir in lib/libncurses lib/libmagic
.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic
cd ${.CURDIR}/${_dir}; \
MAKEOBJDIRPREFIX=${OBJTREE}/lib32 ${MAKE} DESTDIR= build-tools
.endfor
cd ${.CURDIR}; \
${LIB32MAKE} -f Makefile.inc1 DESTDIR=${LIB32TMP} libraries
${LIB32WMAKE} -f Makefile.inc1 libraries
.for _t in obj depend all
cd ${.CURDIR}/libexec/rtld-elf; \
PROG=ld-elf32.so.1 ${LIB32MAKE} DESTDIR=${LIB32TMP} ${_t}
PROG=ld-elf32.so.1 ${LIB32WMAKE} ${_t}
.endfor
distribute32 install32:
@@ -812,7 +831,7 @@ _gencat= usr.bin/gencat
_mklocale= usr.bin/mklocale
.endif
.if ${BOOTSTRAPPING} < 600106
.if ${BOOTSTRAPPING} < 602106
_gensnmptree= usr.sbin/bsnmpd/gensnmptree
.endif
@@ -875,7 +894,8 @@ build-tools:
bin/csh \
bin/sh \
${_rescue} \
lib/libncurses \
lib/ncurses/ncurses \
lib/ncurses/ncursesw \
${_share} \
${_aicasm} \
usr.bin/awk \
@@ -980,7 +1000,8 @@ _generic_libs+= kerberos5/lib
_prebuild_libs+= lib/libbz2 lib/libcom_err lib/libcrypt lib/libexpat \
lib/libkvm lib/libmd \
lib/libncurses lib/libnetgraph lib/libopie lib/libpam \
lib/ncurses/ncurses lib/ncurses/ncursesw \
lib/libnetgraph lib/libopie lib/libpam \
lib/libradius \
lib/libsbuf lib/libtacplus lib/libutil \
lib/libz lib/msun
@@ -1025,8 +1046,9 @@ _generic_libs+= usr.sbin/pcvt/keycap
.for _lib in ${_startup_libs} ${_prebuild_libs:Nlib/libpam} ${_generic_libs}
${_lib}__L: .PHONY
.if exists(${.CURDIR}/${_lib})
${_+_}@${ECHODIR} "===> ${_lib} (depend,all,install)"; \
${_+_}@${ECHODIR} "===> ${_lib} (obj,depend,all,install)"; \
cd ${.CURDIR}/${_lib}; \
${MAKE} DIRPRFX=${_lib}/ obj; \
${MAKE} DIRPRFX=${_lib}/ depend; \
${MAKE} DIRPRFX=${_lib}/ all; \
${MAKE} DIRPRFX=${_lib}/ install
@@ -1037,8 +1059,9 @@ ${_lib}__L: .PHONY
# static PAM library, and dynamic PAM library before dynamic PAM
# modules.
lib/libpam__L: .PHONY
${_+_}@${ECHODIR} "===> lib/libpam (depend,all,install)"; \
${_+_}@${ECHODIR} "===> lib/libpam (obj,depend,all,install)"; \
cd ${.CURDIR}/lib/libpam; \
${MAKE} DIRPRFX=lib/libpam/ obj; \
${MAKE} DIRPRFX=lib/libpam/ depend; \
${MAKE} DIRPRFX=lib/libpam/ -D_NO_LIBPAM_SO_YET all; \
${MAKE} DIRPRFX=lib/libpam/ -D_NO_LIBPAM_SO_YET install
+53 -4
View File
@@ -14,10 +14,28 @@
# The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last.
#
# 20070711: bzip2 1.0.4
OLD_FILES+=usr/share/info/bzip2.info.gz
# 20070710: Removal of the PROTO.localhost* files
OLD_FILES+=etc/namedb/PROTO.localhost-v6.rev
OLD_FILES+=etc/namedb/PROTO.localhost.rev
OLD_FILES+=etc/namedb/make-localhost
# 20070423: rc.bluetooth (examples) removed
OLD_FILES+=usr/share/examples/netgraph/bluetooth/rc.bluetooth
# 20070212: kame.4 removed
OLD_FILES+=usr/share/man/man4/kame.4.gz
# 20070127: archive_write_prepare.3 removed
OLD_FILES+=usr/share/man/man3/archive_write_prepare.3.gz
# 20061123: uhidev.4 removed
OLD_FILES+=usr/share/man/man4/uhidev.4.gz
# 20060928: kvmdb cleanup script removed
OLD_FILES+=etc/periodic/weekly/120.clean-kvmdb
# 20060905: demangle.h from contrib/libstdc++/include/ext/
OLD_FILES+=usr/include/c++/3.4/ext/demangle.h
# 20060605: man page links removed by OpenBSM 1.0 alpha 6 import
OLD_FILES+=usr/share/man/man3/au_to_socket.3.gz
OLD_FILES+=usr/share/man/man3/au_to_socket_ex_128.3.gz
OLD_FILES+=usr/share/man/man3/au_to_socket_ex_32.3.gz
# 20051215: rescue/nextboot.sh renamed to rescue/nextboot
OLD_FILES+=rescue/nextboot.sh
# 20051029: rc.d/ppp-user renamed to rc.d/ppp for convenience
@@ -36,6 +54,11 @@ OLD_FILES+=usr/share/doc/papers/px.ps.gz
# 20050721: moved to ports
OLD_FILES+=usr/sbin/vttest
OLD_FILES+=usr/share/man/man1/vttest.1.gz
# 20050617: wpa man pages moved to section 8
OLD_FILES+=usr/share/man/man1/hostapd.1.gz
OLD_FILES+=usr/share/man/man1/hostapd_cli.1.gz
OLD_FILES+=usr/share/man/man1/wpa_cli.1.gz
OLD_FILES+=usr/share/man/man1/wpa_supplicant.1.gz
# 20050610: rexecd (insecure by design)
OLD_FILES+=etc/pam.d/rexecd
OLD_FILES+=usr/share/man/man8/rexecd.8.gz
@@ -258,6 +281,8 @@ OLD_FILES+=usr/share/man/man1/sasc.1.gz
OLD_FILES+=usr/share/man/man1/sgsc.1.gz
OLD_FILES+=usr/share/man/man4/i386/stl.4.gz
OLD_FILES+=usr/share/man/man8/raidctl.8.gz
# 20040229: clean_environment() was removed after 3 days
OLD_FILES+=usr/share/man/man3/clean_environment.3.gz
.if ${TARGET_ARCH} != "alpha" && ${TARGET_ARCH} != "sparc64"
# 20040130: libkse renamed to libpthread
OLD_FILES+=usr/lib/libkse.a
@@ -322,6 +347,7 @@ OLD_FILES+=usr/lib/libskey_p.a
OLD_FILES+=usr/libexec/tradcpp0
OLD_FILES+=usr/libexec/cpp0
# 200304XX: removal of xten
OLD_FILES+=usr/libexec/xtend
OLD_FILES+=usr/sbin/xten
OLD_FILES+=usr/share/man/man1/xten.1.gz
OLD_FILES+=usr/share/man/man8/xtend.8.gz
@@ -527,7 +553,6 @@ OLD_FILES+=usr/lib/libpam_ssh.a
OLD_FILES+=usr/lib/libpam_ssh_p.a
OLD_FILES+=usr/bin/help
OLD_FILES+=usr/bin/sccs
OLD_FILES+=usr/bin/gdbserver
OLD_FILES+=usr/bin/ssh-keysign
OLD_FILES+=usr/sbin/gifconfig
OLD_FILES+=usr/sbin/prefix
@@ -581,6 +606,31 @@ OLD_FILES+=usr/sbin/mcon
OLD_FILES+=usr/sbin/stlstty
OLD_FILES+=usr/sbin/ispppcontrol
OLD_FILES+=usr/sbin/rndcontrol
# 20011001: UUCP migration to ports
OLD_FILES+=usr/bin/uucp
OLD_FILES+=usr/bin/uulog
OLD_FILES+=usr/bin/uuname
OLD_FILES+=usr/bin/uupick
OLD_FILES+=usr/bin/uusched
OLD_FILES+=usr/bin/uustat
OLD_FILES+=usr/bin/uuto
OLD_FILES+=usr/bin/uux
OLD_FILES+=usr/libexec/uucp/uucico
OLD_FILES+=usr/libexec/uucp/uuxqt
OLD_FILES+=usr/libexec/uucpd
OLD_FILES+=usr/share/man/man1/uuconv.1.gz
OLD_FILES+=usr/share/man/man1/uucp.1.gz
OLD_FILES+=usr/share/man/man1/uulog.1.gz
OLD_FILES+=usr/share/man/man1/uuname.1.gz
OLD_FILES+=usr/share/man/man1/uupick.1.gz
OLD_FILES+=usr/share/man/man1/uustat.1.gz
OLD_FILES+=usr/share/man/man1/uuto.1.gz
OLD_FILES+=usr/share/man/man1/uux.1.gz
OLD_FILES+=usr/share/man/man8/uuchk.8.gz
OLD_FILES+=usr/share/man/man8/uucico.8.gz
OLD_FILES+=usr/share/man/man8/uucpd.8.gz
OLD_FILES+=usr/share/man/man8/uusched.8.gz
OLD_FILES+=usr/share/man/man8/uuxqt.8.gz
# 20010523 mount_portal -> mount_portalfs
OLD_FILES+=sbin/mount_portal
OLD_FILES+=usr/share/man/man8/mount_portal.8.gz
@@ -2460,8 +2510,6 @@ OLD_FILES+=usr/share/man/man3/SSL_COMP_add_compression_method.3.gz
OLD_FILES+=usr/share/man/man3/SSL_CTX_get_ex_new_index.3.gz
OLD_FILES+=usr/share/man/man3/archive_entry_dup.3.gz
OLD_FILES+=usr/share/man/man3/archive_entry_hardlink_w.3.gz
OLD_FILES+=usr/share/man/man3/archive_entry_set_devmajor.3.gz
OLD_FILES+=usr/share/man/man3/archive_entry_set_devminor.3.gz
OLD_FILES+=usr/share/man/man3/archive_entry_set_tartype.3.gz
OLD_FILES+=usr/share/man/man3/archive_entry_symlink_w.3.gz
OLD_FILES+=usr/share/man/man3/archive_entry_tartype.3.gz
@@ -2878,4 +2926,5 @@ OLD_LIBS+=usr/lib/libgssapi.so.6
OLD_DIRS+=usr/share/doc/bind/html
OLD_DIRS+=usr/share/doc/bind/misc
OLD_DIRS+=usr/share/doc/bind/
# 20011001: UUCP migration to ports
OLD_DIRS+=usr/libexec/uucp
+50
View File
@@ -8,6 +8,56 @@ Items affecting the ports and packages system can be found in
/usr/ports/UPDATING. Please read that file before running
portupgrade.
20080118:
FreeBSD 6.3-RELEASE
20080118: FreeBSD-SA-08:01.pty, FreeBSD-SA-08:02.libc
Fix issues which allow snooping on ptys. [08:01]
Fix an off-by-one error in inet_network(3). [08:02]
20071129: FreeBSD-SA-07:09.random
Correct a random value disclosure in random(4).
20071127:
The AT keyboard emulation of sunkbd(4) has been turned on
by default. In order to make the special symbols of the Sun
keyboards driven by sunkbd(4) work under X these now have
to be configured the same way as Sun USB keyboards driven
by ukbd(4) (which also does AT keyboard emulation), f.e.:
Option "XkbLayout" "us"
Option "XkbRules" "xorg"
Option "XkbSymbols" "pc(pc105)+sun_vndr/usb(sun_usb)+us"
20071024:
A breakage was introduced in libc and fixed later. Make sure
you have lib/Makefile rev 1.205.2.4. If it already breaks your
world, you can recover it by
- reboot to single user mode, make sure you use /rescue/sh
instead of /bin/sh
- use /rescue/chflags to remove schg flag on /lib/libc.so.6
- use /rescue/cp to copy libc.so.6 from /usr/obj to /lib/libc.so.6
- continue installworld, you should be fine now
20070806:
An incorrect field size in an ioctl struct for if_bridge(4) has been
corrected, ifconfig(8) will need to be recompilied.
20070426:
The ABI breakage in sendmail(8)'s libmilter has been repaired
so it is no longer necessary to recompile mail filters (aka,
milters). If you recompiled mail filters after the 20070411
note, it is not necessary to recompile them again.
20070411:
sendmail(8) has been updated to version 8.14.1. Mail filters
(aka, milters) compiled against the libmilter included in the
base operating system should be recompiled.
20070115:
FreeBSD 6.2-RELEASE
20060902:
The IEEE80211_IOC_STA_INFO ioctl was updated to take a mac
address parameter. Binaries using the old ioctl number will
+14 -2
View File
@@ -93,7 +93,7 @@ imax(int a, int b)
return (a > b ? a : b);
}
static int aflag = 0, cflag, hflag, iflag, nflag;
static int aflag = 0, cflag, hflag, iflag, kflag, lflag = 0, nflag;
static struct ufs_args mdev;
int
@@ -123,6 +123,14 @@ main(int argc, char *argv[])
case 'b':
/* FALLTHROUGH */
case 'P':
/*
* POSIX specifically discusses the the behavior of
* both -k and -P. It states that the blocksize should
* be set to 1024. Thus, if this occurs, simply break
* rather than clobbering the old blocksize.
*/
if (kflag)
break;
putenv("BLOCKSIZE=512");
hflag = 0;
break;
@@ -143,13 +151,15 @@ main(int argc, char *argv[])
iflag = 1;
break;
case 'k':
putenv("BLOCKSIZE=1k");
kflag++;
putenv("BLOCKSIZE=1024");
hflag = 0;
break;
case 'l':
if (vfslist != NULL)
errx(1, "-l and -t are mutually exclusive.");
vfslist = makevfslist(makenetvfslist());
lflag = 1;
break;
case 'm':
putenv("BLOCKSIZE=1m");
@@ -159,6 +169,8 @@ main(int argc, char *argv[])
nflag = 1;
break;
case 't':
if (lflag)
errx(1, "-l and -t are mutually exclusive.");
if (vfslist != NULL)
errx(1, "only one -t option may be specified");
fstype = optarg;
+6 -3
View File
@@ -29,7 +29,7 @@
.\" @(#)hostname.1 8.2 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
.Dd April 18, 2005
.Dd December 7, 2006
.Dt HOSTNAME 1
.Os
.Sh NAME
@@ -37,7 +37,7 @@
.Nd set or print name of current host system
.Sh SYNOPSIS
.Nm
.Op Fl s
.Op Fl fs
.Op Ar name-of-host
.Sh DESCRIPTION
The
@@ -45,7 +45,7 @@ The
utility prints the name of the current host.
The super-user can
set the hostname by supplying an argument; this is usually done in the
network initialization script
initialization script
.Pa /etc/rc.d/hostname ,
normally run at boot
time.
@@ -56,6 +56,9 @@ variable in
.Pp
Options:
.Bl -tag -width flag
.It Fl f
Include domain information in the printed name.
This is the default behavior.
.It Fl s
Trim off any domain information from the printed
name.
+9 -2
View File
@@ -58,8 +58,15 @@ main(int argc, char *argv[])
char *p, hostname[MAXHOSTNAMELEN];
sflag = 0;
while ((ch = getopt(argc, argv, "s")) != -1)
while ((ch = getopt(argc, argv, "fs")) != -1)
switch (ch) {
case 'f':
/*
* On Linux, "hostname -f" prints FQDN.
* BSD "hostname" always prints FQDN by
* default, so we accept but ignore -f.
*/
break;
case 's':
sflag = 1;
break;
@@ -93,6 +100,6 @@ void
usage(void)
{
(void)fprintf(stderr, "usage: hostname [-s] [name-of-host]\n");
(void)fprintf(stderr, "usage: hostname [-fs] [name-of-host]\n");
exit(1);
}
+2 -2
View File
@@ -113,9 +113,9 @@ Cause
to be verbose, showing files after they are moved.
.El
.Pp
It is an error for either the
It is an error for the
.Ar source
operand or the destination path to specify a directory unless both do.
operand to specify a directory if the target exists and is not a directory.
.Pp
If the destination path does not have a mode which permits writing,
.Nm
+10 -4
View File
@@ -367,6 +367,7 @@ evalcase(union node *n, int flags)
setstackmark(&smark);
arglist.lastp = &arglist.list;
oexitstatus = exitstatus;
exitstatus = 0;
expandarg(n->ncase.expr, &arglist, EXP_TILDE);
for (cp = n->ncase.cases ; cp && evalskip == 0 ; cp = cp->nclist.next) {
for (patp = cp->nclist.pattern ; patp ; patp = patp->narg.next) {
@@ -643,14 +644,19 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd)
/* Print the command if xflag is set. */
if (xflag) {
outc('+', &errout);
char sep = 0;
out2str(ps4val());
for (sp = varlist.list ; sp ; sp = sp->next) {
outc(' ', &errout);
if (sep != 0)
outc(' ', &errout);
out2str(sp->text);
sep = ' ';
}
for (sp = arglist.list ; sp ; sp = sp->next) {
outc(' ', &errout);
if (sep != 0)
outc(' ', &errout);
out2str(sp->text);
sep = ' ';
}
outc('\n', &errout);
flushout(&errout);
@@ -909,7 +915,7 @@ prehash(union node *n)
{
struct cmdentry entry;
if (n->type == NCMD && n->ncmd.args)
if (n && n->type == NCMD && n->ncmd.args)
if (goodname(n->ncmd.args->narg.text))
find_command(n->ncmd.args->narg.text, &entry, 0,
pathval());
+6 -3
View File
@@ -780,14 +780,17 @@ typecmd_impl(int argc, char **argv, int cmd)
" a tracked alias for" : "",
name);
} else {
if (access(argv[i], X_OK) == 0) {
if (eaccess(argv[i], X_OK) == 0) {
if (cmd == TYPECMD_SMALLV)
out1fmt("%s\n", argv[i]);
else
out1fmt(" is %s\n", argv[i]);
} else {
if (cmd != TYPECMD_SMALLV)
out1fmt(": %s\n",
strerror(errno));
error |= 127;
}
else
out1fmt(": %s\n", strerror(errno));
}
break;
}
+11 -6
View File
@@ -98,7 +98,7 @@ STATIC void expbackq(union node *, int, int);
STATIC int subevalvar(char *, char *, int, int, int, int);
STATIC char *evalvar(char *, int);
STATIC int varisset(char *, int);
STATIC void varvalue(char *, int, int);
STATIC void varvalue(char *, int, int, int);
STATIC void recordregion(int, int, int);
STATIC void removerecordregions(int);
STATIC void ifsbreakup(char *, struct arglist *);
@@ -633,7 +633,7 @@ evalvar(char *p, int flag)
int easy;
int quotes = flag & (EXP_FULL | EXP_CASE | EXP_REDIR);
varflags = *p++;
varflags = (unsigned char)*p++;
subtype = varflags & VSTYPE;
var = p;
special = 0;
@@ -669,7 +669,7 @@ again: /* jump here after setting a variable with ${var=text} */
if (set && subtype != VSPLUS) {
/* insert the value of the variable */
if (special) {
varvalue(var, varflags & VSQUOTE, flag & EXP_FULL);
varvalue(var, varflags & VSQUOTE, subtype, flag);
if (subtype == VSLENGTH) {
varlen = expdest - stackblock() - startloc;
STADJUST(-varlen, expdest);
@@ -763,6 +763,11 @@ record:
goto record;
break;
case VSERROR:
c = p - var - 1;
error("${%.*s%s}: Bad substitution", c, var,
(c > 0 && *p != CTLENDVAR) ? "..." : "");
default:
abort();
}
@@ -836,7 +841,7 @@ varisset(char *name, int nulok)
*/
STATIC void
varvalue(char *name, int quoted, int allow_split)
varvalue(char *name, int quoted, int subtype, int flag)
{
int num;
char *p;
@@ -848,7 +853,7 @@ varvalue(char *name, int quoted, int allow_split)
#define STRTODEST(p) \
do {\
if (allow_split) { \
if (flag & (EXP_FULL | EXP_CASE) && subtype != VSLENGTH) { \
syntax = quoted? DQSYNTAX : BASESYNTAX; \
while (*p) { \
if (syntax[(int)*p] == CCTL) \
@@ -883,7 +888,7 @@ numvar:
}
break;
case '@':
if (allow_split && quoted) {
if (flag & EXP_FULL && quoted) {
for (ap = shellparam.p ; (p = *ap++) != NULL ; ) {
STRTODEST(p);
if (*ap)
+23 -17
View File
@@ -98,7 +98,7 @@ STATIC void setcurjob(struct job *);
STATIC void deljob(struct job *);
STATIC struct job *getcurjob(struct job *);
#endif
STATIC void showjob(struct job *, pid_t, int, int);
STATIC void showjob(struct job *, pid_t, int);
/*
@@ -265,18 +265,21 @@ int
jobscmd(int argc, char *argv[])
{
char *id;
int ch, sformat, lformat;
int ch, mode;
optind = optreset = 1;
opterr = 0;
sformat = lformat = 0;
while ((ch = getopt(argc, argv, "ls")) != -1) {
mode = SHOWJOBS_DEFAULT;
while ((ch = getopt(argc, argv, "lps")) != -1) {
switch (ch) {
case 'l':
lformat = 1;
mode = SHOWJOBS_VERBOSE;
break;
case 'p':
mode = SHOWJOBS_PGIDS;
break;
case 's':
sformat = 1;
mode = SHOWJOBS_PIDS;
break;
case '?':
default:
@@ -287,24 +290,25 @@ jobscmd(int argc, char *argv[])
argv += optind;
if (argc == 0)
showjobs(0, sformat, lformat);
showjobs(0, mode);
else
while ((id = *argv++) != NULL)
showjob(getjob(id), 0, sformat, lformat);
showjob(getjob(id), 0, mode);
return (0);
}
STATIC void
showjob(struct job *jp, pid_t pid, int sformat, int lformat)
showjob(struct job *jp, pid_t pid, int mode)
{
char s[64];
struct procstat *ps;
struct job *j;
int col, curr, i, jobno, prev, procno;
pid_t ppid;
char c;
procno = jp->nprocs;
procno = (mode == SHOWJOBS_PGIDS) ? 1 : jp->nprocs;
jobno = jp - jobtab + 1;
curr = prev = 0;
#if JOBS
@@ -315,11 +319,13 @@ showjob(struct job *jp, pid_t pid, int sformat, int lformat)
}
#endif
for (ps = jp->ps ; ; ps++) { /* for each process */
if (sformat) {
out1fmt("%d\n", (int)ps->pid);
if (mode == SHOWJOBS_PIDS || mode == SHOWJOBS_PGIDS) {
ppid = (mode == SHOWJOBS_PIDS) ? ps->pid :
getpgid(ps->pid);
out1fmt("%d\n", (int)ppid);
goto skip;
}
if (!lformat && ps != jp->ps && pid == 0)
if (mode != SHOWJOBS_VERBOSE && ps != jp->ps && pid == 0)
goto skip;
if (pid != 0 && pid != ps->pid)
goto skip;
@@ -335,7 +341,7 @@ showjob(struct job *jp, pid_t pid, int sformat, int lformat)
fmtstr(s, 64, " %c ", c);
out1str(s);
col = strlen(s);
if (lformat) {
if (mode == SHOWJOBS_VERBOSE) {
fmtstr(s, 64, "%d ", (int)ps->pid);
out1str(s);
col += strlen(s);
@@ -388,7 +394,7 @@ skip: if (--procno <= 0)
*/
void
showjobs(int change, int sformat, int lformat)
showjobs(int change, int mode)
{
int jobno;
struct job *jp;
@@ -404,7 +410,7 @@ showjobs(int change, int sformat, int lformat)
}
if (change && ! jp->changed)
continue;
showjob(jp, 0, sformat, lformat);
showjob(jp, 0, mode);
jp->changed = 0;
if (jp->state == JOBDONE) {
freejob(jp);
@@ -992,7 +998,7 @@ dowait(int block, struct job *job)
out1str(" (core dumped)");
out1c('\n');
} else
showjob(thisjob, pid, 0, 0);
showjob(thisjob, pid, SHOWJOBS_DEFAULT);
}
} else {
TRACE(("Not printing status, rootshell=%d, job=%p\n", rootshell, job));
+8 -1
View File
@@ -74,6 +74,13 @@ struct job {
#endif
};
enum {
SHOWJOBS_DEFAULT, /* job number, status, command */
SHOWJOBS_VERBOSE, /* job number, PID, status, command */
SHOWJOBS_PIDS, /* PID only */
SHOWJOBS_PGIDS /* PID of the group leader only */
};
extern pid_t backgndpid; /* pid of last background process */
extern int job_warning; /* user was warned about stopped jobs */
extern int in_waitcmd; /* are we in waitcmd()? */
@@ -84,7 +91,7 @@ void setjobctl(int);
int fgcmd(int, char **);
int bgcmd(int, char **);
int jobscmd(int, char **);
void showjobs(int, int, int);
void showjobs(int, int);
int waitcmd(int, char **);
int jobidcmd(int, char **);
struct job *makejob(union node *, int);
+1 -1
View File
@@ -209,7 +209,7 @@ cmdloop(int top)
inter = 0;
if (iflag && top) {
inter++;
showjobs(1, 0, 0);
showjobs(1, SHOWJOBS_DEFAULT);
chkmail(0);
flushout(&output);
}
+19 -9
View File
@@ -1228,12 +1228,17 @@ parsesub: {
c = pgetc();
}
} else {
if (! is_special(c))
badsub: synerror("Bad substitution");
USTPUTC(c, out);
c = pgetc();
if (! is_special(c)) {
subtype = VSERROR;
if (c == '}')
pungetc();
else
USTPUTC(c, out);
} else {
USTPUTC(c, out);
c = pgetc();
}
}
STPUTC('=', out);
flags = 0;
if (subtype == 0) {
switch (c) {
@@ -1243,9 +1248,13 @@ badsub: synerror("Bad substitution");
/*FALLTHROUGH*/
default:
p = strchr(types, c);
if (p == NULL)
goto badsub;
subtype = p - types + VSNORMAL;
if (p == NULL) {
if (flags == VSNUL)
STPUTC(':', out);
STPUTC(c, out);
subtype = VSERROR;
} else
subtype = p - types + VSNORMAL;
break;
case '%':
case '#':
@@ -1261,9 +1270,10 @@ badsub: synerror("Bad substitution");
break;
}
}
} else {
} else if (subtype != VSERROR) {
pungetc();
}
STPUTC('=', out);
if (subtype != VSLENGTH && (dblquote || arinest))
flags |= VSQUOTE;
*(stackblock() + typeloc) = subtype | flags;
+1
View File
@@ -60,6 +60,7 @@
#define VSTRIMRIGHT 0x8 /* ${var%pattern} */
#define VSTRIMRIGHTMAX 0x9 /* ${var%%pattern} */
#define VSLENGTH 0xa /* ${#var} */
#define VSERROR 0xb /* Syntax error, issue when expanded */
/*
+21 -5
View File
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
.Dd July 29, 2006
.Dd October 7, 2006
.Dt SH 1
.Os
.Sh NAME
@@ -305,8 +305,9 @@ as it is read.
Useful for debugging.
.It Fl x Li xtrace
Write each command
(preceded by
.Dq Li "+ " )
(preceded by the value of the
.Ev PS4
variable)
to standard error before it is executed.
Useful for debugging.
.El
@@ -860,6 +861,10 @@ described later),
separated by
.Dq Li \&|
characters.
The exit code of the
.Ic case
command is the exit code of the last command executed in the list or
zero if no patterns were matched.
.Ss Grouping Commands Together
Commands may be grouped by writing either
.Bd -literal -offset indent
@@ -1776,7 +1781,7 @@ Print the process id's of the processes in the specified
If the
.Ar job
argument is omitted, use the current job.
.It Ic jobs Oo Fl ls Oc Op Ar job ...
.It Ic jobs Oo Fl lps Oc Op Ar job ...
Print information about the specified jobs, or all jobs if no
.Ar job
argument is given.
@@ -1786,8 +1791,13 @@ If the
.Fl l
option is specified, the PID of each job is also printed.
If the
.Fl p
option is specified, only the process IDs for the process group leaders
are printed, one per line.
If the
.Fl s
option is specified, only the PIDs of the jobs are printed, one per line.
option is specified, only the PIDs of the job commands are printed, one per
line.
.It Ic local Oo Ar variable ... Oc Op Fl
See the
.Sx Functions
@@ -2206,6 +2216,12 @@ unless you are the superuser, in which case it defaults to
.It Ev PS2
The secondary prompt string, which defaults to
.Dq Li "> " .
.It Ev PS4
The prefix for the trace output (if
.Fl x
is active).
The default is
.Dq Li "+ " .
.It Ev TERM
The default terminal setting for the shell.
This is inherited by children of the shell, and is used in the history
+3
View File
@@ -88,6 +88,7 @@ struct var vpath;
struct var vppid;
struct var vps1;
struct var vps2;
struct var vps4;
struct var vvers;
STATIC struct var voptind;
@@ -111,6 +112,8 @@ STATIC const struct varinit varinit[] = {
*/
{ &vps2, VSTRFIXED|VTEXTFIXED, "PS2=> ",
NULL },
{ &vps4, VSTRFIXED|VTEXTFIXED, "PS4=+ ",
NULL },
{ &voptind, VSTRFIXED|VTEXTFIXED, "OPTIND=1",
getoptsreset },
{ NULL, 0, NULL,
+2
View File
@@ -74,6 +74,7 @@ extern struct var vpath;
extern struct var vppid;
extern struct var vps1;
extern struct var vps2;
extern struct var vps4;
#ifndef NO_HISTORY
extern struct var vhistsize;
#endif
@@ -91,6 +92,7 @@ extern struct var vhistsize;
#define pathval() (vpath.text + 5)
#define ps1val() (vps1.text + 4)
#define ps2val() (vps2.text + 4)
#define ps4val() (vps4.text + 4)
#define optindval() (voptind.text + 7)
#ifndef NO_HISTORY
#define histsizeval() (vhistsize.text + 9)
+1 -1
View File
@@ -133,7 +133,7 @@ option.
Ask the automounter to use the logging options specified in
.Ar log_options
from now on.
.It Fl D Ar log_options
.It Fl D Ar debug_options
Ask the automounter to use the debugging options specified in
.Ar debug_options
from now on.
+352 -9
View File
@@ -1,5 +1,56 @@
--- 9.3.2-P2 released ---
--- 9.3.4-P1 released ---
2203. [security] Query id generation was cryptographically weak.
[RT # 16915]
2193. [port] win32: BINDInstall.exe is now linked statically.
[RT #16906]
2192. [port] win32: use vcredist_x86.exe to install Visual
Studio's redistributable dlls if building with
Visual Stdio 2005 or later.
--- 9.3.4 released ---
2126. [security] Serialise validation of type ANY responses. [RT #16555]
2124. [security] It was possible to dereference a freed fetch
context. [RT #16584]
--- 9.3.3 released ---
2107. [bug] dighost.c: more cleanup of buffers. [RT #16499]
2104. [port] Fix Solaris SMF error message.
2103. [port] Add /usr/sfw to list of locations for OpenSSL
under Solaris.
2102. [port] Silence solaris 10 warnings.
2101. [bug] OpenSSL version checks were not quite right.
[RT #16476]
2100. [port] win32: copy libeay32.dll to Build\Debug.
2099. [port] win32: more manifiest issues.
--- 9.3.3rc3 released ---
2096. [bug] libbind: handle applications that fail to detect
res_init() failures better.
2095. [port] libbind: alway prototype inet_cidr_ntop_ipv6() and
net_cidr_ntop_ipv6(). [RT #16388]
2094. [contrib] Update named-bootconf. [RT# 16404]
2092. [bug] win32: dig, host, nslookup. Use registry config
if resolv.conf does not exist or no nameservers
listed. [RT #15877]
2091. [port] dighost.c: race condition on cleanup. [RT #16417]
2090. [port] win32: Visual C++ 2005 command line manifest support.
[RT #16417]
@@ -12,15 +63,307 @@
2088. [security] Change the default RSA exponent from 3 to 65537.
[RT #16391]
2086. [port] libbind: FreeBSD now has get*by*_r() functions.
[RT #16403]
2085. [doc] win32: added index.html and README to zip. [RT #16201]
2084. [contrib] dbus update for 9.3.3rc2.
2083. [port] win32: Visual C++ 2005 support.
--- 9.3.2-P1 released ---
2082. [doc] Document 'cache-file' as a test only option.
--- 9.3.3rc2 released ---
2081. [port] libbind: minor 64-bit portability fix in memcluster.c.
[RT #16360]
2080. [port] libbind: res_init.c did not compile on older versions
of Solaris. [RT #16363]
2076. [bug] Several files were missing #include <config.h>
causing build failures on OSF. [RT #16341]
2074. [bug] dns_request_createvia2(), dns_request_createvia3(),
dns_request_createraw2() and dns_request_createraw3()
failed to send multiple UDP requests. [RT #16349]
2066. [security] Handle SIG queries gracefully. [RT #16300]
--- 9.3.3rc1 released ---
2071. [port] Test whether gcc accepts -fno-strict-aliasing.
[RT #16324]
2070. [bug] The remote address was not always displayed when
reporting dispatch failures. [RT #16315]
2069. [bug] Cross compiling was not working. [RT #16330]
2067. [bug] 'rndc' could close the socket too early triggering
a INSIST under Windows. [RT #16317]
2065. [bug] libbind: probe for HPUX prototypes for
endprotoent_r() and endservent_r(). [RT 16313]
2064. [bug] libbind: silence AIX compiler warnings. [RT #16218]
2063. [bug] Change #1955 introduced a bug which caused the first
'rndc flush' call to not free memory. [RT #16244]
2062. [bug] 'dig +nssearch' was reusing a buffer before it had
been returned by the socket code. [RT #16307]
2057. [bug] Make setting "ra" dependent on both allow-query and
allow-recursion. [RT #16290]
2056. [bug] dig: ixfr= was not being treated case insensitively
at all times. [RT #15955]
2055. [bug] Missing goto after dropping multicast query.
[RT #15944]
2054. [port] freebsd: do not explicitly link against -lpthread.
[RT #16170]
2053. [port] netbsd:libbind: silence compiler warnings. [RT #16220]
2052. [bug] 'rndc' improve connect failed message to report
the failing address. [RT #15978]
2051. [port] More strtol() fixes. [RT #16249]
2050. [bug] Parsing of NSAP records was not case insensitive.
[RT #16287]
2049. [bug] Restore SOA before AXFR when falling back from
a attempted IXFR when transfering in a zone.
Allow a initial SOA query before attempting
a AXFR to be requested. [RT #16156]
2048. [bug] It was possible to loop forever when using
avoid-v4-udp-ports / avoid-v6-udp-ports when
the OS always returned the same local port.
[RT #16182]
2047. [bug] Failed to initialise the interface flags to zero.
[RT #16245]
2043. [port] nsupdate/nslookup: Force the flushing of the prompt
for interactive sessions. [RT#16148]
2038. [bug] dig/nslookup/host was unlinking from wrong list
when handling errors. [RT #16122]
2037. [func] When unlinking the first or last element in a list
check that the list head points to the element to
be unlinked. [RT #15959]
2036. [bug] 'rndc recursing' could cause trigger a REQUIRE.
[RT #16075]
2034. [bug] gcc: set -fno-strict-aliasing. [RT #16124]
--- 9.3.3b1 released ---
2031. [bug] Emit a error message when "rndc refresh" is called on
a non slave/stub zone. [RT # 16073]
2030. [bug] We were being overly conservative when disabling
openssl engine support. [RT #16030]
2029. [bug] host printed out the server multiple times when
specified on the command line. [RT #15992]
2028. [port] linux: socket.c compatability for old systems.
[RT #16015]
2027. [port] libbind: Solaris x86 support. [RT #16020]
2026. [bug] Rate limit the two recursive client exceeded messages.
[RT #16044]
2024. [bug] named emited spurious "zone serial unchanged"
messages on reload. [RT #16027]
2023. [bug] "make install" should create ${localstatedir}/run and
${sysconfdir} if they do not exist. [RT #16033]
2016. [bug] Return a partial answer if recursion is not
allowed but requested and we had the answer
to the original qname. [RT #15945]
2013. [bug] Handle unexpected TSIGs on unsigned AXFR/IXFR
responses more gracefully. [RT #15941]
2009. [bug] libbind: coverity fixes. [RT #15808]
2005. [bug] libbind: Retransmission timeouts should be
based on which attempt it is to the nameserver
and not the nameserver itself. [RT #13548]
2004. [bug] dns_tsig_sign() could pass a NULL pointer to
dst_context_destroy() when cleaning up after a
error. [RT #15835]
2003. [bug] libbind: The DNS name/address lookup functions could
occasionally follow a random pointer due to
structures not being completely zeroed. [RT #15806]
2002. [bug] libbind: tighten the constraints on when
struct addrinfo._ai_pad exists. [RT #15783]
2000. [bug] memmove()/strtol() fix was incomplete. [RT #15812]
1998. [bug] Restrict handling of fifos as sockets to just SunOS.
This allows named to connect to entropy gathering
daemons that use fifos instead of sockets. [RT #15840]
1997. [bug] Named was failing to replace negative cache entries
when a positive one for the type was learnt.
[RT #15818]
1995. [bug] 'host' was reporting multiple "is an alias" messages.
[RT #15702]
1994. [port] OpenSSL 0.9.8 support. [RT #15694]
1993. [bug] Log messsage, via syslog, were missing the space
after the timestamp if "print-time yes" was specified.
[RT #15844]
1991. [cleanup] The configuration data, once read, should be treated
as readonly. Expand the use of const to enforce this
at compile time. [RT #15813]
1990. [bug] libbind: isc's override of broken gettimeofday()
implementions was not always effective.
[RT #15709]
1989. [bug] win32: don't check the service password when
re-installing. [RT #15882]
1985. [protocol] DLV has now been assigned a official type code of
32769. [RT #15807]
Note: care should be taken to ensure you upgrade
both named and dnssec-signzone at the same time for
zones with DLV records where named is the master
server for the zone. Also any zones that contain
DLV records should be removed when upgrading a slave
zone. You do not however have to upgrade all
servers for a zone with DLV records simultaniously.
1982. [bug] DNSKEY was being accepted on the parent side of
a delegation. KEY is still accepted there for
RFC 3007 validated updates. [RT #15620]
1981. [bug] win32: condition.c:wait() could fail to reattain
the mutex lock.
1979. [port] linux: allow named to drop core after changing
user ids. [RT #15753]
1978. [port] Handle systems which have a broken recvmsg().
[RT #15742]
1977. [bug] Silence noisy log message. [RT #15704]
1976. [bug] Handle systems with no IPv4 addresses. [RT #15695]
1975. [bug] libbind: isc_gethexstring() could misparse multi-line
hex strings with comments. [RT #15814]
1974. [doc] List each of the zone types and associated zone
options seperately in the ARM.
1972. [contrib] DBUS dynamic forwarders integation from
Jason Vas Dias <[email protected]>.
1971. [port] linux: make detection of missing IF_NAMESIZE more
robust. [RT #15443]
1970. [bug] nsupdate: adjust UDP timeout when falling back to
unsigned SOA query. [RT #15775]
1969. [bug] win32: the socket code was freeing the socket
structure too early. [RT #15776]
1968. [bug] Missing lock in resolver.c:validated(). [RT #15739]
1966. [bug] Don't set CD when we have fallen back to plain DNS.
[RT #15727]
1963. [port] Tru64 4.0E doesn't support send() and recv().
[RT #15586]
1962. [bug] Named failed to clear old update-policy when it
was removed. [RT #15491]
1961. [bug] Check the port and address of responses forwarded
to dispatch. [RT #15474]
1960. [bug] Update code should set NSEC ttls from SOA MINIMUM.
[RT #15465]
1958. [bug] Named failed to update the zone's secure state
until the zone was reloaded. [RT #15412]
1957. [bug] Dig mishandled responses to class ANY queries.
[RT #15402]
1956. [bug] Improve cross compile support, 'gen' is now built
by native compiler. See README for additional
cross compile support information. [RT #15148]
1955. [bug] Pre-allocate the cache cleaning interator. [RT #14998]
1952. [port] hpux: tell the linker to build a runtime link
path "-Wl,+b:". [RT #14816].
1951. [security] Drop queries from particular well known ports.
Don't return FORMERR to queries from particular
well known ports. [RT #15636]
1950. [port] Solaris 2.5.1 and earlier cannot bind() then connect()
a TCP socket. This prevents the source address being
set for TCP connections. [RT #15628]
1948. [bug] If was possible to trigger a REQUIRE failure in
xfrin.c:maybe_free() if named ran out of memory.
[RT #15568]
1946. [bug] resume_dslookup() could trigger a REQUIRE failure
when using forwarders. [RT #15549]
1944. [cleanup] isc_hash_create() does not need a read/write lock.
[RT #15522]
1943. [bug] Set the loadtime after rolling forward the journal.
[RT #15647]
1942. [bug] If the name of a DNSKEY match that of one in
trusted-keys do not attempt to validate the DNSKEY
using the parents DS RRset. [RT #15649]
1941. [bug] ncache_adderesult() should set eresult even if no
rdataset is passed to it. [RT #15642]
1940. [bug] Fixed a number of error conditions reported by
Coverity.
1939. [bug] The resolver could dereference a null pointer after
validation if all the queries have timed out.
[RT #15528]
1938. [bug] The validator was not correctly handling unsecure
negative responses at or below a SEP. [RT #15528]
1919. [contrib] queryperf: a set of new features: collecting/printing
response delays, printing intermediate results, and
adjusting query rate for the "target" qps.
--- 9.3.2 released ---
--- 9.3.2rc1 released ---
@@ -338,14 +681,14 @@
1779. [port] OSF 5.1: libtool didn't handle -pthread correctly.
1778. [port] HUX 11.11: fix broken IN6ADDR_ANY_INIT and
1778. [port] HUX 11.11: fix broken IN6ADDR_ANY_INIT and
IN6ADDR_LOOPBACK_INIT macros.
1777. [port] OSF 5.1: fix broken IN6ADDR_ANY_INIT and
1777. [port] OSF 5.1: fix broken IN6ADDR_ANY_INIT and
IN6ADDR_LOOPBACK_INIT macros.
1776. [port] Solaris 2.9: fix broken IN6ADDR_ANY_INIT and
IN6ADDR_LOOPBACK_INIT macros.
1776. [port] Solaris 2.9: fix broken IN6ADDR_ANY_INIT and
IN6ADDR_LOOPBACK_INIT macros.
1775. [bug] Only compile getnetent_r.c when threaded. [RT #13205]
@@ -1188,8 +1531,8 @@
1414. [func] Support for KSK flag.
1413. [func] Explictly request the (re-)generation of DS records from
keysets (dnssec-signzone -g).
1413. [func] Explicitly request the (re-)generation of DS records
from keysets (dnssec-signzone -g).
1412. [func] You can now specify servers to be tried if a nameserver
has IPv6 address and you only support IPv4 or the
@@ -5586,7 +5929,7 @@
<isc/bufferlist.h>, <isc/task.h>, <isc/mem.h> or
<isc/net.h>.
119. [cleanup] structure definitions for generic rdata stuctures do
119. [cleanup] structure definitions for generic rdata structures do
not have _generic_ in their names.
118. [cleanup] libdns.a is now namespace-clean, on NetBSD, excepting
+2 -2
View File
@@ -1,4 +1,4 @@
Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
Copyright (C) 1996-2003 Internet Software Consortium.
Permission to use, copy, modify, and distribute this software for any
@@ -13,7 +13,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
$Id: COPYRIGHT,v 1.6.2.2.8.3 2005/01/10 23:51:37 marka Exp $
$Id: COPYRIGHT,v 1.6.2.2.8.4 2006/01/04 00:37:22 marka Exp $
Portions Copyright (C) 1996-2001 Nominum, Inc.
+291 -141
View File
@@ -1,29 +1,43 @@
Frequently Asked Questions about BIND 9
Copyright © 2004-2007 Internet Systems Consortium, Inc. ("ISC")
Copyright © 2000-2003 Internet Software Consortium.
-------------------------------------------------------------------------------
Q: Why doesn't -u work on Linux 2.2.x when I build with --enable-threads?
A: Linux threads do not fully implement the Posix threads (pthreads) standard.
In particular, setuid() operates only on the current thread, not the full
process. Because of this limitation, BIND 9 cannot use setuid() on Linux as
it can on all other supported platforms. setuid() cannot be called before
creating threads, since the server does not start listening on reserved
ports until after threads have started.
A: Linux threads do not fully implement the Posix threads (pthreads) standard. In
particular, setuid() operates only on the current thread, not the full process.
Because of this limitation, BIND 9 cannot use setuid() on Linux as it can on
all other supported platforms. setuid() cannot be called before creating
threads, since the server does not start listening on reserved ports until
after threads have started.
In the 2.2.18 or 2.3.99-pre3 and newer kernels, the ability to preserve
capabilities across a setuid() call is present. This allows BIND 9 to call
setuid() early, while retaining the ability to bind reserved ports. This is
a Linux-specific hack.
setuid() early, while retaining the ability to bind reserved ports. This is a
Linux-specific hack.
On a 2.2 kernel, BIND 9 does drop many root privileges, so it should be less
of a security risk than a root process that has not dropped privileges.
On a 2.2 kernel, BIND 9 does drop many root privileges, so it should be less of
a security risk than a root process that has not dropped privileges.
If Linux threads ever work correctly, this restriction will go away.
Configuring BIND9 with the --disable-threads option (the default) causes a
non-threaded version to be built, which will allow -u to be used.
Q: Why do I get the following errors:
general: errno2result.c:109: unexpected error:
general: unable to convert errno to isc_result: 14: Bad address
client: UDP client handler shutting down due to fatal receive error: unexpected error
A: This is the result of a Linux kernel bug.
See: http://marc.theaimsgroup.com/?l=linux-netdev&m=113081708031466&w=2
Q: Why does named log the warning message "no TTL specified - using SOA MINTTL
instead"?
@@ -40,23 +54,26 @@ A: Your zone file is illegal according to RFC1035. It must either have a line
Q: Why do I see 5 (or more) copies of named on Linux?
A: Linux threads each show up as a process under ps. The approximate number of
threads running is n+4, where n is the number of CPUs. Note that the amount
of memory used is not cumulative; if each process is using 10M of memory,
only a total of 10M is used.
threads running is n+4, where n is the number of CPUs. Note that the amount of
memory used is not cumulative; if each process is using 10M of memory, only a
total of 10M is used.
Newer versions of Linux's ps command hide the individual threads and require -L
to display them.
Q: Why does BIND 9 log "permission denied" errors accessing its configuration
files or zones on my Linux system even though it is running as root?
A: On Linux, BIND 9 drops most of its root privileges on startup. This
including the privilege to open files owned by other users. Therefore, if
the server is running as root, the configuration files and zone files should
also be owned by root.
A: On Linux, BIND 9 drops most of its root privileges on startup. This including
the privilege to open files owned by other users. Therefore, if the server is
running as root, the configuration files and zone files should also be owned by
root.
Q: Why do I get errors like "dns_zone_load: zone foo/IN: loading master file
bar: ran out of space"?
Q: Why do I get errors like "dns_zone_load: zone foo/IN: loading master file bar:
ran out of space"?
A: This is often caused by TXT records with missing close quotes. Check that
all TXT records containing quoted strings have both open and close quotes.
A: This is often caused by TXT records with missing close quotes. Check that all
TXT records containing quoted strings have both open and close quotes.
Q: How do I produce a usable core file from a multithreaded named on Linux?
@@ -68,16 +85,16 @@ A: If the Linux kernel is 2.4.7 or newer, multithreaded core dumps are usable
Q: How do I restrict people from looking up the server version?
A: Put a "version" option containing something other than the real version in
the "options" section of named.conf. Note doing this will not prevent
attacks and may impede people trying to diagnose problems with your server.
Also it is possible to "fingerprint" nameservers to determine their version.
A: Put a "version" option containing something other than the real version in the
"options" section of named.conf. Note doing this will not prevent attacks and
may impede people trying to diagnose problems with your server. Also it is
possible to "fingerprint" nameservers to determine their version.
Q: How do I restrict only remote users from looking up the server version?
A: The following view statement will intercept lookups as the internal view
that holds the version information will be matched last. The caveats of the
previous answer still apply, of course.
A: The following view statement will intercept lookups as the internal view that
holds the version information will be matched last. The caveats of the previous
answer still apply, of course.
view "chaos" chaos {
match-clients { <those to be refused>; };
@@ -91,48 +108,45 @@ A: The following view statement will intercept lookups as the internal view
Q: What do "no source of entropy found" or "could not open entropy source foo"
mean?
A: The server requires a source of entropy to perform certain operations,
mostly DNSSEC related. These messages indicate that you have no source of
entropy. On systems with /dev/random or an equivalent, it is used by
default. A source of entropy can also be defined using the random-device
option in named.conf.
A: The server requires a source of entropy to perform certain operations, mostly
DNSSEC related. These messages indicate that you have no source of entropy. On
systems with /dev/random or an equivalent, it is used by default. A source of
entropy can also be defined using the random-device option in named.conf.
Q: I installed BIND 9 and restarted named, but it's still BIND 8. Why?
A: BIND 9 is installed under /usr/local by default. BIND 8 is often installed
under /usr. Check that the correct named is running.
Q: I'm trying to use TSIG to authenticate dynamic updates or zone transfers.
I'm sure I have the keys set up correctly, but the server is rejecting the
TSIG. Why?
Q: I'm trying to use TSIG to authenticate dynamic updates or zone transfers. I'm
sure I have the keys set up correctly, but the server is rejecting the TSIG.
Why?
A: This may be a clock skew problem. Check that the the clocks on the client
and server are properly synchronised (e.g., using ntp).
A: This may be a clock skew problem. Check that the the clocks on the client and
server are properly synchronised (e.g., using ntp).
Q: I'm trying to compile BIND 9, and "make" is failing due to files not being
found. Why?
A: Using a parallel or distributed "make" to build BIND 9 is not supported, and
doesn't work. If you are using one of these, use normal make or gmake
instead.
doesn't work. If you are using one of these, use normal make or gmake instead.
Q: I have a BIND 9 master and a BIND 8.2.3 slave, and the master is logging
error messages like "notify to 10.0.0.1#53 failed: unexpected end of input".
What's wrong?
Q: I have a BIND 9 master and a BIND 8.2.3 slave, and the master is logging error
messages like "notify to 10.0.0.1#53 failed: unexpected end of input". What's
wrong?
A: This error message is caused by a known bug in BIND 8.2.3 and is fixed in
BIND 8.2.4. It can be safely ignored - the notify has been acted on by the
slave despite the error message.
A: This error message is caused by a known bug in BIND 8.2.3 and is fixed in BIND
8.2.4. It can be safely ignored - the notify has been acted on by the slave
despite the error message.
Q: I keep getting log messages like the following. Why?
Dec 4 23:47:59 client 10.0.0.1#1355: updating zone 'example.com/IN': update
failed: 'RRset exists (value dependent)' prerequisite not satisfied
(NXRRSET)
failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
A: DNS updates allow the update request to test to see if certain conditions
are met prior to proceeding with the update. The message above is saying
that conditions were not met and the update is not proceeding. See doc/rfc/
A: DNS updates allow the update request to test to see if certain conditions are
met prior to proceeding with the update. The message above is saying that
conditions were not met and the update is not proceeding. See doc/rfc/
rfc2136.txt for more details on prerequisites.
Q: I keep getting log messages like the following. Why?
@@ -140,11 +154,11 @@ Q: I keep getting log messages like the following. Why?
Jun 21 12:00:00.000 client 10.0.0.1#1234: update denied
A: Someone is trying to update your DNS data using the RFC2136 Dynamic Update
protocol. Windows 2000 machines have a habit of sending dynamic update
requests to DNS servers without being specifically configured to do so. If
the update requests are coming from a Windows 2000 machine, see http://
support.microsoft.com/support/kb/articles/q246/8/04.asp for information
about how to turn them off.
protocol. Windows 2000 machines have a habit of sending dynamic update requests
to DNS servers without being specifically configured to do so. If the update
requests are coming from a Windows 2000 machine, see http://
support.microsoft.com/support/kb/articles/q246/8/04.asp for information about
how to turn them off.
Q: I see a log message like the following. Why?
@@ -152,59 +166,59 @@ Q: I see a log message like the following. Why?
A: You are most likely running named as a non-root user, and that user does not
have permission to write in /var/run. The common ways of fixing this are to
create a /var/run/named directory owned by the named user and set pid-file
to "/var/run/named/named.pid", or set pid-file to "named.pid", which will
put the file in the directory specified by the directory option (which, in
this case, must be writable by the named user).
create a /var/run/named directory owned by the named user and set pid-file to "
/var/run/named/named.pid", or set pid-file to "named.pid", which will put the
file in the directory specified by the directory option (which, in this case,
must be writable by the named user).
Q: When I do a "dig . ns", many of the A records for the root servers are
missing. Why?
Q: When I do a "dig . ns", many of the A records for the root servers are missing.
Why?
A: This is normal and harmless. It is a somewhat confusing side effect of the
way BIND 9 does RFC2181 trust ranking and of the efforts BIND 9 makes to
avoid promoting glue into answers.
A: This is normal and harmless. It is a somewhat confusing side effect of the way
BIND 9 does RFC2181 trust ranking and of the efforts BIND 9 makes to avoid
promoting glue into answers.
When BIND 9 first starts up and primes its cache, it receives the root
server addresses as additional data in an authoritative response from a root
server, and these records are eligible for inclusion as additional data in
responses. Subsequently it receives a subset of the root server addresses as
additional data in a non-authoritative (referral) response from a root
server. This causes the addresses to now be considered non-authoritative
(glue) data, which is not eligible for inclusion in responses.
When BIND 9 first starts up and primes its cache, it receives the root server
addresses as additional data in an authoritative response from a root server,
and these records are eligible for inclusion as additional data in responses.
Subsequently it receives a subset of the root server addresses as additional
data in a non-authoritative (referral) response from a root server. This causes
the addresses to now be considered non-authoritative (glue) data, which is not
eligible for inclusion in responses.
The server does have a complete set of root server addresses cached at all
times, it just may not include all of them as additional data, depending on
whether they were last received as answers or as glue. You can always look
up the addresses with explicit queries like "dig a.root-servers.net A".
whether they were last received as answers or as glue. You can always look up
the addresses with explicit queries like "dig a.root-servers.net A".
Q: Zone transfers from my BIND 9 master to my Windows 2000 slave fail. Why?
A: This may be caused by a bug in the Windows 2000 DNS server where DNS
messages larger than 16K are not handled properly. This can be worked around
by setting the option "transfer-format one-answer;". Also check whether your
zone contains domain names with embedded spaces or other special characters,
like "John\032Doe\213s\032Computer", since such names have been known to
cause Windows 2000 slaves to incorrectly reject the zone.
A: This may be caused by a bug in the Windows 2000 DNS server where DNS messages
larger than 16K are not handled properly. This can be worked around by setting
the option "transfer-format one-answer;". Also check whether your zone contains
domain names with embedded spaces or other special characters, like "John\
032Doe\213s\032Computer", since such names have been known to cause Windows
2000 slaves to incorrectly reject the zone.
Q: Why don't my zones reload when I do an "rndc reload" or SIGHUP?
A: A zone can be updated either by editing zone files and reloading the server
or by dynamic update, but not both. If you have enabled dynamic update for a
zone using the "allow-update" option, you are not supposed to edit the zone
file by hand, and the server will not attempt to reload it.
A: A zone can be updated either by editing zone files and reloading the server or
by dynamic update, but not both. If you have enabled dynamic update for a zone
using the "allow-update" option, you are not supposed to edit the zone file by
hand, and the server will not attempt to reload it.
Q: I can query the nameserver from the nameserver but not from other machines.
Why?
A: This is usually the result of the firewall configuration stopping the
queries and / or the replies.
A: This is usually the result of the firewall configuration stopping the queries
and / or the replies.
Q: How can I make a server a slave for both an internal and an external view at
the same time? When I tried, both views on the slave were transferred from
the same view on the master.
the same time? When I tried, both views on the slave were transferred from the
same view on the master.
A: You will need to give the master and slave multiple IP addresses and use
those to make sure you reach the correct view on the other machine.
A: You will need to give the master and slave multiple IP addresses and use those
to make sure you reach the correct view on the other machine.
Master: 10.0.1.1 (internal), 10.0.1.2 (external, IP alias)
internal:
@@ -232,8 +246,8 @@ A: You will need to give the master and slave multiple IP addresses and use
transfer-source 10.0.1.4;
query-source address 10.0.1.4;
You put the external address on the alias so that all the other dns clients
on these boxes see the internal view by default.
You put the external address on the alias so that all the other dns clients on
these boxes see the internal view by default.
A: BIND 9.3 and later: Use TSIG to select the appropriate view.
@@ -248,7 +262,7 @@ A: BIND 9.3 and later: Use TSIG to select the appropriate view.
};
view "external" {
match-clients { key external; any; };
server 10.0.0.2 { keys external; };
server 10.0.1.2 { keys external; };
recursion no;
...
};
@@ -264,7 +278,7 @@ A: BIND 9.3 and later: Use TSIG to select the appropriate view.
};
view "external" {
match-clients { key external; any; };
server 10.0.0.1 { keys external; };
server 10.0.1.1 { keys external; };
recursion no;
...
};
@@ -272,8 +286,8 @@ A: BIND 9.3 and later: Use TSIG to select the appropriate view.
Q: I have FreeBSD 4.x and "rndc-confgen -a" just sits there.
A: /dev/random is not configured. Use rndcontrol(8) to tell the kernel to use
certain interrupts as a source of random events. You can make this permanent
by setting rand_irqs in /etc/rc.conf.
certain interrupts as a source of random events. You can make this permanent by
setting rand_irqs in /etc/rc.conf.
/etc/rc.conf
rand_irqs="3 14 15"
@@ -283,34 +297,33 @@ A: /dev/random is not configured. Use rndcontrol(8) to tell the kernel to use
Q: Why is named listening on UDP port other than 53?
A: Named uses a system selected port to make queries of other nameservers. This
behaviour can be overridden by using query-source to lock down the port and/
or address. See also notify-source and transfer-source.
behaviour can be overridden by using query-source to lock down the port and/or
address. See also notify-source and transfer-source.
Q: I get error messages like "multiple RRs of singleton type" and "CNAME and
other data" when transferring a zone. What does this mean?
Q: I get error messages like "multiple RRs of singleton type" and "CNAME and other
data" when transferring a zone. What does this mean?
A: These indicate a malformed master zone. You can identify the exact records
involved by transferring the zone using dig then running named-checkzone on
it.
involved by transferring the zone using dig then running named-checkzone on it.
dig axfr example.com @master-server > tmp
named-checkzone example.com tmp
A CNAME record cannot exist with the same name as another record except for
the DNSSEC records which prove its existance (NSEC).
A CNAME record cannot exist with the same name as another record except for the
DNSSEC records which prove its existance (NSEC).
RFC 1034, Section 3.6.2: "If a CNAME RR is present at a node, no other data
should be present; this ensures that the data for a canonical name and its
aliases cannot be different. This rule also insures that a cached CNAME can
be used without checking with an authoritative server for other RR types."
aliases cannot be different. This rule also insures that a cached CNAME can be
used without checking with an authoritative server for other RR types."
Q: I get error messages like "named.conf:99: unexpected end of input" where 99
is the last line of named.conf.
Q: I get error messages like "named.conf:99: unexpected end of input" where 99 is
the last line of named.conf.
A: Some text editors (notepad and wordpad) fail to put a line title indication
(e.g. CR/LF) on the last line of a text file. This can be fixed by "adding"
a blank line to the end of the file. Named expects to see EOF immediately
after EOL and treats text files where this is not met as truncated.
(e.g. CR/LF) on the last line of a text file. This can be fixed by "adding" a
blank line to the end of the file. Named expects to see EOF immediately after
EOL and treats text files where this is not met as truncated.
Q: I get warning messages like "zone example.com/IN: refresh: failure trying
master 1.2.3.4#53: timed out".
@@ -319,15 +332,15 @@ A: Check that you can make UDP queries from the slave to the master
dig +norec example.com soa @1.2.3.4
You could be generating queries faster than the slave can cope with. Lower
the serial query rate.
You could be generating queries faster than the slave can cope with. Lower the
serial query rate.
serial-query-rate 5; // default 20
Q: How do I share a dynamic zone between multiple views?
A: You choose one view to be master and the second a slave and transfer the
zone between views.
A: You choose one view to be master and the second a slave and transfer the zone
between views.
Master 10.0.1.1:
key "external" {
@@ -370,14 +383,14 @@ Q: I get a error message like "zone wireless.ietf56.ietf.org/IN: loading master
file primaries/wireless.ietf56.ietf.org: no owner".
A: This error is produced when a line in the master file contains leading white
space (tab/space) but the is no current record owner name to inherit the
name from. Usually this is the result of putting white space before a
comment. Forgeting the "@" for the SOA record or indenting the master file.
space (tab/space) but the is no current record owner name to inherit the name
from. Usually this is the result of putting white space before a comment.
Forgeting the "@" for the SOA record or indenting the master file.
Q: Why are my logs in GMT (UTC).
A: You are running chrooted (-t) and have not supplied local timzone
information in the chroot area.
A: You are running chrooted (-t) and have not supplied local timzone information
in the chroot area.
FreeBSD: /etc/localtime
Solaris: /etc/TIMEZONE and /usr/share/lib/zoneinfo
@@ -395,23 +408,23 @@ Q: I get "rndc: connect failed: connection refused" when I try to run rndc.
A: This is usually a configuration error.
First ensure that named is running and no errors are being reported at
startup (/var/log/messages or equivalent). Running "named -g <usual
arguments>" from a title can help at this point.
First ensure that named is running and no errors are being reported at startup
(/var/log/messages or equivalent). Running "named -g <usual arguments>" from a
title can help at this point.
Secondly ensure that named is configured to use rndc either by "rndc-confgen
-a", rndc-confgen or manually. The Administrators Reference manual has
details on how to do this.
-a", rndc-confgen or manually. The Administrators Reference manual has details
on how to do this.
Old versions of rndc-confgen used localhost rather than 127.0.0.1 in /etc/
rndc.conf for the default server. Update /etc/rndc.conf if necessary so that
the default server listed in /etc/rndc.conf matches the addresses used in
named.conf. "localhost" has two address (127.0.0.1 and ::1).
If you use "rndc-confgen -a" and named is running with -t or -u ensure that
/etc/rndc.conf has the correct ownership and that a copy is in the chroot
area. You can do this by re-running "rndc-confgen -a" with appropriate -t
and -u arguments.
If you use "rndc-confgen -a" and named is running with -t or -u ensure that /
etc/rndc.conf has the correct ownership and that a copy is in the chroot area.
You can do this by re-running "rndc-confgen -a" with appropriate -t and -u
arguments.
Q: I don't get RRSIG's returned when I use "dig +dnssec".
@@ -419,12 +432,11 @@ A: You need to ensure DNSSEC is enabled (dnssec-enable yes;).
Q: I get "Error 1067" when starting named under Windows.
A: This is the service manager saying that named exited. You need to examine
the Application log in the EventViewer to find out why.
A: This is the service manager saying that named exited. You need to examine the
Application log in the EventViewer to find out why.
Common causes are that you failed to create "named.conf" (usually "C:\
windows\dns\etc\named.conf") or failed to specify the directory in
named.conf.
Common causes are that you failed to create "named.conf" (usually "C:\windows\
dns\etc\named.conf") or failed to specify the directory in named.conf.
options {
Directory "C:\windows\dns\etc";
@@ -439,11 +451,11 @@ A: These indicate a filesystem permission error preventing named creating /
"dumping master file: sl/tmp-XXXX5il3sQ: open: permission denied"
Named needs write permission on the directory containing the file. Named
writes the new cache file to a temporary file then renames it to the name
specified in named.conf to ensure that the contents are always complete.
This is to prevent named loading a partial zone in the event of power
failure or similar interrupting the write of the master file.
Named needs write permission on the directory containing the file. Named writes
the new cache file to a temporary file then renames it to the name specified in
named.conf to ensure that the contents are always complete. This is to prevent
named loading a partial zone in the event of power failure or similar
interrupting the write of the master file.
Note file names are relative to the directory specified in options and any
chroot directory ([<chroot dir>/][<options dir>]).
@@ -489,8 +501,8 @@ A: If the IN-ADDR.ARPA name covered refers to a internal address space you are
If you are not using these private addresses then a client has queried for
them. You can just ignore the messages, get the offending client to stop
sending you these messages as they are most probably leaking them or setup
your own zones empty zones to serve answers to these queries.
sending you these messages as they are most probably leaking them or setup your
own zones empty zones to serve answers to these queries.
zone "10.IN-ADDR.ARPA" {
type master;
@@ -523,3 +535,141 @@ A: If the IN-ADDR.ARPA name covered refers to a internal address space you are
Future versions of named are likely to do this automatically.
Q: I'm running BIND on Red Hat Enterprise Linux or Fedora Core -
Why can't named update slave zone database files?
Why can't named create DDNS journal files or update the master zones from
journals?
Why can't named create custom log files?
A: Red Hat Security Enhanced Linux (SELinux) policy security protections :
Red Hat have adopted the National Security Agency's SELinux security policy (
see http://www.nsa.gov/selinux ) and recommendations for BIND security , which
are more secure than running named in a chroot and make use of the bind-chroot
environment unecessary .
By default, named is not allowed by the SELinux policy to write, create or
delete any files EXCEPT in these directories:
$ROOTDIR/var/named/slaves
$ROOTDIR/var/named/data
$ROOTDIR/var/tmp
where $ROOTDIR may be set in /etc/sysconfig/named if bind-chroot is installed.
The SELinux policy particularly does NOT allow named to modify the $ROOTDIR/var
/named directory, the default location for master zone database files.
SELinux policy overrules file access permissions - so even if all the files
under /var/named have ownership named:named and mode rw-rw-r--, named will
still not be able to write or create files except in the directories above,
with SELinux in Enforcing mode.
So, to allow named to update slave or DDNS zone files, it is best to locate
them in $ROOTDIR/var/named/slaves, with named.conf zone statements such as:
zone "slave.zone." IN {
type slave;
file "slaves/slave.zone.db";
...
};
zone "ddns.zone." IN {
type master;
allow-updates {...};
file "slaves/ddns.zone.db";
};
To allow named to create its cache dump and statistics files, for example, you
could use named.conf options statements such as:
options {
...
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
...
};
You can also tell SELinux to allow named to update any zone database files, by
setting the SELinux tunable boolean parameter 'named_write_master_zones=1',
using the system-config-securitylevel GUI, using the 'setsebool' command, or in
/etc/selinux/targeted/booleans.
You can disable SELinux protection for named entirely by setting the
'named_disable_trans=1' SELinux tunable boolean parameter.
The SELinux named policy defines these SELinux contexts for named:
named_zone_t : for zone database files - $ROOTDIR/var/named/*
named_conf_t : for named configuration files - $ROOTDIR/etc/{named,rndc}.*
named_cache_t: for files modifiable by named - $ROOTDIR/var/{tmp,named/{slaves,data}}
If you want to retain use of the SELinux policy for named, and put named files
in different locations, you can do so by changing the context of the custom
file locations .
To create a custom configuration file location, eg. '/root/named.conf', to use
with the 'named -c' option, do:
# chcon system_u:object_r:named_conf_t /root/named.conf
To create a custom modifiable named data location, eg. '/var/log/named' for a
log file, do:
# chcon system_u:object_r:named_cache_t /var/log/named
To create a custom zone file location, eg. /root/zones/, do:
# chcon system_u:object_r:named_zone_t /root/zones/{.,*}
See these man-pages for more information : selinux(8), named_selinux(8), chcon
(1), setsebool(8)
Q: I want to forward all DNS queries from my caching nameserver to another server.
But there are some domains which have to be served locally, via rbldnsd.
How do I achieve this ?
A: options {
forward only;
forwarders { <ip.of.primary.nameserver>; };
};
zone "sbl-xbl.spamhaus.org" {
type forward; forward only;
forwarders { <ip.of.rbldns.server> port 530; };
};
zone "list.dsbl.org" {
type forward; forward only;
forwarders { <ip.of.rbldns.server> port 530; };
};
Q: Will named be affected by the 2007 changes to daylight savings rules in the US.
A: No, so long as the machines internal clock (as reported by "date -u") remains
at UTC. The only visible change if you fail to upgrade your OS, if you are in a
affected area, will be that log messages will be a hour out during the period
where the old rules do not match the new rules.
For most OS's this change just means that you need to update the conversion
rules from UTC to local time. Normally this involves updating a file in /etc
(which sets the default timezone for the machine) and possibly a directory
which has all the conversion rules for the world (e.g. /usr/share/zoneinfo).
When updating the OS do not forget to update any chroot areas as well. See your
OS's documetation for more details.
The local timezone conversion rules can also be done on a individual basis by
setting the TZ envirionment variable appropriately. See your OS's documentation
for more details.
+273 -4
View File
@@ -1,7 +1,7 @@
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" []>
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2000-2003 Internet Software Consortium.
-
- Permission to use, copy, modify, and distribute this software for any
@@ -17,10 +17,26 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: FAQ.xml,v 1.4.6.3 2005/11/02 22:53:51 marka Exp $ -->
<!-- $Id: FAQ.xml,v 1.4.6.5.6.1 2007/01/12 02:28:00 marka Exp $ -->
<article class="faq">
<title>Frequently Asked Questions about BIND 9</title>
<articleinfo>
<copyright>
<year>2004</year>
<year>2005</year>
<year>2006</year>
<year>2007</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
<copyright>
<year>2000</year>
<year>2001</year>
<year>2002</year>
<year>2003</year>
<holder>Internet Software Consortium.</holder>
</copyright>
</articleinfo>
<qandaset defaultlabel='qanda'>
<qandaentry>
<question>
@@ -64,6 +80,26 @@
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
Why do I get the following errors:
<programlisting>general: errno2result.c:109: unexpected error:
general: unable to convert errno to isc_result: 14: Bad address
client: UDP client handler shutting down due to fatal receive error: unexpected error</programlisting>
</para>
</question>
<answer>
<para>
This is the result of a Linux kernel bug.
</para>
<para>
See:
<ulink url="http://marc.theaimsgroup.com/?l=linux-netdev&amp;m=113081708031466&amp;w=2">http://marc.theaimsgroup.com/?l=linux-netdev&amp;m=113081708031466&amp;w=2</ulink>
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
@@ -105,6 +141,10 @@ example.com. 86400 IN SOA ns hostmaster ( 1 3600 1800 1814400 3600 )</programlis
is not cumulative; if each process is using 10M of memory,
only a total of 10M is used.
</para>
<para>
Newer versions of Linux's ps command hide the individual threads
and require -L to display them.
</para>
</answer>
</qandaentry>
@@ -516,7 +556,7 @@ Master 10.0.1.1:
};
view "external" {
match-clients { key external; any; };
server 10.0.0.2 { keys external; };
server 10.0.1.2 { keys external; };
recursion no;
...
};
@@ -532,7 +572,7 @@ Slave 10.0.1.2:
};
view "external" {
match-clients { key external; any; };
server 10.0.0.1 { keys external; };
server 10.0.1.1 { keys external; };
recursion no;
...
};</programlisting>
@@ -997,11 +1037,240 @@ empty:
1 3600 1200 604800 10800 )
@ 10800 IN NS &lt;name-of-server&gt;.</programlisting>
</informalexample>
<para>
<note>
Future versions of named are likely to do this automatically.
</note>
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
I'm running BIND on Red Hat Enterprise Linux or Fedora Core -
</para>
<para>
Why can't named update slave zone database files?
</para>
<para>
Why can't named create DDNS journal files or update
the master zones from journals?
</para>
<para>
Why can't named create custom log files?
</para>
</question>
<answer>
<para>
Red Hat Security Enhanced Linux (SELinux) policy security
protections :
</para>
<para>
Red Hat have adopted the National Security Agency's
SELinux security policy ( see http://www.nsa.gov/selinux
) and recommendations for BIND security , which are more
secure than running named in a chroot and make use of
the bind-chroot environment unecessary .
</para>
<para>
By default, named is not allowed by the SELinux policy
to write, create or delete any files EXCEPT in these
directories:
<informalexample>
<programlisting>
$ROOTDIR/var/named/slaves
$ROOTDIR/var/named/data
$ROOTDIR/var/tmp
</programlisting>
</informalexample>
where $ROOTDIR may be set in /etc/sysconfig/named if
bind-chroot is installed.
</para>
<para>
The SELinux policy particularly does NOT allow named to modify
the $ROOTDIR/var/named directory, the default location for master
zone database files.
</para>
<para>
SELinux policy overrules file access permissions - so
even if all the files under /var/named have ownership
named:named and mode rw-rw-r--, named will still not be
able to write or create files except in the directories
above, with SELinux in Enforcing mode.
</para>
<para>
So, to allow named to update slave or DDNS zone files,
it is best to locate them in $ROOTDIR/var/named/slaves,
with named.conf zone statements such as:
<informalexample>
<programlisting>
zone "slave.zone." IN {
type slave;
file "slaves/slave.zone.db";
...
};
zone "ddns.zone." IN {
type master;
allow-updates {...};
file "slaves/ddns.zone.db";
};
</programlisting>
</informalexample>
</para>
<para>
To allow named to create its cache dump and statistics
files, for example, you could use named.conf options
statements such as:
<informalexample>
<programlisting>
options {
...
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
...
};
</programlisting>
</informalexample>
</para>
<para>
You can also tell SELinux to allow named to update any
zone database files, by setting the SELinux tunable boolean
parameter 'named_write_master_zones=1', using the
system-config-securitylevel GUI, using the 'setsebool'
command, or in /etc/selinux/targeted/booleans.
</para>
<para>
You can disable SELinux protection for named entirely by
setting the 'named_disable_trans=1' SELinux tunable boolean
parameter.
</para>
<para>
The SELinux named policy defines these SELinux contexts for named:
<informalexample>
<programlisting>
named_zone_t : for zone database files - $ROOTDIR/var/named/*
named_conf_t : for named configuration files - $ROOTDIR/etc/{named,rndc}.*
named_cache_t: for files modifiable by named - $ROOTDIR/var/{tmp,named/{slaves,data}}
</programlisting>
</informalexample>
</para>
<para>
If you want to retain use of the SELinux policy for named,
and put named files in different locations, you can do
so by changing the context of the custom file locations
.
</para>
<para>
To create a custom configuration file location, eg.
'/root/named.conf', to use with the 'named -c' option,
do:
<informalexample>
<programlisting>
# chcon system_u:object_r:named_conf_t /root/named.conf
</programlisting>
</informalexample>
</para>
<para>
To create a custom modifiable named data location, eg.
'/var/log/named' for a log file, do:
<informalexample>
<programlisting>
# chcon system_u:object_r:named_cache_t /var/log/named
</programlisting>
</informalexample>
</para>
<para>
To create a custom zone file location, eg. /root/zones/, do:
<informalexample>
<programlisting>
# chcon system_u:object_r:named_zone_t /root/zones/{.,*}
</programlisting>
</informalexample>
</para>
<para>
See these man-pages for more information : selinux(8),
named_selinux(8), chcon(1), setsebool(8)
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
I want to forward all DNS queries from my caching nameserver to
another server. But there are some domains which have to be
served locally, via rbldnsd.
</para>
<para>
How do I achieve this ?
</para>
</question>
<answer>
<programlisting>
options {
forward only;
forwarders { &lt;ip.of.primary.nameserver&gt;; };
};
zone "sbl-xbl.spamhaus.org" {
type forward; forward only;
forwarders { &lt;ip.of.rbldns.server&gt; port 530; };
};
zone "list.dsbl.org" {
type forward; forward only;
forwarders { &lt;ip.of.rbldns.server&gt; port 530; };
};
</programlisting>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
Will named be affected by the 2007 changes to daylight savings
rules in the US.
</para>
</question>
<answer>
<para>
No, so long as the machines internal clock (as reported
by "date -u") remains at UTC. The only visible change
if you fail to upgrade your OS, if you are in a affected
area, will be that log messages will be a hour out during
the period where the old rules do not match the new rules.
</para>
<para>
For most OS's this change just means that you need to
update the conversion rules from UTC to local time.
Normally this involves updating a file in /etc (which
sets the default timezone for the machine) and possibly
a directory which has all the conversion rules for the
world (e.g. /usr/share/zoneinfo). When updating the OS
do not forget to update any chroot areas as well.
See your OS's documetation for more details.
</para>
<para>
The local timezone conversion rules can also be done on
a individual basis by setting the TZ envirionment variable
appropriately. See your OS's documentation for more
details.
</para>
</answer>
</qandaentry>
</qandaset>
</article>
+4 -3
View File
@@ -1,4 +1,4 @@
# Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 1998-2002 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
@@ -13,7 +13,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: Makefile.in,v 1.41.2.2.2.2 2004/03/08 04:04:12 marka Exp $
# $Id: Makefile.in,v 1.41.2.2.2.4 2006/05/19 00:04:00 marka Exp $
srcdir = @srcdir@
VPATH = @srcdir@
@@ -44,7 +44,8 @@ maintainer-clean::
rm -f configure
installdirs:
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} \
${DESTDIR}${localstatedir}/run ${DESTDIR}${sysconfdir}
install:: isc-config.sh installdirs
${INSTALL_SCRIPT} isc-config.sh ${DESTDIR}${bindir}
+29 -1
View File
@@ -42,6 +42,18 @@ BIND 9
Stichting NLnet - NLnet Foundation
Nominum, Inc.
BIND 9.3.4-P1
BIND 9.3.4-P1 is a security release.
BIND 9.3.4
BIND 9.3.4 is a security release.
BIND 9.3.3
BIND 9.3.3 is a maintenance release, containing fixes for
a number of bugs in 9.3.2.
BIND 9.3.2
@@ -194,6 +206,9 @@ BIND 9.2.0
--with-libtool does not work on AIX.
--with-libtool does not work on SunOS 4. configure
requires "printf" which is not available.
A bug in the Windows 2000 DNS server can cause zone transfers
from a BIND 9 server to a W2K server to fail. For details,
see the "Zone Transfers" section in doc/misc/migration.
@@ -226,7 +241,7 @@ Building
Red Hat Linux 7.1
Debian GNU/Linux 2.2 and 3.0
Mandrake 8.1
OpenBSD 2.6, 2.8, 2.9
OpenBSD 2.6, 2.8, 2.9, 3.1, 3.6, 3.8
UnixWare 7.1.1
HP-UX 10.20
BSD/OS 4.2
@@ -265,10 +280,23 @@ Building
Enable DNSSEC signature chasing support in dig.
-DDIG_SIGCHASE=1 (sets -DDIG_SIGCHASE_TD=1 and
-DDIG_SIGCHASE_BU=1)
Disable dropping queries from particular well known ports.
-DNS_CLIENT_DROPPORT=0
LDFLAGS
Linker flags. Defaults to empty string.
The following need to be set when cross compiling.
BUILD_CC
The native C compiler.
BUILD_CFLAGS (optional)
BUILD_CPPFLAGS (optional)
Possible Settings:
-DNEED_OPTARG=1 (optarg is not declared in <unistd.h>)
BUILD_LDFLAGS (optional)
BUILD_LIBS (optional)
To build shared libraries, specify "--with-libtool" on the
configure command line.
+15 -10
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: named-checkconf.8,v 1.11.12.7 2005/10/13 02:33:41 marka Exp $
.\" $Id: named-checkconf.8,v 1.11.12.8 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: named\-checkconf
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 14, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "NAMED\-CHECKCONF" "8" "June 14, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -36,24 +39,24 @@ named\-checkconf \- named configuration file syntax checking tool
\fBnamed\-checkconf\fR
checks the syntax, but not the semantics, of a named configuration file.
.SH "OPTIONS"
.TP
.TP 3n
\-t \fIdirectory\fR
chroot to
\fIdirectory\fR
so that include directives in the configuration file are processed as if run by a similarly chrooted named.
.TP
.TP 3n
\-v
Print the version of the
\fBnamed\-checkconf\fR
program and exit.
.TP
.TP 3n
\-z
Perform a check load the master zonefiles found in
\fInamed.conf\fR.
.TP
.TP 3n
\-j
When loading a zonefile read the journal if it exists.
.TP
.TP 3n
filename
The name of the configuration file to be checked. If not specified, it defaults to
\fI/etc/named.conf\fR.
@@ -68,3 +71,5 @@ BIND 9 Administrator Reference Manual.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+22 -22
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: named-checkconf.c,v 1.12.12.9 2005/03/03 06:33:38 marka Exp $ */
/* $Id: named-checkconf.c,v 1.12.12.11 2006/03/02 00:37:20 marka Exp $ */
#include <config.h>
@@ -60,9 +60,9 @@ usage(void) {
}
static isc_result_t
directory_callback(const char *clausename, cfg_obj_t *obj, void *arg) {
directory_callback(const char *clausename, const cfg_obj_t *obj, void *arg) {
isc_result_t result;
char *directory;
const char *directory;
REQUIRE(strcasecmp("directory", clausename) == 0);
@@ -85,18 +85,18 @@ directory_callback(const char *clausename, cfg_obj_t *obj, void *arg) {
}
static isc_result_t
configure_zone(const char *vclass, const char *view, cfg_obj_t *zconfig,
isc_mem_t *mctx)
configure_zone(const char *vclass, const char *view,
const cfg_obj_t *zconfig, isc_mem_t *mctx)
{
isc_result_t result;
const char *zclass;
const char *zname;
const char *zfile;
cfg_obj_t *zoptions = NULL;
cfg_obj_t *classobj = NULL;
cfg_obj_t *typeobj = NULL;
cfg_obj_t *fileobj = NULL;
cfg_obj_t *dbobj = NULL;
const cfg_obj_t *zoptions = NULL;
const cfg_obj_t *classobj = NULL;
const cfg_obj_t *typeobj = NULL;
const cfg_obj_t *fileobj = NULL;
const cfg_obj_t *dbobj = NULL;
zname = cfg_obj_asstring(cfg_tuple_get(zconfig, "name"));
classobj = cfg_tuple_get(zconfig, "class");
@@ -125,12 +125,12 @@ configure_zone(const char *vclass, const char *view, cfg_obj_t *zconfig,
}
static isc_result_t
configure_view(const char *vclass, const char *view, cfg_obj_t *config,
cfg_obj_t *vconfig, isc_mem_t *mctx)
configure_view(const char *vclass, const char *view, const cfg_obj_t *config,
const cfg_obj_t *vconfig, isc_mem_t *mctx)
{
cfg_listelt_t *element;
cfg_obj_t *voptions;
cfg_obj_t *zonelist;
const cfg_listelt_t *element;
const cfg_obj_t *voptions;
const cfg_obj_t *zonelist;
isc_result_t result = ISC_R_SUCCESS;
isc_result_t tresult;
@@ -148,7 +148,7 @@ configure_view(const char *vclass, const char *view, cfg_obj_t *config,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *zconfig = cfg_listelt_value(element);
const cfg_obj_t *zconfig = cfg_listelt_value(element);
tresult = configure_zone(vclass, view, zconfig, mctx);
if (tresult != ISC_R_SUCCESS)
result = tresult;
@@ -158,11 +158,11 @@ configure_view(const char *vclass, const char *view, cfg_obj_t *config,
static isc_result_t
load_zones_fromconfig(cfg_obj_t *config, isc_mem_t *mctx) {
cfg_listelt_t *element;
cfg_obj_t *classobj;
cfg_obj_t *views;
cfg_obj_t *vconfig;
load_zones_fromconfig(const cfg_obj_t *config, isc_mem_t *mctx) {
const cfg_listelt_t *element;
const cfg_obj_t *classobj;
const cfg_obj_t *views;
const cfg_obj_t *vconfig;
const char *vclass;
isc_result_t result = ISC_R_SUCCESS;
isc_result_t tresult;
+8 -8
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: named-checkconf.html,v 1.5.2.1.4.12 2005/10/13 02:33:42 marka Exp $ -->
<!-- $Id: named-checkconf.html,v 1.5.2.1.4.15 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>named-checkconf</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">named-checkconf</span> &#8212; named configuration file syntax checking tool</p>
@@ -32,14 +32,14 @@
<div class="cmdsynopsis"><p><code class="command">named-checkconf</code> [<code class="option">-v</code>] [<code class="option">-j</code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] {filename} [<code class="option">-z</code>]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525865"></a><h2>DESCRIPTION</h2>
<a name="id2549430"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">named-checkconf</strong></span> checks the syntax, but not
the semantics, of a named configuration file.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525878"></a><h2>OPTIONS</h2>
<a name="id2549443"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
<dd><p>
@@ -69,21 +69,21 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525970"></a><h2>RETURN VALUES</h2>
<a name="id2549534"></a><h2>RETURN VALUES</h2>
<p>
<span><strong class="command">named-checkconf</strong></span> returns an exit status of 1 if
errors were detected and 0 otherwise.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525982"></a><h2>SEE ALSO</h2>
<a name="id2549547"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526006"></a><h2>AUTHOR</h2>
<a name="id2549639"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+25 -20
View File
@@ -1,4 +1,4 @@
.\" Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (C) 2000-2002 Internet Software Consortium.
.\"
.\" Permission to use, copy, modify, and distribute this software for any
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: named-checkzone.8,v 1.11.2.1.8.8 2005/10/13 02:33:41 marka Exp $
.\" $Id: named-checkzone.8,v 1.11.2.1.8.11 2006/10/05 02:50:17 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: named\-checkzone
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 13, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "NAMED\-CHECKZONE" "8" "June 13, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -40,61 +43,61 @@ does when loading a zone. This makes
\fBnamed\-checkzone\fR
useful for checking zone files before configuring them into a name server.
.SH "OPTIONS"
.TP
.TP 3n
\-d
Enable debugging.
.TP
.TP 3n
\-q
Quiet mode \- exit code only.
.TP
.TP 3n
\-v
Print the version of the
\fBnamed\-checkzone\fR
program and exit.
.TP
.TP 3n
\-j
When loading the zone file read the journal if it exists.
.TP
.TP 3n
\-c \fIclass\fR
Specify the class of the zone. If not specified "IN" is assumed.
.TP
.TP 3n
\-k \fImode\fR
Perform
\fB"check\-name"\fR
\fB"check\-names"\fR
checks with the specified failure mode. Possible modes are
\fB"fail"\fR,
\fB"warn"\fR
(default) and
\fB"ignore"\fR.
.TP
.TP 3n
\-n \fImode\fR
Specify whether NS records should be checked to see if they are addresses. Possible modes are
\fB"fail"\fR,
\fB"warn"\fR
(default) and
\fB"ignore"\fR.
.TP
.TP 3n
\-o \fIfilename\fR
Write zone output to
\fIfilename\fR.
.TP
.TP 3n
\-t \fIdirectory\fR
chroot to
\fIdirectory\fR
so that include directives in the configuration file are processed as if run by a similarly chrooted named.
.TP
.TP 3n
\-w \fIdirectory\fR
chdir to
\fIdirectory\fR
so that relative filenames in master file $INCLUDE directives work. This is similar to the directory clause in
\fInamed.conf\fR.
.TP
.TP 3n
\-D
Dump zone file in canonical format.
.TP
.TP 3n
zonename
The domain name of the zone being checked.
.TP
.TP 3n
filename
The name of the zone file.
.SH "RETURN VALUES"
@@ -109,3 +112,5 @@ BIND 9 Administrator Reference Manual.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004\-2006 Internet Systems Consortium, Inc. ("ISC")
@@ -2,7 +2,7 @@
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
[<!ENTITY mdash "&#8212;">]>
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2000-2002 Internet Software Consortium.
-
- Permission to use, copy, modify, and distribute this software for any
@@ -18,7 +18,7 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: named-checkzone.docbook,v 1.3.2.2.8.11 2005/05/12 21:35:57 sra Exp $ -->
<!-- $Id: named-checkzone.docbook,v 1.3.2.2.8.13 2006/09/30 23:58:36 marka Exp $ -->
<refentry>
<refentryinfo>
@@ -35,6 +35,7 @@
<copyright>
<year>2004</year>
<year>2005</year>
<year>2006</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
<copyright>
@@ -134,7 +135,7 @@
<term>-k <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Perform <command>"check-name"</command> checks with the specified failure mode.
Perform <command>"check-names"</command> checks with the specified failure mode.
Possible modes are <command>"fail"</command>,
<command>"warn"</command> (default) and
<command>"ignore"</command>.
+10 -10
View File
@@ -1,5 +1,5 @@
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2000-2002 Internet Software Consortium.
-
- Permission to use, copy, modify, and distribute this software for any
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: named-checkzone.html,v 1.5.2.2.4.13 2005/10/13 02:33:42 marka Exp $ -->
<!-- $Id: named-checkzone.html,v 1.5.2.2.4.17 2006/10/05 02:50:17 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>named-checkzone</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">named-checkzone</span> &#8212; zone file validity checking tool</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">named-checkzone</code> [<code class="option">-d</code>] [<code class="option">-j</code>] [<code class="option">-q</code>] [<code class="option">-v</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-k <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-n <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-o <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-w <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-D</code>] {zonename} {filename}</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525922"></a><h2>DESCRIPTION</h2>
<a name="id2549490"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">named-checkzone</strong></span> checks the syntax and integrity of
a zone file. It performs the same checks as <span><strong class="command">named</strong></span>
@@ -42,7 +42,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525942"></a><h2>OPTIONS</h2>
<a name="id2549510"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-d</span></dt>
<dd><p>
@@ -67,7 +67,7 @@
</p></dd>
<dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
<dd><p>
Perform <span><strong class="command">"check-name"</strong></span> checks with the specified failure mode.
Perform <span><strong class="command">"check-names"</strong></span> checks with the specified failure mode.
Possible modes are <span><strong class="command">"fail"</strong></span>,
<span><strong class="command">"warn"</strong></span> (default) and
<span><strong class="command">"ignore"</strong></span>.
@@ -111,14 +111,14 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526187"></a><h2>RETURN VALUES</h2>
<a name="id2549824"></a><h2>RETURN VALUES</h2>
<p>
<span><strong class="command">named-checkzone</strong></span> returns an exit status of 1 if
errors were detected and 0 otherwise.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526200"></a><h2>SEE ALSO</h2>
<a name="id2549836"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
<em class="citetitle">RFC 1035</em>,
@@ -126,7 +126,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526227"></a><h2>AUTHOR</h2>
<a name="id2549863"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+55 -46
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: dig.1,v 1.14.2.4.2.10 2005/10/13 02:33:42 marka Exp $
.\" $Id: dig.1,v 1.14.2.4.2.11 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: dig
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: Jun 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "DIG" "1" "Jun 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -68,12 +71,14 @@ A typical invocation of
\fBdig\fR
looks like:
.sp
.RS 3n
.nf
dig @server name type
.fi
.RE
.sp
where:
.TP
.TP 3n
\fBserver\fR
is the name or IP address of the name server to query. This can be an IPv4 address in dotted\-decimal notation or an IPv6 address in colon\-delimited notation. When the supplied
\fIserver\fR
@@ -86,10 +91,10 @@ argument is provided,
consults
\fI/etc/resolv.conf\fR
and queries the name servers listed there. The reply from the name server that responds is displayed.
.TP
.TP 3n
\fBname\fR
is the name of the resource record that is to be looked up.
.TP
.TP 3n
\fBtype\fR
indicates what type of query is required \(em ANY, A, MX, SIG, etc.
\fItype\fR
@@ -197,18 +202,18 @@ Each query option is identified by a keyword preceded by a plus sign (+). Some k
no
to negate the meaning of that keyword. Other keywords assign values to options like the timeout interval. They have the form
\fB+keyword=value\fR. The query options are:
.TP
.TP 3n
\fB+[no]tcp\fR
Use [do not use] TCP when querying name servers. The default behaviour is to use UDP unless an AXFR or IXFR query is requested, in which case a TCP connection is used.
.TP
.TP 3n
\fB+[no]vc\fR
Use [do not use] TCP when querying name servers. This alternate syntax to
\fI+[no]tcp\fR
is provided for backwards compatibility. The "vc" stands for "virtual circuit".
.TP
.TP 3n
\fB+[no]ignore\fR
Ignore truncation in UDP responses instead of retrying with TCP. By default, TCP retries are performed.
.TP
.TP 3n
\fB+domain=somename\fR
Set the search list to contain the single domain
\fIsomename\fR, as if specified in a
@@ -217,35 +222,35 @@ directive in
\fI/etc/resolv.conf\fR, and enable search list processing as if the
\fI+search\fR
option were given.
.TP
.TP 3n
\fB+[no]search\fR
Use [do not use] the search list defined by the searchlist or domain directive in
\fIresolv.conf\fR
(if any). The search list is not used by default.
.TP
.TP 3n
\fB+[no]defname\fR
Deprecated, treated as a synonym for
\fI+[no]search\fR
.TP
.TP 3n
\fB+[no]aaonly\fR
Sets the "aa" flag in the query.
.TP
.TP 3n
\fB+[no]aaflag\fR
A synonym for
\fI+[no]aaonly\fR.
.TP
.TP 3n
\fB+[no]adflag\fR
Set [do not set] the AD (authentic data) bit in the query. The AD bit currently has a standard meaning only in responses, not in queries, but the ability to set the bit in the query is provided for completeness.
.TP
.TP 3n
\fB+[no]cdflag\fR
Set [do not set] the CD (checking disabled) bit in the query. This requests the server to not perform DNSSEC validation of responses.
.TP
.TP 3n
\fB+[no]cl\fR
Display [do not display] the CLASS when printing the record.
.TP
.TP 3n
\fB+[no]ttlid\fR
Display [do not display] the TTL when printing the record.
.TP
.TP 3n
\fB+[no]recurse\fR
Toggle the setting of the RD (recursion desired) bit in the query. This bit is set by default, which means
\fBdig\fR
@@ -254,74 +259,74 @@ normally sends recursive queries. Recursion is automatically disabled when the
or
\fI+trace\fR
query options are used.
.TP
.TP 3n
\fB+[no]nssearch\fR
When this option is set,
\fBdig\fR
attempts to find the authoritative name servers for the zone containing the name being looked up and display the SOA record that each name server has for the zone.
.TP
.TP 3n
\fB+[no]trace\fR
Toggle tracing of the delegation path from the root name servers for the name being looked up. Tracing is disabled by default. When tracing is enabled,
\fBdig\fR
makes iterative queries to resolve the name being looked up. It will follow referrals from the root servers, showing the answer from each server that was used to resolve the lookup.
.TP
.TP 3n
\fB+[no]cmd\fR
toggles the printing of the initial comment in the output identifying the version of
\fBdig\fR
and the query options that have been applied. This comment is printed by default.
.TP
.TP 3n
\fB+[no]short\fR
Provide a terse answer. The default is to print the answer in a verbose form.
.TP
.TP 3n
\fB+[no]identify\fR
Show [or do not show] the IP address and port number that supplied the answer when the
\fI+short\fR
option is enabled. If short form answers are requested, the default is not to show the source address and port number of the server that provided the answer.
.TP
.TP 3n
\fB+[no]comments\fR
Toggle the display of comment lines in the output. The default is to print comments.
.TP
.TP 3n
\fB+[no]stats\fR
This query option toggles the printing of statistics: when the query was made, the size of the reply and so on. The default behaviour is to print the query statistics.
.TP
.TP 3n
\fB+[no]qr\fR
Print [do not print] the query as it is sent. By default, the query is not printed.
.TP
.TP 3n
\fB+[no]question\fR
Print [do not print] the question section of a query when an answer is returned. The default is to print the question section as a comment.
.TP
.TP 3n
\fB+[no]answer\fR
Display [do not display] the answer section of a reply. The default is to display it.
.TP
.TP 3n
\fB+[no]authority\fR
Display [do not display] the authority section of a reply. The default is to display it.
.TP
.TP 3n
\fB+[no]additional\fR
Display [do not display] the additional section of a reply. The default is to display it.
.TP
.TP 3n
\fB+[no]all\fR
Set or clear all display flags.
.TP
.TP 3n
\fB+time=T\fR
Sets the timeout for a query to
\fIT\fR
seconds. The default time out is 5 seconds. An attempt to set
\fIT\fR
to less than 1 will result in a query timeout of 1 second being applied.
.TP
.TP 3n
\fB+tries=T\fR
Sets the number of times to try UDP queries to server to
\fIT\fR
instead of the default, 3. If
\fIT\fR
is less than or equal to zero, the number of tries is silently rounded up to 1.
.TP
.TP 3n
\fB+retry=T\fR
Sets the number of times to retry UDP queries to server to
\fIT\fR
instead of the default, 2. Unlike
\fI+tries\fR, this does not include the initial query.
.TP
.TP 3n
\fB+ndots=D\fR
Set the number of dots that have to appear in
\fIname\fR
@@ -334,29 +339,29 @@ or
\fBdomain\fR
directive in
\fI/etc/resolv.conf\fR.
.TP
.TP 3n
\fB+bufsize=B\fR
Set the UDP message buffer size advertised using EDNS0 to
\fIB\fR
bytes. The maximum and minimum sizes of this buffer are 65535 and 0 respectively. Values outside this range are rounded up or down appropriately.
.TP
.TP 3n
\fB+[no]multiline\fR
Print records like the SOA records in a verbose multi\-line format with human\-readable comments. The default is to print each record on a single line, to facilitate machine parsing of the
\fBdig\fR
output.
.TP
.TP 3n
\fB+[no]fail\fR
Do not try the next server if you receive a SERVFAIL. The default is to not try the next server which is the reverse of normal stub resolver behaviour.
.TP
.TP 3n
\fB+[no]besteffort\fR
Attempt to display the contents of messages which are malformed. The default is to not display malformed answers.
.TP
.TP 3n
\fB+[no]dnssec\fR
Requests DNSSEC records be sent by setting the DNSSEC OK bit (DO) in the OPT record in the additional section of the query.
.TP
.TP 3n
\fB+[no]sigchase\fR
Chase DNSSEC signature chains. Requires dig be compiled with \-DDIG_SIGCHASE.
.TP
.TP 3n
\fB+trusted\-key=####\fR
Specifies a file containing trusted keys to be used with
\fB+sigchase\fR. Each DNSKEY record must be on its own line.
@@ -370,7 +375,7 @@ then
in the current directory.
.sp
Requires dig be compiled with \-DDIG_SIGCHASE.
.TP
.TP 3n
\fB+[no]topdown\fR
When chasing DNSSEC signature chains perform a top down validation. Requires dig be compiled with \-DDIG_SIGCHASE.
.SH "MULTIPLE QUERIES"
@@ -389,9 +394,11 @@ A global set of query options, which should be applied to all queries, can also
\fB+[no]cmd\fR
option) can be overridden by a query\-specific set of query options. For example:
.sp
.RS 3n
.nf
dig +qr www.isc.org any \-x 127.0.0.1 isc.org ns +noqr
.fi
.RE
.sp
shows how
\fBdig\fR
@@ -421,3 +428,5 @@ RFC1035.
.SH "BUGS "
.PP
There are probably too many query options.
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dig.c,v 1.157.2.13.2.29 2005/10/14 01:38:40 marka Exp $ */
/* $Id: dig.c,v 1.157.2.13.2.31 2006/07/22 23:52:57 marka Exp $ */
#include <config.h>
#include <stdlib.h>
@@ -1437,7 +1437,7 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only,
* Anything which isn't an option
*/
if (open_type_class) {
if (strncmp(rv[0], "ixfr=", 5) == 0) {
if (strncasecmp(rv[0], "ixfr=", 5) == 0) {
rdtype = dns_rdatatype_ixfr;
result = ISC_R_SUCCESS;
} else {
+11 -11
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: dig.html,v 1.6.2.4.2.13 2005/10/13 02:33:43 marka Exp $ -->
<!-- $Id: dig.html,v 1.6.2.4.2.15 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>dig</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p>dig &#8212; DNS lookup utility</p>
@@ -34,7 +34,7 @@
<div class="cmdsynopsis"><p><code class="command">dig</code> [global-queryopt...] [query...]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525976"></a><h2>DESCRIPTION</h2>
<a name="id2549541"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">dig</strong></span> (domain information groper) is a flexible tool
for interrogating DNS name servers. It performs DNS lookups and
@@ -69,7 +69,7 @@ are applied before the command line arguments.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526035"></a><h2>SIMPLE USAGE</h2>
<a name="id2549600"></a><h2>SIMPLE USAGE</h2>
<p>
A typical invocation of <span><strong class="command">dig</strong></span> looks like:
</p>
@@ -107,7 +107,7 @@ ANY, A, MX, SIG, etc.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526114"></a><h2>OPTIONS</h2>
<a name="id2549747"></a><h2>OPTIONS</h2>
<p>
The <code class="option">-b</code> option sets the source IP address of the query
to <em class="parameter"><code>address</code></em>. This must be a valid address on
@@ -188,7 +188,7 @@ being used. In BIND, this is done by providing appropriate
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526365"></a><h2>QUERY OPTIONS</h2>
<a name="id2549998"></a><h2>QUERY OPTIONS</h2>
<p>
<span><strong class="command">dig</strong></span> provides a number of query options which affect
the way in which lookups are made and the results displayed. Some of
@@ -446,7 +446,7 @@ Requires dig be compiled with -DDIG_SIGCHASE.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2527033"></a><h2>MULTIPLE QUERIES</h2>
<a name="id2550666"></a><h2>MULTIPLE QUERIES</h2>
<p>
The BIND 9 implementation of <span><strong class="command">dig </strong></span> supports
specifying multiple queries on the command line (in addition to
@@ -487,7 +487,7 @@ will not print the initial query when it looks up the NS records for
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2527092"></a><h2>FILES</h2>
<a name="id2550725"></a><h2>FILES</h2>
<p>
<code class="filename">/etc/resolv.conf</code>
</p>
@@ -496,7 +496,7 @@ will not print the initial query when it looks up the NS records for
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2527111"></a><h2>SEE ALSO</h2>
<a name="id2550744"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">host</span>(1)</span>,
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
@@ -505,7 +505,7 @@ will not print the initial query when it looks up the NS records for
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2527149"></a><h2>BUGS </h2>
<a name="id2550782"></a><h2>BUGS </h2>
<p>
There are probably too many query options.
</p>
+60 -39
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dighost.c,v 1.221.2.19.2.31 2005/10/14 01:38:40 marka Exp $ */
/* $Id: dighost.c,v 1.221.2.19.2.36 2006/12/07 01:26:33 marka Exp $ */
/*
* Notice to programmers: Do not use this code as an example of how to
@@ -314,6 +314,9 @@ cancel_lookup(dig_lookup_t *lookup);
static void
recv_done(isc_task_t *task, isc_event_t *event);
static void
send_udp(dig_query_t *query);
static void
connect_timeout(isc_task_t *task, isc_event_t *event);
@@ -945,9 +948,8 @@ setup_system(void) {
if (lwresult != LWRES_R_SUCCESS)
fatal("lwres_context_create failed");
if (isc_file_exists(RESOLV_CONF))
lwresult = lwres_conf_parse(lwctx, RESOLV_CONF);
if (lwresult != LWRES_R_SUCCESS)
lwresult = lwres_conf_parse(lwctx, RESOLV_CONF);
if (lwresult != LWRES_R_SUCCESS && lwresult != LWRES_R_NOTFOUND)
fatal("parse of %s failed", RESOLV_CONF);
lwconf = lwres_conf_get(lwctx);
@@ -1194,7 +1196,10 @@ clear_query(dig_query_t *query) {
isc_mempool_put(commctx, query->recvspace);
isc_buffer_invalidate(&query->recvbuf);
isc_buffer_invalidate(&query->lengthbuf);
isc_mem_free(mctx, query);
if (query->waiting_senddone)
query->pending_free = ISC_TRUE;
else
isc_mem_free(mctx, query);
}
/*
@@ -1219,9 +1224,10 @@ try_clear_lookup(dig_lookup_t *lookup) {
debug("query to %s still pending", q->servname);
q = ISC_LIST_NEXT(q, link);
}
return (ISC_FALSE);
}
return (ISC_FALSE);
}
/*
* At this point, we know there are no queries on the lookup,
* so can make it go away also.
@@ -1254,7 +1260,6 @@ try_clear_lookup(dig_lookup_t *lookup) {
return (ISC_TRUE);
}
/*
* If we can, start the next lookup in the queue running.
* This assumes that the lookup on the head of the queue hasn't been
@@ -1784,9 +1789,9 @@ setup_lookup(dig_lookup_t *lookup) {
check_result(result, "dns_compress_init");
debug("starting to render the message");
isc_buffer_init(&lookup->sendbuf, lookup->sendspace, COMMSIZE);
isc_buffer_init(&lookup->renderbuf, lookup->sendspace, COMMSIZE);
result = dns_message_renderbegin(lookup->sendmsg, &cctx,
&lookup->sendbuf);
&lookup->renderbuf);
check_result(result, "dns_message_renderbegin");
if (lookup->udpsize > 0 || lookup->dnssec) {
if (lookup->udpsize == 0)
@@ -1809,7 +1814,7 @@ setup_lookup(dig_lookup_t *lookup) {
/*
* Force TCP mode if the request is larger than 512 bytes.
*/
if (isc_buffer_usedlength(&lookup->sendbuf) > 512)
if (isc_buffer_usedlength(&lookup->renderbuf) > 512)
lookup->tcp_mode = ISC_TRUE;
lookup->pending = ISC_FALSE;
@@ -1825,6 +1830,8 @@ setup_lookup(dig_lookup_t *lookup) {
query, lookup);
query->lookup = lookup;
query->waiting_connect = ISC_FALSE;
query->waiting_senddone = ISC_FALSE;
query->pending_free = ISC_FALSE;
query->recv_made = ISC_FALSE;
query->first_pass = ISC_TRUE;
query->first_soa_rcvd = ISC_FALSE;
@@ -1848,6 +1855,7 @@ setup_lookup(dig_lookup_t *lookup) {
isc_buffer_init(&query->recvbuf, query->recvspace, COMMSIZE);
isc_buffer_init(&query->lengthbuf, query->lengthspace, 2);
isc_buffer_init(&query->slbuf, query->slspace, 2);
query->sendbuf = lookup->renderbuf;
ISC_LINK_INIT(query, link);
ISC_LIST_ENQUEUE(lookup->q, query, link);
@@ -1865,18 +1873,43 @@ setup_lookup(dig_lookup_t *lookup) {
*/
static void
send_done(isc_task_t *_task, isc_event_t *event) {
isc_socketevent_t *sevent = (isc_socketevent_t *)event;
isc_buffer_t *b = NULL;
dig_query_t *query, *next;
dig_lookup_t *l;
REQUIRE(event->ev_type == ISC_SOCKEVENT_SENDDONE);
UNUSED(_task);
LOCK_LOOKUP;
isc_event_free(&event);
debug("send_done()");
sendcount--;
debug("sendcount=%d", sendcount);
INSIST(sendcount >= 0);
for (b = ISC_LIST_HEAD(sevent->bufferlist);
b != NULL;
b = ISC_LIST_HEAD(sevent->bufferlist))
ISC_LIST_DEQUEUE(sevent->bufferlist, b, link);
query = event->ev_arg;
query->waiting_senddone = ISC_FALSE;
l = query->lookup;
if (l->ns_search_only && !l->trace_root) {
debug("sending next, since searching");
next = ISC_LIST_NEXT(query, link);
if (next != NULL)
send_udp(next);
}
isc_event_free(&event);
if (query->pending_free)
isc_mem_free(mctx, query);
check_if_done();
UNLOCK_LOOKUP;
}
@@ -2020,7 +2053,6 @@ send_tcp_connect(dig_query_t *query) {
static void
send_udp(dig_query_t *query) {
dig_lookup_t *l = NULL;
dig_query_t *next;
isc_result_t result;
debug("send_udp(%p)", query);
@@ -2062,27 +2094,16 @@ send_udp(dig_query_t *query) {
debug("recvcount=%d", recvcount);
}
ISC_LIST_INIT(query->sendlist);
ISC_LINK_INIT(&l->sendbuf, link);
ISC_LIST_ENQUEUE(query->sendlist, &l->sendbuf,
link);
ISC_LIST_ENQUEUE(query->sendlist, &query->sendbuf, link);
debug("sending a request");
TIME_NOW(&query->time_sent);
INSIST(query->sock != NULL);
query->waiting_senddone = ISC_TRUE;
result = isc_socket_sendtov(query->sock, &query->sendlist,
global_task, send_done, query,
&query->sockaddr, NULL);
check_result(result, "isc_socket_sendtov");
sendcount++;
/*
* If we're at the endgame of a nameserver search, we need to
* immediately bring up all the queries. Do it here.
*/
if (l->ns_search_only && !l->trace_root) {
debug("sending next, since searching");
next = ISC_LIST_NEXT(query, link);
if (next != NULL)
send_udp(next);
}
}
/*
@@ -2171,6 +2192,10 @@ tcp_length_done(isc_task_t *task, isc_event_t *event) {
recvcount--;
INSIST(recvcount >= 0);
b = ISC_LIST_HEAD(sevent->bufferlist);
INSIST(b == &query->lengthbuf);
ISC_LIST_DEQUEUE(sevent->bufferlist, b, link);
if (sevent->result == ISC_R_CANCELED) {
isc_event_free(&event);
l = query->lookup;
@@ -2196,8 +2221,6 @@ tcp_length_done(isc_task_t *task, isc_event_t *event) {
UNLOCK_LOOKUP;
return;
}
b = ISC_LIST_HEAD(sevent->bufferlist);
ISC_LIST_DEQUEUE(sevent->bufferlist, &query->lengthbuf, link);
length = isc_buffer_getuint16(b);
if (length == 0) {
isc_event_free(&event);
@@ -2254,16 +2277,12 @@ launch_next_query(dig_query_t *query, isc_boolean_t include_question) {
isc_buffer_clear(&query->slbuf);
isc_buffer_clear(&query->lengthbuf);
isc_buffer_putuint16(&query->slbuf,
(isc_uint16_t) query->lookup->sendbuf.used);
isc_buffer_putuint16(&query->slbuf, (isc_uint16_t) query->sendbuf.used);
ISC_LIST_INIT(query->sendlist);
ISC_LINK_INIT(&query->slbuf, link);
ISC_LIST_ENQUEUE(query->sendlist, &query->slbuf, link);
if (include_question) {
ISC_LINK_INIT(&query->lookup->sendbuf, link);
ISC_LIST_ENQUEUE(query->sendlist, &query->lookup->sendbuf,
link);
}
if (include_question)
ISC_LIST_ENQUEUE(query->sendlist, &query->sendbuf, link);
ISC_LINK_INIT(&query->lengthbuf, link);
ISC_LIST_ENQUEUE(query->lengthlist, &query->lengthbuf, link);
@@ -2275,6 +2294,7 @@ launch_next_query(dig_query_t *query, isc_boolean_t include_question) {
if (!query->first_soa_rcvd) {
debug("sending a request in launch_next_query");
TIME_NOW(&query->time_sent);
query->waiting_senddone = ISC_TRUE;
result = isc_socket_sendv(query->sock, &query->sendlist,
global_task, send_done, query);
check_result(result, "isc_socket_sendv");
@@ -2558,6 +2578,10 @@ recv_done(isc_task_t *task, isc_event_t *event) {
REQUIRE(event->ev_type == ISC_SOCKEVENT_RECVDONE);
sevent = (isc_socketevent_t *)event;
b = ISC_LIST_HEAD(sevent->bufferlist);
INSIST(b == &query->recvbuf);
ISC_LIST_DEQUEUE(sevent->bufferlist, &query->recvbuf, link);
if ((l->tcp_mode) && (l->timer != NULL))
isc_timer_touch(l->timer);
if ((!l->pending && !l->ns_search_only) || cancel_now) {
@@ -2591,9 +2615,6 @@ recv_done(isc_task_t *task, isc_event_t *event) {
return;
}
b = ISC_LIST_HEAD(sevent->bufferlist);
ISC_LIST_DEQUEUE(sevent->bufferlist, &query->recvbuf, link);
if (!l->tcp_mode &&
!isc_sockaddr_equal(&sevent->address, &query->sockaddr)) {
char buf1[ISC_SOCKADDR_FORMATSIZE];
+10 -5
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: host.1,v 1.11.2.1.4.7 2005/10/13 02:33:43 marka Exp $
.\" $Id: host.1,v 1.11.2.1.4.8 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: host
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: Jun 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "HOST" "1" "Jun 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -183,3 +186,5 @@ will effectively wait forever for a reply. The time to wait for a response will
.PP
\fBdig\fR(1),
\fBnamed\fR(8).
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+39 -5
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: host.c,v 1.76.2.5.2.13 2005/07/04 03:29:45 marka Exp $ */
/* $Id: host.c,v 1.76.2.5.2.16 2006/05/23 04:43:47 marka Exp $ */
#include <config.h>
#include <limits.h>
@@ -37,6 +37,7 @@
#include <dns/rdataclass.h>
#include <dns/rdataset.h>
#include <dns/rdatatype.h>
#include <dns/rdatastruct.h>
#include <dig/dig.h>
@@ -45,6 +46,7 @@ static isc_boolean_t default_lookups = ISC_TRUE;
static int seen_error = -1;
static isc_boolean_t list_addresses = ISC_TRUE;
static dns_rdatatype_t list_type = dns_rdatatype_a;
static isc_boolean_t printed_server = ISC_FALSE;
static const char *opcodetext[] = {
"QUERY",
@@ -351,6 +353,32 @@ printrdata(dns_message_t *msg, dns_rdataset_t *rdataset, dns_name_t *owner,
return (ISC_R_SUCCESS);
}
static void
chase_cnamechain(dns_message_t *msg, dns_name_t *qname) {
isc_result_t result;
dns_rdataset_t *rdataset;
dns_rdata_cname_t cname;
dns_rdata_t rdata = DNS_RDATA_INIT;
unsigned int i = msg->counts[DNS_SECTION_ANSWER];
while (i-- > 0) {
rdataset = NULL;
result = dns_message_findname(msg, DNS_SECTION_ANSWER, qname,
dns_rdatatype_cname, 0, NULL,
&rdataset);
if (result != ISC_R_SUCCESS)
return;
result = dns_rdataset_first(rdataset);
check_result(result, "dns_rdataset_first");
dns_rdata_reset(&rdata);
dns_rdataset_current(rdataset, &rdata);
result = dns_rdata_tostruct(&rdata, &cname, NULL);
check_result(result, "dns_rdata_tostruct");
dns_name_copy(&cname.cname, qname, NULL);
dns_rdata_freestruct(&cname);
}
}
isc_result_t
printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
isc_boolean_t did_flag = ISC_FALSE;
@@ -367,7 +395,7 @@ printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
*/
force_error = (seen_error == 1) ? 1 : 0;
seen_error = 1;
if (listed_server) {
if (listed_server && !printed_server) {
char sockstr[ISC_SOCKADDR_FORMATSIZE];
printf("Using domain server:\n");
@@ -376,6 +404,7 @@ printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
sizeof(sockstr));
printf("Address: %s\n", sockstr);
printf("Aliases: \n\n");
printed_server = ISC_TRUE;
}
if (msg->rcode != 0) {
@@ -389,10 +418,15 @@ printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
if (default_lookups && query->lookup->rdtype == dns_rdatatype_a) {
char namestr[DNS_NAME_FORMATSIZE];
dig_lookup_t *lookup;
dns_fixedname_t fixed;
dns_name_t *name;
/* Add AAAA and MX lookups. */
dns_name_format(query->lookup->name, namestr, sizeof(namestr));
dns_fixedname_init(&fixed);
name = dns_fixedname_name(&fixed);
dns_name_copy(query->lookup->name, name, NULL);
chase_cnamechain(msg, name);
dns_name_format(name, namestr, sizeof(namestr));
lookup = clone_lookup(query->lookup, ISC_FALSE);
if (lookup != NULL) {
strncpy(lookup->textname, namestr,
+6 -6
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: host.html,v 1.4.2.1.4.12 2005/10/13 02:33:44 marka Exp $ -->
<!-- $Id: host.html,v 1.4.2.1.4.14 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>host</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p>host &#8212; DNS lookup utility</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">host</code> [<code class="option">-aCdlnrTwv</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-N <em class="replaceable"><code>ndots</code></em></code>] [<code class="option">-R <em class="replaceable"><code>number</code></em></code>] [<code class="option">-t <em class="replaceable"><code>type</code></em></code>] [<code class="option">-W <em class="replaceable"><code>wait</code></em></code>] [<code class="option">-4</code>] [<code class="option">-6</code>] {name} [server]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525901"></a><h2>DESCRIPTION</h2>
<a name="id2549466"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">host</strong></span>
is a simple utility for performing DNS lookups.
@@ -155,13 +155,13 @@ value for an integer quantity.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526241"></a><h2>FILES</h2>
<a name="id2549874"></a><h2>FILES</h2>
<p>
<code class="filename">/etc/resolv.conf</code>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526253"></a><h2>SEE ALSO</h2>
<a name="id2549886"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">dig</span>(1)</span>,
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>.
+6 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dig.h,v 1.71.2.6.2.11 2005/07/04 03:29:45 marka Exp $ */
/* $Id: dig.h,v 1.71.2.6.2.14 2006/12/07 01:26:33 marka Exp $ */
#ifndef DIG_H
#define DIG_H
@@ -146,7 +146,7 @@ isc_boolean_t sigchase;
char onamespace[BUFSIZE];
isc_buffer_t namebuf;
isc_buffer_t onamebuf;
isc_buffer_t sendbuf;
isc_buffer_t renderbuf;
char *sendspace;
dns_name_t *name;
isc_timer_t *timer;
@@ -173,6 +173,8 @@ isc_boolean_t sigchase;
struct dig_query {
dig_lookup_t *lookup;
isc_boolean_t waiting_connect,
pending_free,
waiting_senddone,
first_pass,
first_soa_rcvd,
second_rr_rcvd,
@@ -198,6 +200,7 @@ struct dig_query {
ISC_LINK(dig_query_t) link;
isc_sockaddr_t sockaddr;
isc_time_t time_sent;
isc_buffer_t sendbuf;
};
struct dig_server {
+49 -42
View File
@@ -1,4 +1,4 @@
.\" Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
@@ -12,14 +12,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: nslookup.1,v 1.1.6.5 2005/10/13 02:33:43 marka Exp $
.\" $Id: nslookup.1,v 1.1.6.7 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: nslookup
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: Jun 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "NSLOOKUP" "1" "Jun 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -39,26 +42,28 @@ has two modes: interactive and non\-interactive. Interactive mode allows the use
.SH "ARGUMENTS"
.PP
Interactive mode is entered in the following cases:
.TP 3
.TP 3n
1.
when no arguments are given (the default name server will be used)
.TP
.TP 3n
2.
when the first argument is a hyphen (\-) and the second argument is the host name or Internet address of a name server.
.sp
.RE
.PP
Non\-interactive mode is used when the name or Internet address of the host to be looked up is given as the first argument. The optional second argument specifies the host name or address of a name server.
.PP
Options can also be specified on the command line if they precede the arguments and are prefixed with a hyphen. For example, to change the default query type to host information, and the initial timeout to 10 seconds, type:
.IP .sp .nf nslookup \-query=hinfo \-timeout=10 .fi
.sp .RS 3n .nf nslookup \-query=hinfo \-timeout=10 .fi .RE
.SH "INTERACTIVE COMMANDS"
.TP
.TP 3n
host [server]
Look up information for host using the current default server or using server, if specified. If host is an Internet address and the query type is A or PTR, the name of the host is returned. If host is a name and does not have a trailing period, the search list is used to qualify the name.
.sp
To look up a host not in the current domain, append a period to the name.
.TP
.TP 3n
\fBserver\fR \fIdomain\fR
.TP
.TP 3n
\fBlserver\fR \fIdomain\fR
Change the default server to
\fIdomain\fR;
@@ -67,107 +72,107 @@ uses the initial server to look up information about
\fIdomain\fR, while
\fBserver\fR
uses the current default server. If an authoritative answer can't be found, the names of servers that might have the answer are returned.
.TP
.TP 3n
\fBroot\fR
not implemented
.TP
.TP 3n
\fBfinger\fR
not implemented
.TP
.TP 3n
\fBls\fR
not implemented
.TP
.TP 3n
\fBview\fR
not implemented
.TP
.TP 3n
\fBhelp\fR
not implemented
.TP
.TP 3n
\fB?\fR
not implemented
.TP
.TP 3n
\fBexit\fR
Exits the program.
.TP
.TP 3n
\fBset\fR \fIkeyword\fR\fI[=value]\fR
This command is used to change state information that affects the lookups. Valid keywords are:
.RS
.TP
.RS 3n
.TP 3n
\fBall\fR
Prints the current values of the frequently used options to
\fBset\fR. Information about the current default server and host is also printed.
.TP
.TP 3n
\fBclass=\fR\fIvalue\fR
Change the query class to one of:
.RS
.TP
.RS 3n
.TP 3n
\fBIN\fR
the Internet class
.TP
.TP 3n
\fBCH\fR
the Chaos class
.TP
.TP 3n
\fBHS\fR
the Hesiod class
.TP
.TP 3n
\fBANY\fR
wildcard
.RE
.IP
.IP "" 3n
The class specifies the protocol group of the information.
.sp
(Default = IN; abbreviation = cl)
.TP
.TP 3n
\fB\fI[no]\fR\fR\fBdebug\fR
Turn debugging mode on. A lot more information is printed about the packet sent to the server and the resulting answer.
.sp
(Default = nodebug; abbreviation =
[no]deb)
.TP
.TP 3n
\fB\fI[no]\fR\fR\fBd2\fR
Turn debugging mode on. A lot more information is printed about the packet sent to the server and the resulting answer.
.sp
(Default = nod2)
.TP
.TP 3n
\fBdomain=\fR\fIname\fR
Sets the search list to
\fIname\fR.
.TP
.TP 3n
\fB\fI[no]\fR\fR\fBsearch\fR
If the lookup request contains at least one period but doesn't end with a trailing period, append the domain names in the domain search list to the request until an answer is received.
.sp
(Default = search)
.TP
.TP 3n
\fBport=\fR\fIvalue\fR
Change the default TCP/UDP name server port to
\fIvalue\fR.
.sp
(Default = 53; abbreviation = po)
.TP
.TP 3n
\fBquerytype=\fR\fIvalue\fR
.TP
.TP 3n
\fBtype=\fR\fIvalue\fR
Change the top of the information query.
Change the type of the information query.
.sp
(Default = A; abbreviations = q, ty)
.TP
.TP 3n
\fB\fI[no]\fR\fR\fBrecurse\fR
Tell the name server to query other servers if it does not have the information.
.sp
(Default = recurse; abbreviation = [no]rec)
.TP
.TP 3n
\fBretry=\fR\fInumber\fR
Set the number of retries to number.
.TP
.TP 3n
\fBtimeout=\fR\fInumber\fR
Change the initial timeout interval for waiting for a reply to number seconds.
.TP
.TP 3n
\fB\fI[no]\fR\fR\fBvc\fR
Always use a virtual circuit when sending requests to the server.
.sp
(Default = novc)
.RE
.IP
.IP "" 3n
.SH "FILES"
.PP
\fI/etc/resolv.conf\fR
@@ -179,3 +184,5 @@ Always use a virtual circuit when sending requests to the server.
.SH "AUTHOR"
.PP
Andrew Cherenson
.SH "COPYRIGHT"
Copyright \(co 2004\-2006 Internet Systems Consortium, Inc. ("ISC")
+3 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nslookup.c,v 1.90.2.4.2.10 2005/07/12 05:47:42 marka Exp $ */
/* $Id: nslookup.c,v 1.90.2.4.2.12 2006/06/09 23:50:53 marka Exp $ */
#include <config.h>
@@ -708,6 +708,7 @@ get_next_command(void) {
if (buf == NULL)
fatal("memory allocation failure");
fputs("> ", stderr);
fflush(stderr);
isc_app_block();
ptr = fgets(buf, COMMSIZE, stdin);
isc_app_unblock();
+4 -3
View File
@@ -2,7 +2,7 @@
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
[<!ENTITY mdash "&#8212;">]>
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
-
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
@@ -17,7 +17,7 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: nslookup.docbook,v 1.3.6.5 2005/05/13 01:22:33 marka Exp $ -->
<!-- $Id: nslookup.docbook,v 1.3.6.7 2006/01/06 00:01:42 marka Exp $ -->
<!--
- Copyright (c) 1985, 1989
@@ -68,6 +68,7 @@
<copyright>
<year>2004</year>
<year>2005</year>
<year>2006</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
@@ -263,7 +264,7 @@ the lookups. Valid keywords are:
<varlistentry><term><constant>type=</constant><replaceable>value</replaceable></term>
<listitem><para>
Change the top of the information query.
Change the type of the information query.
</para><para>
(Default = A; abbreviations = q, ty)
</para></listitem></varlistentry>
+11 -11
View File
@@ -1,5 +1,5 @@
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
-
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
@@ -13,15 +13,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: nslookup.html,v 1.1.6.9 2005/10/13 02:33:44 marka Exp $ -->
<!-- $Id: nslookup.html,v 1.1.6.12 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>nslookup</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463728"></a><div class="titlepage"></div>
<a name="id2482694"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p>nslookup &#8212; query Internet name servers interactively</p>
@@ -31,7 +31,7 @@
<div class="cmdsynopsis"><p><code class="command">nslookup</code> [<code class="option">-option</code>] [name | -] [server]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525973"></a><h2>DESCRIPTION</h2>
<a name="id2549404"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">Nslookup</strong></span>
is a program to query Internet domain name servers. <span><strong class="command">Nslookup</strong></span>
@@ -43,7 +43,7 @@ domain.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525990"></a><h2>ARGUMENTS</h2>
<a name="id2549421"></a><h2>ARGUMENTS</h2>
<p>
Interactive mode is entered in the following cases:
</p>
@@ -75,7 +75,7 @@ nslookup -query=hinfo -timeout=10
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526033"></a><h2>INTERACTIVE COMMANDS</h2>
<a name="id2549464"></a><h2>INTERACTIVE COMMANDS</h2>
<div class="variablelist"><dl>
<dt><span class="term">host [<span class="optional">server</span>]</span></dt>
<dd>
@@ -200,7 +200,7 @@ the lookups. Valid keywords are:
<dt><span class="term"><code class="constant">type=</code><em class="replaceable"><code>value</code></em></span></dt>
<dd>
<p>
Change the top of the information query.
Change the type of the information query.
</p>
<p>
(Default = A; abbreviations = q, ty)
@@ -241,13 +241,13 @@ the lookups. Valid keywords are:
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526490"></a><h2>FILES</h2>
<a name="id2549990"></a><h2>FILES</h2>
<p>
<code class="filename">/etc/resolv.conf</code>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526503"></a><h2>SEE ALSO</h2>
<a name="id2550003"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">dig</span>(1)</span>,
<span class="citerefentry"><span class="refentrytitle">host</span>(1)</span>,
@@ -255,7 +255,7 @@ the lookups. Valid keywords are:
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526538"></a><h2>Author</h2>
<a name="id2550038"></a><h2>Author</h2>
<p>
Andrew Cherenson
</p>
+29 -22
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: dnssec-keygen.8,v 1.19.12.9 2005/10/13 02:33:45 marka Exp $
.\" $Id: dnssec-keygen.8,v 1.19.12.10 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: dnssec\-keygen
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "DNSSEC\-KEYGEN" "8" "June 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -36,7 +39,7 @@ dnssec\-keygen \- DNSSEC key generation tool
\fBdnssec\-keygen\fR
generates keys for DNSSEC (Secure DNS), as defined in RFC 2535 and RFC <TBA\\>. It can also generate keys for use with TSIG (Transaction Signatures), as defined in RFC 2845.
.SH "OPTIONS"
.TP
.TP 3n
\-a \fIalgorithm\fR
Selects the cryptographic algorithm. The value of
\fBalgorithm\fR
@@ -45,37 +48,37 @@ must be one of RSAMD5 (RSA) or RSASHA1, DSA, DH (Diffie Hellman), or HMAC\-MD5.
Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement algorithm, and DSA is recommended. For TSIG, HMAC\-MD5 is mandatory.
.sp
Note 2: HMAC\-MD5 and DH automatically set the \-k flag.
.TP
.TP 3n
\-b \fIkeysize\fR
Specifies the number of bits in the key. The choice of key size depends on the algorithm used. RSAMD5 / RSASHA1 keys must be between 512 and 2048 bits. Diffie Hellman keys must be between 128 and 4096 bits. DSA keys must be between 512 and 1024 bits and an exact multiple of 64. HMAC\-MD5 keys must be between 1 and 512 bits.
.TP
.TP 3n
\-n \fInametype\fR
Specifies the owner type of the key. The value of
\fBnametype\fR
must either be ZONE (for a DNSSEC zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with a host (KEY)), USER (for a key associated with a user(KEY)) or OTHER (DNSKEY). These values are case insensitive.
.TP
.TP 3n
\-c \fIclass\fR
Indicates that the DNS record containing the key should have the specified class. If not specified, class IN is used.
.TP
.TP 3n
\-e
If generating an RSAMD5/RSASHA1 key, use a large exponent.
.TP
.TP 3n
\-f \fIflag\fR
Set the specified flag in the flag field of the KEY/DNSKEY record. The only recognized flag is KSK (Key Signing Key) DNSKEY.
.TP
.TP 3n
\-g \fIgenerator\fR
If generating a Diffie Hellman key, use this generator. Allowed values are 2 and 5. If no generator is specified, a known prime from RFC 2539 will be used if possible; otherwise the default is 2.
.TP
.TP 3n
\-h
Prints a short summary of the options and arguments to
\fBdnssec\-keygen\fR.
.TP
.TP 3n
\-k
Generate KEY records rather than DNSKEY records.
.TP
.TP 3n
\-p \fIprotocol\fR
Sets the protocol value for the generated key. The protocol is a number between 0 and 255. The default is 3 (DNSSEC). Other possible values for this argument are listed in RFC 2535 and its successors.
.TP
.TP 3n
\-r \fIrandomdev\fR
Specifies the source of randomness. If the operating system does not provide a
\fI/dev/random\fR
@@ -84,15 +87,15 @@ or equivalent device, the default source of randomness is keyboard input.
specifies the name of a character device or file containing random data to be used instead of the default. The special value
\fIkeyboard\fR
indicates that keyboard input should be used.
.TP
.TP 3n
\-s \fIstrength\fR
Specifies the strength value of the key. The strength is a number between 0 and 15, and currently has no defined purpose in DNSSEC.
.TP
.TP 3n
\-t \fItype\fR
Indicates the use of the key.
\fBtype\fR
must be one of AUTHCONF, NOAUTHCONF, NOAUTH, or NOCONF. The default is AUTHCONF. AUTH refers to the ability to authenticate data, and CONF the ability to encrypt data.
.TP
.TP 3n
\-v \fIlevel\fR
Sets the debugging level.
.SH "GENERATED KEYS"
@@ -102,18 +105,20 @@ When
completes successfully, it prints a string of the form
\fIKnnnn.+aaa+iiiii\fR
to the standard output. This is an identification string for the key it has generated.
.TP 3
.TP 3n
\(bu
\fInnnn\fR
is the key name.
.TP
.TP 3n
\(bu
\fIaaa\fR
is the numeric representation of the algorithm.
.TP
.TP 3n
\(bu
\fIiiiii\fR
is the key identifier (or footprint).
.sp
.RE
.PP
\fBdnssec\-keygen\fR
creates two file, with names based on the printed string.
@@ -162,3 +167,5 @@ RFC 2539.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+9 -9
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: dnssec-keygen.html,v 1.5.2.1.4.13 2005/10/13 02:33:45 marka Exp $ -->
<!-- $Id: dnssec-keygen.html,v 1.5.2.1.4.15 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>dnssec-keygen</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">dnssec-keygen</span> &#8212; DNSSEC key generation tool</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">dnssec-keygen</code> {-a <em class="replaceable"><code>algorithm</code></em>} {-b <em class="replaceable"><code>keysize</code></em>} {-n <em class="replaceable"><code>nametype</code></em>} [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-e</code>] [<code class="option">-f <em class="replaceable"><code>flag</code></em></code>] [<code class="option">-g <em class="replaceable"><code>generator</code></em></code>] [<code class="option">-h</code>] [<code class="option">-k</code>] [<code class="option">-p <em class="replaceable"><code>protocol</code></em></code>] [<code class="option">-r <em class="replaceable"><code>randomdev</code></em></code>] [<code class="option">-s <em class="replaceable"><code>strength</code></em></code>] [<code class="option">-t <em class="replaceable"><code>type</code></em></code>] [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] {name}</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525956"></a><h2>DESCRIPTION</h2>
<a name="id2549521"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">dnssec-keygen</strong></span> generates keys for DNSSEC
(Secure DNS), as defined in RFC 2535 and RFC &lt;TBA\&gt;. It can also generate
@@ -41,7 +41,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525969"></a><h2>OPTIONS</h2>
<a name="id2549533"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-a <em class="replaceable"><code>algorithm</code></em></span></dt>
<dd>
@@ -144,7 +144,7 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526306"></a><h2>GENERATED KEYS</h2>
<a name="id2549939"></a><h2>GENERATED KEYS</h2>
<p>
When <span><strong class="command">dnssec-keygen</strong></span> completes successfully,
it prints a string of the form <code class="filename">Knnnn.+aaa+iiiii</code>
@@ -187,7 +187,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526394"></a><h2>EXAMPLE</h2>
<a name="id2550027"></a><h2>EXAMPLE</h2>
<p>
To generate a 768-bit DSA key for the domain
<strong class="userinput"><code>example.com</code></strong>, the following command would be
@@ -209,7 +209,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526440"></a><h2>SEE ALSO</h2>
<a name="id2550073"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">dnssec-signzone</span>(8)</span>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>,
@@ -219,7 +219,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526473"></a><h2>AUTHOR</h2>
<a name="id2550106"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+30 -25
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: dnssec-signzone.8,v 1.23.2.1.4.10 2005/10/13 02:33:45 marka Exp $
.\" $Id: dnssec-signzone.8,v 1.23.2.1.4.11 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: dnssec\-signzone
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "DNSSEC\-SIGNZONE" "8" "June 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -38,49 +41,49 @@ signs a zone. It generates NSEC and RRSIG records and produces a signed version
\fIkeyset\fR
file for each child zone.
.SH "OPTIONS"
.TP
.TP 3n
\-a
Verify all generated signatures.
.TP
.TP 3n
\-c \fIclass\fR
Specifies the DNS class of the zone.
.TP
.TP 3n
\-k \fIkey\fR
Treat specified key as a key signing key ignoring any key flags. This option may be specified multiple times.
.TP
.TP 3n
\-l \fIdomain\fR
Generate a DLV set in addition to the key (DNSKEY) and DS sets. The domain is appended to the name of the records.
.TP
.TP 3n
\-d \fIdirectory\fR
Look for
\fIkeyset\fR
files in
\fBdirectory\fR
as the directory
.TP
.TP 3n
\-g
Generate DS records for child zones from keyset files. Existing DS records will be removed.
.TP
.TP 3n
\-s \fIstart\-time\fR
Specify the date and time when the generated RRSIG records become valid. This can be either an absolute or relative time. An absolute start time is indicated by a number in YYYYMMDDHHMMSS notation; 20000530144500 denotes 14:45:00 UTC on May 30th, 2000. A relative start time is indicated by +N, which is N seconds from the current time. If no
\fBstart\-time\fR
is specified, the current time minus 1 hour (to allow for clock skew) is used.
.TP
.TP 3n
\-e \fIend\-time\fR
Specify the date and time when the generated RRSIG records expire. As with
\fBstart\-time\fR, an absolute time is indicated in YYYYMMDDHHMMSS notation. A time relative to the start time is indicated with +N, which is N seconds from the start time. A time relative to the current time is indicated with now+N. If no
\fBend\-time\fR
is specified, 30 days from the start time is used as a default.
.TP
.TP 3n
\-f \fIoutput\-file\fR
The name of the output file containing the signed zone. The default is to append
\fI.signed\fR
to the input file.
.TP
.TP 3n
\-h
Prints a short summary of the options and arguments to
\fBdnssec\-signzone\fR.
.TP
.TP 3n
\-i \fIinterval\fR
When a previously signed zone is passed as input, records may be resigned. The
\fBinterval\fR
@@ -93,16 +96,16 @@ or
are specified,
\fBdnssec\-signzone\fR
generates signatures that are valid for 30 days, with a cycle interval of 7.5 days. Therefore, if any existing RRSIG records are due to expire in less than 7.5 days, they would be replaced.
.TP
.TP 3n
\-n \fIncpus\fR
Specifies the number of threads to use. By default, one thread is started for each detected CPU.
.TP
.TP 3n
\-o \fIorigin\fR
The zone origin. If not specified, the name of the zone file is assumed to be the origin.
.TP
.TP 3n
\-p
Use pseudo\-random data when signing the zone. This is faster, but less secure, than using real random data. This option may be useful when signing large zones or when the entropy source is limited.
.TP
.TP 3n
\-r \fIrandomdev\fR
Specifies the source of randomness. If the operating system does not provide a
\fI/dev/random\fR
@@ -111,19 +114,19 @@ or equivalent device, the default source of randomness is keyboard input.
specifies the name of a character device or file containing random data to be used instead of the default. The special value
\fIkeyboard\fR
indicates that keyboard input should be used.
.TP
.TP 3n
\-t
Print statistics at completion.
.TP
.TP 3n
\-v \fIlevel\fR
Sets the debugging level.
.TP
.TP 3n
\-z
Ignore KSK flag on key when determining what to sign.
.TP
.TP 3n
zonefile
The file containing the zone to be signed.
.TP
.TP 3n
key
The keys used to sign the zone. If no keys are specified, the default all zone keys that have private key files in the current directory.
.SH "EXAMPLE"
@@ -155,3 +158,5 @@ RFC 2535.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+2 -6
View File
@@ -1,5 +1,5 @@
/*
* Portions Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (C) 1999-2003 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
*
@@ -16,7 +16,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signzone.c,v 1.139.2.2.4.21 2005/10/14 01:38:41 marka Exp $ */
/* $Id: dnssec-signzone.c,v 1.139.2.2.4.23 2006/01/04 23:50:19 marka Exp $ */
#include <config.h>
@@ -1292,10 +1292,6 @@ nsecify(void) {
result = dns_dbiterator_next(dbiter);
continue;
}
if (result != ISC_R_SUCCESS) {
dns_db_detachnode(gdb, &nextnode);
break;
}
if (!dns_name_issubdomain(nextname, gorigin) ||
(zonecut != NULL &&
dns_name_issubdomain(nextname, zonecut)))
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: dnssec-signzone.html,v 1.4.2.1.4.14 2005/10/13 02:33:46 marka Exp $ -->
<!-- $Id: dnssec-signzone.html,v 1.4.2.1.4.16 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>dnssec-signzone</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">dnssec-signzone</span> &#8212; DNSSEC zone signing tool</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">dnssec-signzone</code> [<code class="option">-a</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-d <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-e <em class="replaceable"><code>end-time</code></em></code>] [<code class="option">-f <em class="replaceable"><code>output-file</code></em></code>] [<code class="option">-g</code>] [<code class="option">-h</code>] [<code class="option">-k <em class="replaceable"><code>key</code></em></code>] [<code class="option">-l <em class="replaceable"><code>domain</code></em></code>] [<code class="option">-i <em class="replaceable"><code>interval</code></em></code>] [<code class="option">-n <em class="replaceable"><code>nthreads</code></em></code>] [<code class="option">-o <em class="replaceable"><code>origin</code></em></code>] [<code class="option">-p</code>] [<code class="option">-r <em class="replaceable"><code>randomdev</code></em></code>] [<code class="option">-s <em class="replaceable"><code>start-time</code></em></code>] [<code class="option">-t</code>] [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] [<code class="option">-z</code>] {zonefile} [key...]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525979"></a><h2>DESCRIPTION</h2>
<a name="id2549544"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">dnssec-signzone</strong></span> signs a zone. It generates
NSEC and RRSIG records and produces a signed version of the
@@ -43,7 +43,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525995"></a><h2>OPTIONS</h2>
<a name="id2549560"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-a</span></dt>
<dd><p>
@@ -179,7 +179,7 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526435"></a><h2>EXAMPLE</h2>
<a name="id2550068"></a><h2>EXAMPLE</h2>
<p>
The following command signs the <strong class="userinput"><code>example.com</code></strong>
zone with the DSA key generated in the <span><strong class="command">dnssec-keygen</strong></span>
@@ -203,7 +203,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526485"></a><h2>SEE ALSO</h2>
<a name="id2550118"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>,
@@ -211,7 +211,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526512"></a><h2>AUTHOR</h2>
<a name="id2550145"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+16 -16
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: aclconf.c,v 1.27.12.5 2005/03/17 03:58:25 marka Exp $ */
/* $Id: aclconf.c,v 1.27.12.7 2006/03/02 00:37:20 marka Exp $ */
#include <config.h>
@@ -54,10 +54,10 @@ ns_aclconfctx_destroy(ns_aclconfctx_t *ctx) {
* Find the definition of the named acl whose name is "name".
*/
static isc_result_t
get_acl_def(cfg_obj_t *cctx, char *name, cfg_obj_t **ret) {
get_acl_def(const cfg_obj_t *cctx, const char *name, const cfg_obj_t **ret) {
isc_result_t result;
cfg_obj_t *acls = NULL;
cfg_listelt_t *elt;
const cfg_obj_t *acls = NULL;
const cfg_listelt_t *elt;
result = cfg_map_get(cctx, "acl", &acls);
if (result != ISC_R_SUCCESS)
@@ -65,7 +65,7 @@ get_acl_def(cfg_obj_t *cctx, char *name, cfg_obj_t **ret) {
for (elt = cfg_list_first(acls);
elt != NULL;
elt = cfg_list_next(elt)) {
cfg_obj_t *acl = cfg_listelt_value(elt);
const cfg_obj_t *acl = cfg_listelt_value(elt);
const char *aclname = cfg_obj_asstring(cfg_tuple_get(acl, "name"));
if (strcasecmp(aclname, name) == 0) {
*ret = cfg_tuple_get(acl, "value");
@@ -76,15 +76,15 @@ get_acl_def(cfg_obj_t *cctx, char *name, cfg_obj_t **ret) {
}
static isc_result_t
convert_named_acl(cfg_obj_t *nameobj, cfg_obj_t *cctx,
convert_named_acl(const cfg_obj_t *nameobj, const cfg_obj_t *cctx,
ns_aclconfctx_t *ctx, isc_mem_t *mctx,
dns_acl_t **target)
{
isc_result_t result;
cfg_obj_t *cacl = NULL;
const cfg_obj_t *cacl = NULL;
dns_acl_t *dacl;
dns_acl_t loop;
char *aclname = cfg_obj_asstring(nameobj);
const char *aclname = cfg_obj_asstring(nameobj);
/* Look for an already-converted version. */
for (dacl = ISC_LIST_HEAD(ctx->named_acl_cache);
@@ -113,7 +113,7 @@ convert_named_acl(cfg_obj_t *nameobj, cfg_obj_t *cctx,
*/
memset(&loop, 0, sizeof(loop));
ISC_LINK_INIT(&loop, nextincache);
loop.name = aclname;
DE_CONST(aclname, loop.name);
loop.magic = LOOP_MAGIC;
ISC_LIST_APPEND(ctx->named_acl_cache, &loop, nextincache);
result = ns_acl_fromconfig(cacl, cctx, ctx, mctx, &dacl);
@@ -131,7 +131,7 @@ convert_named_acl(cfg_obj_t *nameobj, cfg_obj_t *cctx,
}
static isc_result_t
convert_keyname(cfg_obj_t *keyobj, isc_mem_t *mctx, dns_name_t *dnsname) {
convert_keyname(const cfg_obj_t *keyobj, isc_mem_t *mctx, dns_name_t *dnsname) {
isc_result_t result;
isc_buffer_t buf;
dns_fixedname_t fixname;
@@ -154,8 +154,8 @@ convert_keyname(cfg_obj_t *keyobj, isc_mem_t *mctx, dns_name_t *dnsname) {
}
isc_result_t
ns_acl_fromconfig(cfg_obj_t *caml,
cfg_obj_t *cctx,
ns_acl_fromconfig(const cfg_obj_t *caml,
const cfg_obj_t *cctx,
ns_aclconfctx_t *ctx,
isc_mem_t *mctx,
dns_acl_t **target)
@@ -164,7 +164,7 @@ ns_acl_fromconfig(cfg_obj_t *caml,
unsigned int count;
dns_acl_t *dacl = NULL;
dns_aclelement_t *de;
cfg_listelt_t *elt;
const cfg_listelt_t *elt;
REQUIRE(target != NULL && *target == NULL);
@@ -183,7 +183,7 @@ ns_acl_fromconfig(cfg_obj_t *caml,
elt != NULL;
elt = cfg_list_next(elt))
{
cfg_obj_t *ce = cfg_listelt_value(elt);
const cfg_obj_t *ce = cfg_listelt_value(elt);
if (cfg_obj_istuple(ce)) {
/* This must be a negated element. */
ce = cfg_tuple_get(ce, "value");
@@ -215,7 +215,7 @@ ns_acl_fromconfig(cfg_obj_t *caml,
goto cleanup;
} else if (cfg_obj_isstring(ce)) {
/* ACL name */
char *name = cfg_obj_asstring(ce);
const char *name = cfg_obj_asstring(ce);
if (strcasecmp(name, "localhost") == 0) {
de->type = dns_aclelementtype_localhost;
} else if (strcasecmp(name, "localnets") == 0) {
+109 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: client.c,v 1.176.2.13.4.26 2005/07/27 02:53:14 marka Exp $ */
/* $Id: client.c,v 1.176.2.13.4.31.6.1 2007/06/26 04:14:55 marka Exp $ */
#include <config.h>
@@ -164,6 +164,12 @@ struct ns_clientmgr {
* Must be greater than any valid state.
*/
/*
* Enable ns_client_dropport() by default.
*/
#ifndef NS_CLIENT_DROPPORT
#define NS_CLIENT_DROPPORT 1
#endif
static void client_read(ns_client_t *client);
static void client_accept(ns_client_t *client);
@@ -285,8 +291,17 @@ exit_check(ns_client_t *client) {
}
/*
* I/O cancel is complete. Burn down all state
* related to the current request.
* related to the current request. Ensure that
* the client is on the active list and not the
* recursing list.
*/
LOCK(&client->manager->lock);
if (client->list == &client->manager->recursing) {
ISC_LIST_UNLINK(*client->list, client, link);
ISC_LIST_APPEND(client->manager->active, client, link);
client->list = &client->manager->active;
}
UNLOCK(&client->manager->lock);
ns_client_endrequest(client);
client->state = NS_CLIENTSTATE_READING;
@@ -972,6 +987,34 @@ ns_client_send(ns_client_t *client) {
ns_client_next(client, result);
}
#if NS_CLIENT_DROPPORT
#define DROPPORT_NO 0
#define DROPPORT_REQUEST 1
#define DROPPORT_RESPONSE 2
/*%
* ns_client_dropport determines if certain requests / responses
* should be dropped based on the port number.
*
* Returns:
* \li 0: Don't drop.
* \li 1: Drop request.
* \li 2: Drop (error) response.
*/
static int
ns_client_dropport(in_port_t port) {
switch (port) {
case 7: /* echo */
case 13: /* daytime */
case 19: /* chargen */
case 37: /* time */
return (DROPPORT_REQUEST);
case 464: /* kpasswd */
return (DROPPORT_RESPONSE);
}
return (DROPPORT_NO);
}
#endif
void
ns_client_error(ns_client_t *client, isc_result_t result) {
dns_rcode_t rcode;
@@ -984,6 +1027,28 @@ ns_client_error(ns_client_t *client, isc_result_t result) {
message = client->message;
rcode = dns_result_torcode(result);
#if NS_CLIENT_DROPPORT
/*
* Don't send FORMERR to ports on the drop port list.
*/
if (rcode == dns_rcode_formerr &&
ns_client_dropport(isc_sockaddr_getport(&client->peeraddr)) !=
DROPPORT_NO) {
char buf[64];
isc_buffer_t b;
isc_buffer_init(&b, buf, sizeof(buf) - 1);
if (dns_rcode_totext(rcode, &b) != ISC_R_SUCCESS)
isc_buffer_putstr(&b, "UNKNOWN RCODE");
ns_client_log(client, DNS_LOGCATEGORY_SECURITY,
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(10),
"dropped error (%.*s) response: suspicious port",
(int)isc_buffer_usedlength(&b), buf);
ns_client_next(client, ISC_R_SUCCESS);
return;
}
#endif
/*
* Message may be an in-progress reply that we had trouble
* with, in which case QR will be set. We need to clear QR before
@@ -1208,6 +1273,17 @@ client_request(isc_task_t *task, isc_event_t *event) {
isc_netaddr_fromsockaddr(&netaddr, &client->peeraddr);
#if NS_CLIENT_DROPPORT
if (ns_client_dropport(isc_sockaddr_getport(&client->peeraddr)) ==
DROPPORT_REQUEST) {
ns_client_log(client, DNS_LOGCATEGORY_SECURITY,
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(10),
"dropped request: suspicious port");
ns_client_next(client, ISC_R_SUCCESS);
goto cleanup;
}
#endif
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(3),
"%s request",
@@ -1242,6 +1318,7 @@ client_request(isc_task_t *task, isc_event_t *event) {
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(2),
"dropping multicast request");
ns_client_next(client, DNS_R_REFUSED);
goto cleanup;
}
result = dns_message_peekheader(buffer, &id, &flags);
@@ -1271,6 +1348,14 @@ client_request(isc_task_t *task, isc_event_t *event) {
}
}
/*
* Hash the incoming request here as it is after
* dns_dispatch_importrecv().
*/
dns_dispatch_hash(&client->now, sizeof(client->now));
dns_dispatch_hash(isc_buffer_base(buffer),
isc_buffer_usedlength(buffer));
/*
* It's a request. Parse it.
*/
@@ -1532,12 +1617,15 @@ client_request(isc_task_t *task, isc_event_t *event) {
* Decide whether recursive service is available to this client.
* We do this here rather than in the query code so that we can
* set the RA bit correctly on all kinds of responses, not just
* responses to ordinary queries.
* responses to ordinary queries. Note if you can't query the
* cache there is no point in setting RA.
*/
ra = ISC_FALSE;
if (client->view->resolver != NULL &&
client->view->recursion == ISC_TRUE &&
ns_client_checkaclsilent(client, client->view->recursionacl,
ISC_TRUE) == ISC_R_SUCCESS &&
ns_client_checkaclsilent(client, client->view->queryacl,
ISC_TRUE) == ISC_R_SUCCESS)
ra = ISC_TRUE;
@@ -2364,3 +2452,20 @@ ns_client_dumprecursing(FILE *f, ns_clientmgr_t *manager) {
}
UNLOCK(&manager->lock);
}
void
ns_client_qnamereplace(ns_client_t *client, dns_name_t *name) {
if (client->manager != NULL)
LOCK(&client->manager->lock);
if (client->query.restarts > 0) {
/*
* client->query.qname was dynamically allocated.
*/
dns_message_puttempname(client->message,
&client->query.qname);
}
client->query.qname = name;
if (client->manager != NULL)
UNLOCK(&client->manager->lock);
}
+51 -46
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.c,v 1.11.2.4.8.29 2004/10/05 02:52:26 marka Exp $ */
/* $Id: config.c,v 1.11.2.4.8.32 2006/02/28 06:32:53 marka Exp $ */
#include <config.h>
@@ -196,7 +196,7 @@ ns_config_parsedefaults(cfg_parser_t *parser, cfg_obj_t **conf) {
}
isc_result_t
ns_config_get(cfg_obj_t **maps, const char *name, cfg_obj_t **obj) {
ns_config_get(const cfg_obj_t **maps, const char *name, const cfg_obj_t **obj) {
int i;
for (i = 0;; i++) {
@@ -208,11 +208,13 @@ ns_config_get(cfg_obj_t **maps, const char *name, cfg_obj_t **obj) {
}
isc_result_t
ns_checknames_get(cfg_obj_t **maps, const char *which, cfg_obj_t **obj) {
cfg_listelt_t *element;
cfg_obj_t *checknames;
cfg_obj_t *type;
cfg_obj_t *value;
ns_checknames_get(const cfg_obj_t **maps, const char *which,
const cfg_obj_t **obj)
{
const cfg_listelt_t *element;
const cfg_obj_t *checknames;
const cfg_obj_t *type;
const cfg_obj_t *value;
int i;
for (i = 0;; i++) {
@@ -243,8 +245,8 @@ ns_checknames_get(cfg_obj_t **maps, const char *which, cfg_obj_t **obj) {
}
int
ns_config_listcount(cfg_obj_t *list) {
cfg_listelt_t *e;
ns_config_listcount(const cfg_obj_t *list) {
const cfg_listelt_t *e;
int i = 0;
for (e = cfg_list_first(list); e != NULL; e = cfg_list_next(e))
@@ -254,9 +256,9 @@ ns_config_listcount(cfg_obj_t *list) {
}
isc_result_t
ns_config_getclass(cfg_obj_t *classobj, dns_rdataclass_t defclass,
ns_config_getclass(const cfg_obj_t *classobj, dns_rdataclass_t defclass,
dns_rdataclass_t *classp) {
char *str;
const char *str;
isc_textregion_t r;
isc_result_t result;
@@ -265,7 +267,7 @@ ns_config_getclass(cfg_obj_t *classobj, dns_rdataclass_t defclass,
return (ISC_R_SUCCESS);
}
str = cfg_obj_asstring(classobj);
r.base = str;
DE_CONST(str, r.base);
r.length = strlen(str);
result = dns_rdataclass_fromtext(classp, &r);
if (result != ISC_R_SUCCESS)
@@ -275,9 +277,9 @@ ns_config_getclass(cfg_obj_t *classobj, dns_rdataclass_t defclass,
}
isc_result_t
ns_config_gettype(cfg_obj_t *typeobj, dns_rdatatype_t deftype,
ns_config_gettype(const cfg_obj_t *typeobj, dns_rdatatype_t deftype,
dns_rdatatype_t *typep) {
char *str;
const char *str;
isc_textregion_t r;
isc_result_t result;
@@ -286,7 +288,7 @@ ns_config_gettype(cfg_obj_t *typeobj, dns_rdatatype_t deftype,
return (ISC_R_SUCCESS);
}
str = cfg_obj_asstring(typeobj);
r.base = str;
DE_CONST(str, r.base);
r.length = strlen(str);
result = dns_rdatatype_fromtext(typep, &r);
if (result != ISC_R_SUCCESS)
@@ -296,9 +298,9 @@ ns_config_gettype(cfg_obj_t *typeobj, dns_rdatatype_t deftype,
}
dns_zonetype_t
ns_config_getzonetype(cfg_obj_t *zonetypeobj) {
ns_config_getzonetype(const cfg_obj_t *zonetypeobj) {
dns_zonetype_t ztype = dns_zone_none;
char *str;
const char *str;
str = cfg_obj_asstring(zonetypeobj);
if (strcasecmp(str, "master") == 0)
@@ -313,14 +315,14 @@ ns_config_getzonetype(cfg_obj_t *zonetypeobj) {
}
isc_result_t
ns_config_getiplist(cfg_obj_t *config, cfg_obj_t *list,
ns_config_getiplist(const cfg_obj_t *config, const cfg_obj_t *list,
in_port_t defport, isc_mem_t *mctx,
isc_sockaddr_t **addrsp, isc_uint32_t *countp)
{
int count, i = 0;
cfg_obj_t *addrlist;
cfg_obj_t *portobj;
cfg_listelt_t *element;
const cfg_obj_t *addrlist;
const cfg_obj_t *portobj;
const cfg_listelt_t *element;
isc_sockaddr_t *addrs;
in_port_t port;
isc_result_t result;
@@ -380,10 +382,12 @@ ns_config_putiplist(isc_mem_t *mctx, isc_sockaddr_t **addrsp,
}
static isc_result_t
get_masters_def(cfg_obj_t *cctx, char *name, cfg_obj_t **ret) {
get_masters_def(const cfg_obj_t *cctx, const char *name,
const cfg_obj_t **ret)
{
isc_result_t result;
cfg_obj_t *masters = NULL;
cfg_listelt_t *elt;
const cfg_obj_t *masters = NULL;
const cfg_listelt_t *elt;
result = cfg_map_get(cctx, "masters", &masters);
if (result != ISC_R_SUCCESS)
@@ -391,7 +395,7 @@ get_masters_def(cfg_obj_t *cctx, char *name, cfg_obj_t **ret) {
for (elt = cfg_list_first(masters);
elt != NULL;
elt = cfg_list_next(elt)) {
cfg_obj_t *list;
const cfg_obj_t *list;
const char *listname;
list = cfg_listelt_value(elt);
@@ -406,24 +410,24 @@ get_masters_def(cfg_obj_t *cctx, char *name, cfg_obj_t **ret) {
}
isc_result_t
ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
isc_sockaddr_t **addrsp, dns_name_t ***keysp,
isc_uint32_t *countp)
ns_config_getipandkeylist(const cfg_obj_t *config, const cfg_obj_t *list,
isc_mem_t *mctx, isc_sockaddr_t **addrsp,
dns_name_t ***keysp, isc_uint32_t *countp)
{
isc_uint32_t addrcount = 0, keycount = 0, i = 0;
isc_uint32_t listcount = 0, l = 0, j;
isc_uint32_t stackcount = 0, pushed = 0;
isc_result_t result;
cfg_listelt_t *element;
cfg_obj_t *addrlist;
cfg_obj_t *portobj;
const cfg_listelt_t *element;
const cfg_obj_t *addrlist;
const cfg_obj_t *portobj;
in_port_t port;
dns_fixedname_t fname;
isc_sockaddr_t *addrs = NULL;
dns_name_t **keys = NULL;
char **lists = NULL;
const char **lists = NULL;
struct {
cfg_listelt_t *element;
const cfg_listelt_t *element;
in_port_t port;
} *stack = NULL;
@@ -439,13 +443,14 @@ ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
if (val > ISC_UINT16_MAX) {
cfg_obj_log(portobj, ns_g_lctx, ISC_LOG_ERROR,
"port '%u' out of range", val);
return (ISC_R_RANGE);
result = ISC_R_RANGE;
goto cleanup;
}
port = (in_port_t) val;
} else {
result = ns_config_getport(config, &port);
if (result != ISC_R_SUCCESS)
return (result);
goto cleanup;
}
result = ISC_R_NOMEMORY;
@@ -456,9 +461,9 @@ ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *addr;
cfg_obj_t *key;
char *keystr;
const cfg_obj_t *addr;
const cfg_obj_t *key;
const char *keystr;
isc_buffer_t b;
addr = cfg_tuple_get(cfg_listelt_value(element),
@@ -466,7 +471,7 @@ ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
key = cfg_tuple_get(cfg_listelt_value(element), "key");
if (!cfg_obj_issockaddr(addr)) {
char *listname = cfg_obj_asstring(addr);
const char *listname = cfg_obj_asstring(addr);
isc_result_t tresult;
/* Grow lists? */
@@ -606,9 +611,9 @@ ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
if (new == NULL)
goto cleanup;
memcpy(new, addrs, newsize);
isc_mem_put(mctx, addrs, oldsize);
} else
new = NULL;
isc_mem_put(mctx, addrs, oldsize);
addrs = new;
addrcount = i;
@@ -619,9 +624,9 @@ ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
if (new == NULL)
goto cleanup;
memcpy(new, keys, newsize);
isc_mem_put(mctx, keys, oldsize);
} else
new = NULL;
isc_mem_put(mctx, keys, oldsize);
keys = new;
keycount = i;
}
@@ -682,10 +687,10 @@ ns_config_putipandkeylist(isc_mem_t *mctx, isc_sockaddr_t **addrsp,
}
isc_result_t
ns_config_getport(cfg_obj_t *config, in_port_t *portp) {
cfg_obj_t *maps[3];
cfg_obj_t *options = NULL;
cfg_obj_t *portobj = NULL;
ns_config_getport(const cfg_obj_t *config, in_port_t *portp) {
const cfg_obj_t *maps[3];
const cfg_obj_t *options = NULL;
const cfg_obj_t *portobj = NULL;
isc_result_t result;
int i;
+76 -58
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: controlconf.c,v 1.28.2.9.2.6 2004/03/08 09:04:14 marka Exp $ */
/* $Id: controlconf.c,v 1.28.2.9.2.10 2006/02/28 06:32:53 marka Exp $ */
#include <config.h>
@@ -356,6 +356,9 @@ control_recvmessage(isc_task_t *task, isc_event_t *event) {
{
ccregion.rstart = isc_buffer_base(&conn->ccmsg.buffer);
ccregion.rend = isc_buffer_used(&conn->ccmsg.buffer);
if (secret.rstart != NULL)
isc_mem_put(listener->mctx, secret.rstart,
REGION_SIZE(secret));
secret.rstart = isc_mem_get(listener->mctx, key->secret.length);
if (secret.rstart == NULL)
goto cleanup;
@@ -371,8 +374,6 @@ control_recvmessage(isc_task_t *task, isc_event_t *event) {
*/
if (request != NULL)
isccc_sexpr_free(&request);
isc_mem_put(listener->mctx, secret.rstart,
REGION_SIZE(secret));
} else {
log_invalid(&conn->ccmsg, result);
goto cleanup;
@@ -649,10 +650,12 @@ ns_controls_shutdown(ns_controls_t *controls) {
}
static isc_result_t
cfgkeylist_find(cfg_obj_t *keylist, const char *keyname, cfg_obj_t **objp) {
cfg_listelt_t *element;
cfgkeylist_find(const cfg_obj_t *keylist, const char *keyname,
const cfg_obj_t **objp)
{
const cfg_listelt_t *element;
const char *str;
cfg_obj_t *obj;
const cfg_obj_t *obj;
for (element = cfg_list_first(keylist);
element != NULL;
@@ -671,13 +674,13 @@ cfgkeylist_find(cfg_obj_t *keylist, const char *keyname, cfg_obj_t **objp) {
}
static isc_result_t
controlkeylist_fromcfg(cfg_obj_t *keylist, isc_mem_t *mctx,
controlkeylist_fromcfg(const cfg_obj_t *keylist, isc_mem_t *mctx,
controlkeylist_t *keyids)
{
cfg_listelt_t *element;
const cfg_listelt_t *element;
char *newstr = NULL;
const char *str;
cfg_obj_t *obj;
const cfg_obj_t *obj;
controlkey_t *key = NULL;
for (element = cfg_list_first(keylist);
@@ -712,11 +715,11 @@ controlkeylist_fromcfg(cfg_obj_t *keylist, isc_mem_t *mctx,
}
static void
register_keys(cfg_obj_t *control, cfg_obj_t *keylist,
register_keys(const cfg_obj_t *control, const cfg_obj_t *keylist,
controlkeylist_t *keyids, isc_mem_t *mctx, const char *socktext)
{
controlkey_t *keyid, *next;
cfg_obj_t *keydef;
const cfg_obj_t *keydef;
char secret[1024];
isc_buffer_t b;
isc_result_t result;
@@ -736,10 +739,10 @@ register_keys(cfg_obj_t *control, cfg_obj_t *keylist,
ISC_LIST_UNLINK(*keyids, keyid, link);
free_controlkey(keyid, mctx);
} else {
cfg_obj_t *algobj = NULL;
cfg_obj_t *secretobj = NULL;
char *algstr = NULL;
char *secretstr = NULL;
const cfg_obj_t *algobj = NULL;
const cfg_obj_t *secretobj = NULL;
const char *algstr = NULL;
const char *secretstr = NULL;
(void)cfg_map_get(keydef, "algorithm", &algobj);
(void)cfg_map_get(keydef, "secret", &secretobj);
@@ -805,11 +808,11 @@ get_rndckey(isc_mem_t *mctx, controlkeylist_t *keyids) {
isc_result_t result;
cfg_parser_t *pctx = NULL;
cfg_obj_t *config = NULL;
cfg_obj_t *key = NULL;
cfg_obj_t *algobj = NULL;
cfg_obj_t *secretobj = NULL;
char *algstr = NULL;
char *secretstr = NULL;
const cfg_obj_t *key = NULL;
const cfg_obj_t *algobj = NULL;
const cfg_obj_t *secretobj = NULL;
const char *algstr = NULL;
const char *secretstr = NULL;
controlkey_t *keyid = NULL;
char secret[1024];
isc_buffer_t b;
@@ -888,12 +891,13 @@ get_rndckey(isc_mem_t *mctx, controlkeylist_t *keyids) {
* valid or both are NULL.
*/
static void
get_key_info(cfg_obj_t *config, cfg_obj_t *control,
cfg_obj_t **global_keylistp, cfg_obj_t **control_keylistp)
get_key_info(const cfg_obj_t *config, const cfg_obj_t *control,
const cfg_obj_t **global_keylistp,
const cfg_obj_t **control_keylistp)
{
isc_result_t result;
cfg_obj_t *control_keylist = NULL;
cfg_obj_t *global_keylist = NULL;
const cfg_obj_t *control_keylist = NULL;
const cfg_obj_t *global_keylist = NULL;
REQUIRE(global_keylistp != NULL && *global_keylistp == NULL);
REQUIRE(control_keylistp != NULL && *control_keylistp == NULL);
@@ -912,15 +916,15 @@ get_key_info(cfg_obj_t *config, cfg_obj_t *control,
}
static void
update_listener(ns_controls_t *cp,
controllistener_t **listenerp, cfg_obj_t *control,
cfg_obj_t *config, isc_sockaddr_t *addr,
ns_aclconfctx_t *aclconfctx, const char *socktext)
update_listener(ns_controls_t *cp, controllistener_t **listenerp,
const cfg_obj_t *control, const cfg_obj_t *config,
isc_sockaddr_t *addr, ns_aclconfctx_t *aclconfctx,
const char *socktext)
{
controllistener_t *listener;
cfg_obj_t *allow;
cfg_obj_t *global_keylist = NULL;
cfg_obj_t *control_keylist = NULL;
const cfg_obj_t *allow;
const cfg_obj_t *global_keylist = NULL;
const cfg_obj_t *control_keylist = NULL;
dns_acl_t *new_acl = NULL;
controlkeylist_t keys;
isc_result_t result = ISC_R_SUCCESS;
@@ -977,18 +981,25 @@ update_listener(ns_controls_t *cp,
result = get_rndckey(listener->mctx, &listener->keys);
}
if (result != ISC_R_SUCCESS && global_keylist != NULL)
if (result != ISC_R_SUCCESS && global_keylist != NULL) {
/*
* This message might be a little misleading since the
* "new keys" might in fact be identical to the old ones,
* but tracking whether they are identical just for the
* sake of avoiding this message would be too much trouble.
*/
cfg_obj_log(control, ns_g_lctx, ISC_LOG_WARNING,
"couldn't install new keys for "
"command channel %s: %s",
socktext, isc_result_totext(result));
if (control != NULL)
cfg_obj_log(control, ns_g_lctx, ISC_LOG_WARNING,
"couldn't install new keys for "
"command channel %s: %s",
socktext, isc_result_totext(result));
else
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_CONTROL, ISC_LOG_WARNING,
"couldn't install new keys for "
"command channel %s: %s",
socktext, isc_result_totext(result));
}
/*
* Now, keep the old access list unless a new one can be made.
@@ -1005,26 +1016,33 @@ update_listener(ns_controls_t *cp,
dns_acl_detach(&listener->acl);
dns_acl_attach(new_acl, &listener->acl);
dns_acl_detach(&new_acl);
} else
/* XXXDCL say the old acl is still used? */
} else if (control != NULL)
cfg_obj_log(control, ns_g_lctx, ISC_LOG_WARNING,
"couldn't install new acl for "
"command channel %s: %s",
socktext, isc_result_totext(result));
else
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_CONTROL, ISC_LOG_WARNING,
"couldn't install new acl for "
"command channel %s: %s",
socktext, isc_result_totext(result));
*listenerp = listener;
}
static void
add_listener(ns_controls_t *cp, controllistener_t **listenerp,
cfg_obj_t *control, cfg_obj_t *config, isc_sockaddr_t *addr,
ns_aclconfctx_t *aclconfctx, const char *socktext)
const cfg_obj_t *control, const cfg_obj_t *config,
isc_sockaddr_t *addr, ns_aclconfctx_t *aclconfctx,
const char *socktext)
{
isc_mem_t *mctx = cp->server->mctx;
controllistener_t *listener;
cfg_obj_t *allow;
cfg_obj_t *global_keylist = NULL;
cfg_obj_t *control_keylist = NULL;
const cfg_obj_t *allow;
const cfg_obj_t *global_keylist = NULL;
const cfg_obj_t *control_keylist = NULL;
dns_acl_t *new_acl = NULL;
isc_result_t result = ISC_R_SUCCESS;
@@ -1135,13 +1153,13 @@ add_listener(ns_controls_t *cp, controllistener_t **listenerp,
}
isc_result_t
ns_controls_configure(ns_controls_t *cp, cfg_obj_t *config,
ns_controls_configure(ns_controls_t *cp, const cfg_obj_t *config,
ns_aclconfctx_t *aclconfctx)
{
controllistener_t *listener;
controllistenerlist_t new_listeners;
cfg_obj_t *controlslist = NULL;
cfg_listelt_t *element, *element2;
const cfg_obj_t *controlslist = NULL;
const cfg_listelt_t *element, *element2;
char socktext[ISC_SOCKADDR_FORMATSIZE];
ISC_LIST_INIT(new_listeners);
@@ -1163,8 +1181,8 @@ ns_controls_configure(ns_controls_t *cp, cfg_obj_t *config,
for (element = cfg_list_first(controlslist);
element != NULL;
element = cfg_list_next(element)) {
cfg_obj_t *controls;
cfg_obj_t *inetcontrols = NULL;
const cfg_obj_t *controls;
const cfg_obj_t *inetcontrols = NULL;
controls = cfg_listelt_value(element);
(void)cfg_map_get(controls, "inet", &inetcontrols);
@@ -1174,9 +1192,9 @@ ns_controls_configure(ns_controls_t *cp, cfg_obj_t *config,
for (element2 = cfg_list_first(inetcontrols);
element2 != NULL;
element2 = cfg_list_next(element2)) {
cfg_obj_t *control;
cfg_obj_t *obj;
isc_sockaddr_t *addr;
const cfg_obj_t *control;
const cfg_obj_t *obj;
isc_sockaddr_t addr;
/*
* The parser handles BIND 8 configuration file
@@ -1189,12 +1207,12 @@ ns_controls_configure(ns_controls_t *cp, cfg_obj_t *config,
control = cfg_listelt_value(element2);
obj = cfg_tuple_get(control, "address");
addr = cfg_obj_assockaddr(obj);
if (isc_sockaddr_getport(addr) == 0)
isc_sockaddr_setport(addr,
addr = *cfg_obj_assockaddr(obj);
if (isc_sockaddr_getport(&addr) == 0)
isc_sockaddr_setport(&addr,
NS_CONTROL_PORT);
isc_sockaddr_format(addr, socktext,
isc_sockaddr_format(&addr, socktext,
sizeof(socktext));
isc_log_write(ns_g_lctx,
@@ -1205,7 +1223,7 @@ ns_controls_configure(ns_controls_t *cp, cfg_obj_t *config,
socktext);
update_listener(cp, &listener, control, config,
addr, aclconfctx, socktext);
&addr, aclconfctx, socktext);
if (listener != NULL)
/*
@@ -1219,7 +1237,7 @@ ns_controls_configure(ns_controls_t *cp, cfg_obj_t *config,
* This is a new listener.
*/
add_listener(cp, &listener, control,
config, addr, aclconfctx,
config, &addr, aclconfctx,
socktext);
if (listener != NULL)
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: aclconf.h,v 1.12.208.1 2004/03/06 10:21:23 marka Exp $ */
/* $Id: aclconf.h,v 1.12.208.3 2006/03/02 00:37:20 marka Exp $ */
#ifndef NS_ACLCONF_H
#define NS_ACLCONF_H 1
@@ -49,8 +49,8 @@ ns_aclconfctx_destroy(ns_aclconfctx_t *ctx);
*/
isc_result_t
ns_acl_fromconfig(cfg_obj_t *caml,
cfg_obj_t *cctx,
ns_acl_fromconfig(const cfg_obj_t *caml,
const cfg_obj_t *cctx,
ns_aclconfctx_t *ctx,
isc_mem_t *mctx,
dns_acl_t **target);
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: client.h,v 1.60.2.2.10.10 2005/07/29 00:13:08 marka Exp $ */
/* $Id: client.h,v 1.60.2.2.10.12 2006/06/06 00:11:40 marka Exp $ */
#ifndef NAMED_CLIENT_H
#define NAMED_CLIENT_H 1
@@ -198,6 +198,12 @@ ns_client_next(ns_client_t *client, isc_result_t result);
* return no response to the client.
*/
void
ns_client_qnamereplace(ns_client_t *client, dns_name_t *name);
/*%
* Replace the qname.
*/
isc_boolean_t
ns_client_shuttingdown(ns_client_t *client);
/*
+14 -13
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001, 2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.h,v 1.4.12.4 2004/04/20 14:12:10 marka Exp $ */
/* $Id: config.h,v 1.4.12.6 2006/03/02 00:37:20 marka Exp $ */
#ifndef NAMED_CONFIG_H
#define NAMED_CONFIG_H 1
@@ -29,27 +29,28 @@ isc_result_t
ns_config_parsedefaults(cfg_parser_t *parser, cfg_obj_t **conf);
isc_result_t
ns_config_get(cfg_obj_t **maps, const char* name, cfg_obj_t **obj);
ns_config_get(const cfg_obj_t **maps, const char* name, const cfg_obj_t **obj);
isc_result_t
ns_checknames_get(cfg_obj_t **maps, const char* name, cfg_obj_t **obj);
ns_checknames_get(const cfg_obj_t **maps, const char* name,
const cfg_obj_t **obj);
int
ns_config_listcount(cfg_obj_t *list);
ns_config_listcount(const cfg_obj_t *list);
isc_result_t
ns_config_getclass(cfg_obj_t *classobj, dns_rdataclass_t defclass,
ns_config_getclass(const cfg_obj_t *classobj, dns_rdataclass_t defclass,
dns_rdataclass_t *classp);
isc_result_t
ns_config_gettype(cfg_obj_t *typeobj, dns_rdatatype_t deftype,
ns_config_gettype(const cfg_obj_t *typeobj, dns_rdatatype_t deftype,
dns_rdatatype_t *typep);
dns_zonetype_t
ns_config_getzonetype(cfg_obj_t *zonetypeobj);
ns_config_getzonetype(const cfg_obj_t *zonetypeobj);
isc_result_t
ns_config_getiplist(cfg_obj_t *config, cfg_obj_t *list,
ns_config_getiplist(const cfg_obj_t *config, const cfg_obj_t *list,
in_port_t defport, isc_mem_t *mctx,
isc_sockaddr_t **addrsp, isc_uint32_t *countp);
@@ -58,16 +59,16 @@ ns_config_putiplist(isc_mem_t *mctx, isc_sockaddr_t **addrsp,
isc_uint32_t count);
isc_result_t
ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
isc_sockaddr_t **addrsp, dns_name_t ***keys,
isc_uint32_t *countp);
ns_config_getipandkeylist(const cfg_obj_t *config, const cfg_obj_t *list,
isc_mem_t *mctx, isc_sockaddr_t **addrsp,
dns_name_t ***keys, isc_uint32_t *countp);
void
ns_config_putipandkeylist(isc_mem_t *mctx, isc_sockaddr_t **addrsp,
dns_name_t ***keys, isc_uint32_t count);
isc_result_t
ns_config_getport(cfg_obj_t *config, in_port_t *portp);
ns_config_getport(const cfg_obj_t *config, in_port_t *portp);
isc_result_t
ns_config_getkeyalgorithm(const char *str, dns_name_t **name);
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: control.h,v 1.6.2.2.2.7 2004/09/03 03:43:32 marka Exp $ */
/* $Id: control.h,v 1.6.2.2.2.9 2006/03/02 00:37:20 marka Exp $ */
#ifndef NAMED_CONTROL_H
#define NAMED_CONTROL_H 1
@@ -67,7 +67,7 @@ ns_controls_destroy(ns_controls_t **ctrlsp);
*/
isc_result_t
ns_controls_configure(ns_controls_t *controls, cfg_obj_t *config,
ns_controls_configure(ns_controls_t *controls, const cfg_obj_t *config,
ns_aclconfctx_t *aclconfctx);
/*
* Configure zero or more command channels into 'controls'
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: globals.h,v 1.59.68.5 2004/03/08 04:04:20 marka Exp $ */
/* $Id: globals.h,v 1.59.68.7 2006/03/02 00:37:20 marka Exp $ */
#ifndef NAMED_GLOBALS_H
#define NAMED_GLOBALS_H 1
@@ -75,7 +75,7 @@ EXTERN unsigned int ns_g_debuglevel INIT(0);
* Current configuration information.
*/
EXTERN cfg_obj_t * ns_g_config INIT(NULL);
EXTERN cfg_obj_t * ns_g_defaults INIT(NULL);
EXTERN const cfg_obj_t * ns_g_defaults INIT(NULL);
EXTERN const char * ns_g_conffile INIT(NS_SYSCONFDIR
"/named.conf");
EXTERN const char * ns_g_keyfile INIT(NS_SYSCONFDIR
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: logconf.h,v 1.10.208.1 2004/03/06 10:21:24 marka Exp $ */
/* $Id: logconf.h,v 1.10.208.3 2006/03/02 00:37:20 marka Exp $ */
#ifndef NAMED_LOGCONF_H
#define NAMED_LOGCONF_H 1
@@ -23,7 +23,7 @@
#include <isc/log.h>
isc_result_t
ns_log_configure(isc_logconfig_t *logconf, cfg_obj_t *logstmt);
ns_log_configure(isc_logconfig_t *logconf, const cfg_obj_t *logstmt);
/*
* Set up the logging configuration in '*logconf' according to
* the named.conf data in 'logstmt'.
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: lwresd.h,v 1.12.208.1 2004/03/06 10:21:25 marka Exp $ */
/* $Id: lwresd.h,v 1.12.208.3 2006/03/02 00:37:20 marka Exp $ */
#ifndef NAMED_LWRESD_H
#define NAMED_LWRESD_H 1
@@ -56,7 +56,7 @@ struct ns_lwreslistener {
* Configure lwresd.
*/
isc_result_t
ns_lwresd_configure(isc_mem_t *mctx, cfg_obj_t *config);
ns_lwresd_configure(isc_mem_t *mctx, const cfg_obj_t *config);
isc_result_t
ns_lwresd_parseeresolvconf(isc_mem_t *mctx, cfg_parser_t *pctx,
@@ -72,7 +72,8 @@ ns_lwresd_shutdown(void);
* Manager functions
*/
isc_result_t
ns_lwdmanager_create(isc_mem_t *mctx, cfg_obj_t *lwres, ns_lwresd_t **lwresdp);
ns_lwdmanager_create(isc_mem_t *mctx, const cfg_obj_t *lwres,
ns_lwresd_t **lwresdp);
void
ns_lwdmanager_attach(ns_lwresd_t *source, ns_lwresd_t **targetp);
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.h,v 1.58.2.1.10.11 2004/03/08 04:04:21 marka Exp $ */
/* $Id: server.h,v 1.58.2.1.10.13 2006/03/02 00:37:20 marka Exp $ */
#ifndef NAMED_SERVER_H
#define NAMED_SERVER_H 1
@@ -208,6 +208,6 @@ ns_server_dumprecursing(ns_server_t *server);
* Maintain a list of dispatches that require reserved ports.
*/
void
ns_add_reserved_dispatch(ns_server_t *server, isc_sockaddr_t *addr);
ns_add_reserved_dispatch(ns_server_t *server, const isc_sockaddr_t *addr);
#endif /* NAMED_SERVER_H */
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sortlist.h,v 1.4.208.1 2004/03/06 10:21:26 marka Exp $ */
/* $Id: sortlist.h,v 1.4.208.3 2006/03/02 00:37:20 marka Exp $ */
#ifndef NAMED_SORTLIST_H
#define NAMED_SORTLIST_H 1
@@ -28,7 +28,7 @@
* Type for callback functions that rank addresses.
*/
typedef int
(*dns_addressorderfunc_t)(isc_netaddr_t *address, void *arg);
(*dns_addressorderfunc_t)(const isc_netaddr_t *address, const void *arg);
/*
* Return value type for setup_sortlist.
@@ -40,7 +40,8 @@ typedef enum {
} ns_sortlisttype_t;
ns_sortlisttype_t
ns_sortlist_setup(dns_acl_t *acl, isc_netaddr_t *clientaddr, void **argp);
ns_sortlist_setup(dns_acl_t *acl, isc_netaddr_t *clientaddr,
const void **argp);
/*
* Find the sortlist statement in 'acl' that applies to 'clientaddr', if any.
*
@@ -55,14 +56,14 @@ ns_sortlist_setup(dns_acl_t *acl, isc_netaddr_t *clientaddr, void **argp);
*/
int
ns_sortlist_addrorder1(isc_netaddr_t *addr, void *arg);
ns_sortlist_addrorder1(const isc_netaddr_t *addr, const void *arg);
/*
* Find the sort order of 'addr' in 'arg', the matching element
* of a 1-element top-level sortlist statement.
*/
int
ns_sortlist_addrorder2(isc_netaddr_t *addr, void *arg);
ns_sortlist_addrorder2(const isc_netaddr_t *addr, const void *arg);
/*
* Find the sort order of 'addr' in 'arg', a topology-like
* ACL forming the second element in a 2-element top-level
@@ -72,7 +73,7 @@ ns_sortlist_addrorder2(isc_netaddr_t *addr, void *arg);
void
ns_sortlist_byaddrsetup(dns_acl_t *sortlist_acl, isc_netaddr_t *client_addr,
dns_addressorderfunc_t *orderp,
void **argp);
const void **argp);
/*
* Find the sortlist statement in 'acl' that applies to 'clientaddr', if any.
* If a sortlist statement applies, return in '*orderp' a pointer to a function
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tkeyconf.h,v 1.9.208.1 2004/03/06 10:21:26 marka Exp $ */
/* $Id: tkeyconf.h,v 1.9.208.3 2006/03/02 00:37:20 marka Exp $ */
#ifndef NS_TKEYCONF_H
#define NS_TKEYCONF_H 1
@@ -28,8 +28,8 @@
ISC_LANG_BEGINDECLS
isc_result_t
ns_tkeyctx_fromconfig(cfg_obj_t *options, isc_mem_t *mctx, isc_entropy_t *ectx,
dns_tkeyctx_t **tctxp);
ns_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
isc_entropy_t *ectx, dns_tkeyctx_t **tctxp);
/*
* Create a TKEY context and configure it, including the default DH key
* and default domain, according to 'options'.
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tsigconf.h,v 1.9.208.1 2004/03/06 10:21:26 marka Exp $ */
/* $Id: tsigconf.h,v 1.9.208.3 2006/03/02 00:37:20 marka Exp $ */
#ifndef NS_TSIGCONF_H
#define NS_TSIGCONF_H 1
@@ -26,7 +26,7 @@
ISC_LANG_BEGINDECLS
isc_result_t
ns_tsigkeyring_fromconfig(cfg_obj_t *config, cfg_obj_t *vconfig,
ns_tsigkeyring_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
isc_mem_t *mctx, dns_tsig_keyring_t **ringp);
/*
* Create a TSIG key ring and configure it according to the 'key'
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zoneconf.h,v 1.16.2.2.8.1 2004/03/06 10:21:27 marka Exp $ */
/* $Id: zoneconf.h,v 1.16.2.2.8.3 2006/03/02 00:37:20 marka Exp $ */
#ifndef NS_ZONECONF_H
#define NS_ZONECONF_H 1
@@ -30,8 +30,9 @@
ISC_LANG_BEGINDECLS
isc_result_t
ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
ns_aclconfctx_t *ac, dns_zone_t *zone);
ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
const cfg_obj_t *zconfig, ns_aclconfctx_t *ac,
dns_zone_t *zone);
/*
* Configure or reconfigure a zone according to the named.conf
* data in 'cctx' and 'czone'.
@@ -48,7 +49,7 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
*/
isc_boolean_t
ns_zone_reusable(dns_zone_t *zone, cfg_obj_t *zconfig);
ns_zone_reusable(dns_zone_t *zone, const cfg_obj_t *zconfig);
/*
* If 'zone' can be safely reconfigured according to the configuration
* data in 'zconfig', return ISC_TRUE. If the configuration data is so
+8 -8
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: interfacemgr.c,v 1.59.2.5.8.15 2004/08/10 04:56:23 jinmei Exp $ */
/* $Id: interfacemgr.c,v 1.59.2.5.8.18 2006/07/19 00:16:28 marka Exp $ */
#include <config.h>
@@ -182,6 +182,7 @@ ns_interface_create(ns_interfacemgr_t *mgr, isc_sockaddr_t *addr,
ifp->mgr = NULL;
ifp->generation = mgr->generation;
ifp->addr = *addr;
ifp->flags = 0;
strncpy(ifp->name, name, sizeof(ifp->name));
ifp->name[sizeof(ifp->name)-1] = '\0';
ifp->clientmgr = NULL;
@@ -717,9 +718,8 @@ do_scan(ns_interfacemgr_t *mgr, ns_listenlist_t *ext_listen,
* See if the address matches the listen-on statement;
* if not, ignore the interface.
*/
result = dns_acl_match(&listen_netaddr, NULL,
le->acl, &mgr->aclenv,
&match, NULL);
(void)dns_acl_match(&listen_netaddr, NULL, le->acl,
&mgr->aclenv, &match, NULL);
if (match <= 0)
continue;
@@ -745,9 +745,9 @@ do_scan(ns_interfacemgr_t *mgr, ns_listenlist_t *ext_listen,
for (ele = ISC_LIST_HEAD(ext_listen->elts);
ele != NULL;
ele = ISC_LIST_NEXT(ele, link)) {
dns_acl_match(&listen_netaddr, NULL,
ele->acl, NULL,
&match, NULL);
(void)dns_acl_match(&listen_netaddr,
NULL, ele->acl,
NULL, &match, NULL);
if (match > 0 && ele->port == le->port)
break;
else
+31 -29
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: logconf.c,v 1.30.2.3.10.2 2004/03/06 10:21:18 marka Exp $ */
/* $Id: logconf.c,v 1.30.2.3.10.4 2006/03/02 00:37:20 marka Exp $ */
#include <config.h>
@@ -41,13 +41,13 @@
* in 'ccat' and add it to 'lctx'.
*/
static isc_result_t
category_fromconf(cfg_obj_t *ccat, isc_logconfig_t *lctx) {
category_fromconf(const cfg_obj_t *ccat, isc_logconfig_t *lctx) {
isc_result_t result;
const char *catname;
isc_logcategory_t *category;
isc_logmodule_t *module;
cfg_obj_t *destinations = NULL;
cfg_listelt_t *element = NULL;
const cfg_obj_t *destinations = NULL;
const cfg_listelt_t *element = NULL;
catname = cfg_obj_asstring(cfg_tuple_get(ccat, "name"));
category = isc_log_categorybyname(ns_g_lctx, catname);
@@ -68,8 +68,8 @@ category_fromconf(cfg_obj_t *ccat, isc_logconfig_t *lctx) {
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *channel = cfg_listelt_value(element);
char *channelname = cfg_obj_asstring(channel);
const cfg_obj_t *channel = cfg_listelt_value(element);
const char *channelname = cfg_obj_asstring(channel);
result = isc_log_usechannel(lctx, channelname, category,
module);
@@ -89,18 +89,18 @@ category_fromconf(cfg_obj_t *ccat, isc_logconfig_t *lctx) {
* in 'cchan' and add it to 'lctx'.
*/
static isc_result_t
channel_fromconf(cfg_obj_t *channel, isc_logconfig_t *lctx) {
channel_fromconf(const cfg_obj_t *channel, isc_logconfig_t *lctx) {
isc_result_t result;
isc_logdestination_t dest;
unsigned int type;
unsigned int flags = 0;
int level;
const char *channelname;
cfg_obj_t *fileobj = NULL;
cfg_obj_t *syslogobj = NULL;
cfg_obj_t *nullobj = NULL;
cfg_obj_t *stderrobj = NULL;
cfg_obj_t *severity = NULL;
const cfg_obj_t *fileobj = NULL;
const cfg_obj_t *syslogobj = NULL;
const cfg_obj_t *nullobj = NULL;
const cfg_obj_t *stderrobj = NULL;
const cfg_obj_t *severity = NULL;
int i;
channelname = cfg_obj_asstring(cfg_map_getname(channel));
@@ -130,9 +130,10 @@ channel_fromconf(cfg_obj_t *channel, isc_logconfig_t *lctx) {
type = ISC_LOG_TONULL;
if (fileobj != NULL) {
cfg_obj_t *pathobj = cfg_tuple_get(fileobj, "file");
cfg_obj_t *sizeobj = cfg_tuple_get(fileobj, "size");
cfg_obj_t *versionsobj = cfg_tuple_get(fileobj, "versions");
const cfg_obj_t *pathobj = cfg_tuple_get(fileobj, "file");
const cfg_obj_t *sizeobj = cfg_tuple_get(fileobj, "size");
const cfg_obj_t *versionsobj =
cfg_tuple_get(fileobj, "versions");
isc_int32_t versions = ISC_LOG_ROLLNEVER;
isc_offset_t size = 0;
@@ -157,7 +158,7 @@ channel_fromconf(cfg_obj_t *channel, isc_logconfig_t *lctx) {
type = ISC_LOG_TOSYSLOG;
if (cfg_obj_isstring(syslogobj)) {
char *facilitystr = cfg_obj_asstring(syslogobj);
const char *facilitystr = cfg_obj_asstring(syslogobj);
(void)isc_syslog_facilityfromstring(facilitystr,
&facility);
}
@@ -174,9 +175,9 @@ channel_fromconf(cfg_obj_t *channel, isc_logconfig_t *lctx) {
* Munge flags.
*/
{
cfg_obj_t *printcat = NULL;
cfg_obj_t *printsev = NULL;
cfg_obj_t *printtime = NULL;
const cfg_obj_t *printcat = NULL;
const cfg_obj_t *printsev = NULL;
const cfg_obj_t *printtime = NULL;
(void)cfg_map_get(channel, "print-category", &printcat);
(void)cfg_map_get(channel, "print-severity", &printsev);
@@ -193,7 +194,7 @@ channel_fromconf(cfg_obj_t *channel, isc_logconfig_t *lctx) {
level = ISC_LOG_INFO;
if (cfg_map_get(channel, "severity", &severity) == ISC_R_SUCCESS) {
if (cfg_obj_isstring(severity)) {
char *str = cfg_obj_asstring(severity);
const char *str = cfg_obj_asstring(severity);
if (strcasecmp(str, "critical") == 0)
level = ISC_LOG_CRITICAL;
else if (strcasecmp(str, "error") == 0)
@@ -242,13 +243,14 @@ channel_fromconf(cfg_obj_t *channel, isc_logconfig_t *lctx) {
}
isc_result_t
ns_log_configure(isc_logconfig_t *logconf, cfg_obj_t *logstmt) {
ns_log_configure(isc_logconfig_t *logconf, const cfg_obj_t *logstmt) {
isc_result_t result;
cfg_obj_t *channels = NULL;
cfg_obj_t *categories = NULL;
cfg_listelt_t *element;
const cfg_obj_t *channels = NULL;
const cfg_obj_t *categories = NULL;
const cfg_listelt_t *element;
isc_boolean_t default_set = ISC_FALSE;
isc_boolean_t unmatched_set = ISC_FALSE;
const cfg_obj_t *catname;
CHECK(ns_log_setdefaultchannels(logconf));
@@ -257,7 +259,7 @@ ns_log_configure(isc_logconfig_t *logconf, cfg_obj_t *logstmt) {
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *channel = cfg_listelt_value(element);
const cfg_obj_t *channel = cfg_listelt_value(element);
CHECK(channel_fromconf(channel, logconf));
}
@@ -266,15 +268,15 @@ ns_log_configure(isc_logconfig_t *logconf, cfg_obj_t *logstmt) {
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *category = cfg_listelt_value(element);
const cfg_obj_t *category = cfg_listelt_value(element);
CHECK(category_fromconf(category, logconf));
if (!default_set) {
cfg_obj_t *catname = cfg_tuple_get(category, "name");
catname = cfg_tuple_get(category, "name");
if (strcmp(cfg_obj_asstring(catname), "default") == 0)
default_set = ISC_TRUE;
}
if (!unmatched_set) {
cfg_obj_t *catname = cfg_tuple_get(category, "name");
catname = cfg_tuple_get(category, "name");
if (strcmp(cfg_obj_asstring(catname), "unmatched") == 0)
unmatched_set = ISC_TRUE;
}
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: lwdgabn.c,v 1.13.12.3 2004/03/08 04:04:19 marka Exp $ */
/* $Id: lwdgabn.c,v 1.13.12.5 2006/03/02 00:37:20 marka Exp $ */
#include <config.h>
@@ -120,7 +120,7 @@ sort_addresses(ns_lwdclient_t *client) {
rankedaddress *addrs;
isc_netaddr_t remote;
dns_addressorderfunc_t order;
void *arg;
const void *arg;
ns_lwresd_t *lwresd = client->clientmgr->listener->manager;
unsigned int i;
isc_result_t result;
+4 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: lwdgrbn.c,v 1.11.208.3 2004/03/08 04:04:19 marka Exp $ */
/* $Id: lwdgrbn.c,v 1.11.208.5 2006/01/04 23:50:19 marka Exp $ */
#include <config.h>
@@ -358,7 +358,7 @@ lookup_done(isc_task_t *task, isc_event_t *event) {
client->sendlength = r.length;
result = ns_lwdclient_sendreply(client, &r);
if (result != ISC_R_SUCCESS)
goto out;
goto out2;
NS_LWDCLIENT_SETSEND(client);
@@ -378,7 +378,7 @@ lookup_done(isc_task_t *task, isc_event_t *event) {
if (grbn->siglen != NULL)
isc_mem_put(cm->mctx, grbn->siglen,
grbn->nsigs * sizeof(lwres_uint16_t));
out2:
if (client->lookup != NULL)
dns_lookup_destroy(&client->lookup);
if (lwb.base != NULL)
+23 -18
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: lwresd.8,v 1.13.208.5 2005/10/13 02:33:47 marka Exp $
.\" $Id: lwresd.8,v 1.13.208.6 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: lwresd
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "LWRESD" "8" "June 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -57,41 +60,41 @@ entries are present, or if forwarding fails,
\fBlwresd\fR
resolves the queries autonomously starting at the root name servers, using a built\-in list of root server hints.
.SH "OPTIONS"
.TP
.TP 3n
\-C \fIconfig\-file\fR
Use
\fIconfig\-file\fR
as the configuration file instead of the default,
\fI/etc/resolv.conf\fR.
.TP
.TP 3n
\-d \fIdebug\-level\fR
Set the daemon's debug level to
\fIdebug\-level\fR. Debugging traces from
\fBlwresd\fR
become more verbose as the debug level increases.
.TP
.TP 3n
\-f
Run the server in the foreground (i.e. do not daemonize).
.TP
.TP 3n
\-g
Run the server in the foreground and force all logging to
\fIstderr\fR.
.TP
.TP 3n
\-n \fI#cpus\fR
Create
\fI#cpus\fR
worker threads to take advantage of multiple CPUs. If not specified,
\fBlwresd\fR
will try to determine the number of CPUs present and create one thread per CPU. If it is unable to determine the number of CPUs, a single worker thread will be created.
.TP
.TP 3n
\-P \fIport\fR
Listen for lightweight resolver queries on port
\fIport\fR. If not specified, the default is port 921.
.TP
.TP 3n
\-p \fIport\fR
Send DNS lookups to port
\fIport\fR. If not specified, the default is port 53. This provides a way of testing the lightweight resolver daemon with a name server that listens for queries on a non\-standard port number.
.TP
.TP 3n
\-s
Write memory usage statistics to
\fIstdout\fR
@@ -100,7 +103,7 @@ on exit.
.B "Note:"
This option is mainly of interest to BIND 9 developers and may be removed or changed in a future release.
.RE
.TP
.TP 3n
\-t \fIdirectory\fR
\fBchroot()\fR
to
@@ -114,20 +117,20 @@ option, as chrooting a process running as root doesn't enhance security on most
\fBchroot()\fR
is defined allows a process with root privileges to escape a chroot jail.
.RE
.TP
.TP 3n
\-u \fIuser\fR
\fBsetuid()\fR
to
\fIuser\fR
after completing privileged operations, such as creating sockets that listen on privileged ports.
.TP
.TP 3n
\-v
Report the version number and exit.
.SH "FILES"
.TP
.TP 3n
\fI/etc/resolv.conf\fR
The default configuration file.
.TP
.TP 3n
\fI/var/run/lwresd.pid\fR
The default process\-id file.
.SH "SEE ALSO"
@@ -138,3 +141,5 @@ The default process\-id file.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+13 -12
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: lwresd.c,v 1.37.2.2.2.5 2004/03/08 04:04:19 marka Exp $ */
/* $Id: lwresd.c,v 1.37.2.2.2.8 2006/02/28 06:32:53 marka Exp $ */
/*
* Main program for the Lightweight Resolver Daemon.
@@ -285,14 +285,14 @@ ns_lwresd_parseeresolvconf(isc_mem_t *mctx, cfg_parser_t *pctx,
* Handle lwresd manager objects
*/
isc_result_t
ns_lwdmanager_create(isc_mem_t *mctx, cfg_obj_t *lwres,
ns_lwdmanager_create(isc_mem_t *mctx, const cfg_obj_t *lwres,
ns_lwresd_t **lwresdp)
{
ns_lwresd_t *lwresd;
const char *vname;
dns_rdataclass_t vclass;
cfg_obj_t *obj, *viewobj, *searchobj;
cfg_listelt_t *element;
const cfg_obj_t *obj, *viewobj, *searchobj;
const cfg_listelt_t *element;
isc_result_t result;
INSIST(lwresdp != NULL && *lwresdp == NULL);
@@ -356,8 +356,8 @@ ns_lwdmanager_create(isc_mem_t *mctx, cfg_obj_t *lwres,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *search;
char *searchstr;
const cfg_obj_t *search;
const char *searchstr;
isc_buffer_t namebuf;
dns_fixedname_t fname;
dns_name_t *name;
@@ -407,6 +407,7 @@ ns_lwdmanager_create(isc_mem_t *mctx, cfg_obj_t *lwres,
ns_lwsearchlist_detach(&lwresd->search);
if (lwresd->mctx != NULL)
isc_mem_detach(&lwresd->mctx);
isc_mem_put(mctx, lwresd, sizeof(ns_lwresd_t));
return (result);
}
@@ -744,11 +745,11 @@ configure_listener(isc_sockaddr_t *address, ns_lwresd_t *lwresd,
}
isc_result_t
ns_lwresd_configure(isc_mem_t *mctx, cfg_obj_t *config) {
cfg_obj_t *lwreslist = NULL;
cfg_obj_t *lwres = NULL;
cfg_obj_t *listenerslist = NULL;
cfg_listelt_t *element = NULL;
ns_lwresd_configure(isc_mem_t *mctx, const cfg_obj_t *config) {
const cfg_obj_t *lwreslist = NULL;
const cfg_obj_t *lwres = NULL;
const cfg_obj_t *listenerslist = NULL;
const cfg_listelt_t *element = NULL;
ns_lwreslistener_t *listener;
ns_lwreslistenerlist_t newlisteners;
isc_result_t result;
+8 -8
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: lwresd.html,v 1.4.2.1.4.8 2005/10/13 02:33:47 marka Exp $ -->
<!-- $Id: lwresd.html,v 1.4.2.1.4.10 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>lwresd</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">lwresd</span> &#8212; lightweight resolver daemon</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">lwresd</code> [<code class="option">-C <em class="replaceable"><code>config-file</code></em></code>] [<code class="option">-d <em class="replaceable"><code>debug-level</code></em></code>] [<code class="option">-f</code>] [<code class="option">-g</code>] [<code class="option">-i <em class="replaceable"><code>pid-file</code></em></code>] [<code class="option">-n <em class="replaceable"><code>#cpus</code></em></code>] [<code class="option">-P <em class="replaceable"><code>port</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-s</code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-u <em class="replaceable"><code>user</code></em></code>] [<code class="option">-v</code>]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525920"></a><h2>DESCRIPTION</h2>
<a name="id2549484"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">lwresd</strong></span> is the daemon providing name lookup
services to clients that use the BIND 9 lightweight resolver
@@ -67,7 +67,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525969"></a><h2>OPTIONS</h2>
<a name="id2549533"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-C <em class="replaceable"><code>config-file</code></em></span></dt>
<dd><p>
@@ -159,7 +159,7 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526237"></a><h2>FILES</h2>
<a name="id2549939"></a><h2>FILES</h2>
<div class="variablelist"><dl>
<dt><span class="term"><code class="filename">/etc/resolv.conf</code></span></dt>
<dd><p>
@@ -172,7 +172,7 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526277"></a><h2>SEE ALSO</h2>
<a name="id2549978"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">lwres</span>(3)</span>,
@@ -180,7 +180,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526315"></a><h2>AUTHOR</h2>
<a name="id2550017"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+5 -5
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: main.c,v 1.119.2.3.2.22 2005/04/29 01:04:47 marka Exp $ */
/* $Id: main.c,v 1.119.2.3.2.25 2006/11/10 18:51:06 marka Exp $ */
#include <config.h>
@@ -473,7 +473,7 @@ create_managers(void) {
result = isc_taskmgr_create(ns_g_mctx, ns_g_cpus, 0, &ns_g_taskmgr);
if (result != ISC_R_SUCCESS) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"ns_taskmgr_create() failed: %s",
"isc_taskmgr_create() failed: %s",
isc_result_totext(result));
return (ISC_R_UNEXPECTED);
}
@@ -481,7 +481,7 @@ create_managers(void) {
result = isc_timermgr_create(ns_g_mctx, &ns_g_timermgr);
if (result != ISC_R_SUCCESS) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"ns_timermgr_create() failed: %s",
"isc_timermgr_create() failed: %s",
isc_result_totext(result));
return (ISC_R_UNEXPECTED);
}
@@ -856,7 +856,7 @@ main(int argc, char *argv[]) {
if (result == ISC_R_SUCCESS && instance != NULL) {
if (smf_disable_instance(instance, 0) != 0)
UNEXPECTED_ERROR(__FILE__, __LINE__,
"smf_disable_instance() ",
"smf_disable_instance() "
"failed for %s : %s",
instance,
scf_strerror(scf_error()));
+29 -23
View File
@@ -1,4 +1,4 @@
.\" Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
.\"
.\" Permission to use, copy, modify, and distribute this software for any
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: named.8,v 1.17.208.6 2005/10/13 02:33:46 marka Exp $
.\" $Id: named.8,v 1.17.208.9 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: named
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "NAMED" "8" "June 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -41,21 +44,21 @@ When invoked without arguments,
will read the default configuration file
\fI/etc/named.conf\fR, read any initial data, and listen for queries.
.SH "OPTIONS"
.TP
.TP 3n
\-4
Use IPv4 only even if the host machine is capable of IPv6.
\fB\-4\fR
and
\fB\-6\fR
are mutually exclusive.
.TP
.TP 3n
\-6
Use IPv6 only even if the host machine is capable of IPv4.
\fB\-4\fR
and
\fB\-6\fR
are mutually exclusive.
.TP
.TP 3n
\-c \fIconfig\-file\fR
Use
\fIconfig\-file\fR
@@ -65,31 +68,31 @@ as the configuration file instead of the default,
option in the configuration file,
\fIconfig\-file\fR
should be an absolute pathname.
.TP
.TP 3n
\-d \fIdebug\-level\fR
Set the daemon's debug level to
\fIdebug\-level\fR. Debugging traces from
\fBnamed\fR
become more verbose as the debug level increases.
.TP
.TP 3n
\-f
Run the server in the foreground (i.e. do not daemonize).
.TP
.TP 3n
\-g
Run the server in the foreground and force all logging to
\fIstderr\fR.
.TP
.TP 3n
\-n \fI#cpus\fR
Create
\fI#cpus\fR
worker threads to take advantage of multiple CPUs. If not specified,
\fBnamed\fR
will try to determine the number of CPUs present and create one thread per CPU. If it is unable to determine the number of CPUs, a single worker thread will be created.
.TP
.TP 3n
\-p \fIport\fR
Listen for queries on port
\fIport\fR. If not specified, the default is port 53.
.TP
.TP 3n
\-s
Write memory usage statistics to
\fIstdout\fR
@@ -98,7 +101,7 @@ on exit.
.B "Note:"
This option is mainly of interest to BIND 9 developers and may be removed or changed in a future release.
.RE
.TP
.TP 3n
\-t \fIdirectory\fR
\fBchroot()\fR
to
@@ -112,7 +115,7 @@ option, as chrooting a process running as root doesn't enhance security on most
\fBchroot()\fR
is defined allows a process with root privileges to escape a chroot jail.
.RE
.TP
.TP 3n
\-u \fIuser\fR
\fBsetuid()\fR
to
@@ -131,10 +134,10 @@ option only works when
is run on kernel 2.2.18 or later, or kernel 2.3.99\-pre3 or later, since previous kernels did not allow privileges to be retained after
\fBsetuid()\fR.
.RE
.TP
.TP 3n
\-v
Report the version number and exit.
.TP
.TP 3n
\-x \fIcache\-file\fR
Load data from
\fIcache\-file\fR
@@ -148,10 +151,10 @@ This option must not be used. It is only of interest to BIND 9 developers and ma
In routine operation, signals should not be used to control the nameserver;
\fBrndc\fR
should be used instead.
.TP
.TP 3n
SIGHUP
Force a reload of the server.
.TP
.TP 3n
SIGINT, SIGTERM
Shut down the server.
.PP
@@ -163,10 +166,10 @@ The
configuration file is too complex to describe in detail here. A complete description is provided in the
BIND 9 Administrator Reference Manual.
.SH "FILES"
.TP
.TP 3n
\fI/etc/named.conf\fR
The default configuration file.
.TP
.TP 3n
\fI/var/run/named.pid\fR
The default process\-id file.
.SH "SEE ALSO"
@@ -176,7 +179,10 @@ RFC 1034,
RFC 1035,
\fBrndc\fR(8),
\fBlwresd\fR(8),
\fBnamed.conf\fR(5),
BIND 9 Administrator Reference Manual.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004\-2006 Internet Systems Consortium, Inc. ("ISC")
+40 -12
View File
@@ -1,4 +1,4 @@
.\" Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
@@ -12,15 +12,18 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: named.conf.5,v 1.1.4.6 2005/10/13 02:33:47 marka Exp $
.\" $Id: named.conf.5,v 1.1.4.10 2006/09/13 02:56:20 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.TH "\\FINAMED.CONF\\FR" "5" "Aug 13, 2004" "BIND9" "BIND9"
.\" Title: \fInamed.conf\fR
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: Aug 13, 2004
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "\fINAMED.CONF\fR" "5" "Aug 13, 2004" "BIND9" "BIND9"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
@@ -43,27 +46,34 @@ C++ style: // to end of line
Unix style: # to end of line
.SH "ACL"
.sp
.RS 3n
.nf
acl \fIstring\fR { \fIaddress_match_element\fR; ... };
.fi
.RE
.SH "KEY"
.sp
.RS 3n
.nf
key \fIdomain_name\fR {
algorithm \fIstring\fR;
secret \fIstring\fR;
};
.fi
.RE
.SH "MASTERS"
.sp
.RS 3n
.nf
masters \fIstring\fR [ port \fIinteger\fR ] {
( \fImasters\fR | \fIipv4_address\fR [port \fIinteger\fR] |
\fIipv6_address\fR [port \fIinteger\fR] ) [ key \fIstring\fR ]; ...
};
.fi
.RE
.SH "SERVER"
.sp
.RS 3n
.nf
server ( \fIipv4_address\fR | \fIipv6_address\fR ) {
bogus \fIboolean\fR;
@@ -80,15 +90,19 @@ server ( \fIipv4_address\fR | \fIipv6_address\fR ) {
support\-ixfr \fIboolean\fR; // obsolete
};
.fi
.RE
.SH "TRUSTED\-KEYS"
.sp
.RS 3n
.nf
trusted\-keys {
\fIdomain_name\fR \fIflags\fR \fIprotocol\fR \fIalgorithm\fR \fIkey\fR; ...
};
.fi
.RE
.SH "CONTROLS"
.sp
.RS 3n
.nf
controls {
inet ( \fIipv4_address\fR | \fIipv6_address\fR | * )
@@ -98,8 +112,10 @@ controls {
unix \fIunsupported\fR; // not implemented
};
.fi
.RE
.SH "LOGGING"
.sp
.RS 3n
.nf
logging {
channel \fIstring\fR {
@@ -115,8 +131,10 @@ logging {
category \fIstring\fR { \fIstring\fR; ... };
};
.fi
.RE
.SH "LWRES"
.sp
.RS 3n
.nf
lwres {
listen\-on [ port \fIinteger\fR ] {
@@ -127,8 +145,10 @@ lwres {
ndots \fIinteger\fR;
};
.fi
.RE
.SH "OPTIONS"
.sp
.RS 3n
.nf
options {
avoid\-v4\-udp\-ports { \fIport\fR; ... };
@@ -137,6 +157,7 @@ options {
coresize \fIsize\fR;
datasize \fIsize\fR;
directory \fIquoted_string\fR;
cache\-file \fIquoted_string\fR; // test option
dump\-file \fIquoted_string\fR;
files \fIsize\fR;
heartbeat\-interval \fIinteger\fR;
@@ -184,8 +205,8 @@ options {
rfc2308\-type1 \fIboolean\fR; // not yet implemented
additional\-from\-auth \fIboolean\fR;
additional\-from\-cache \fIboolean\fR;
query\-source \fIquerysource4\fR;
query\-source\-v6 \fIquerysource6\fR;
query\-source [ address ( \fIipv4_address\fR | * ) ] [ port ( \fIinteger\fR | * ) ];
query\-source\-v6 [ address ( \fIipv6_address\fR | * ) ] [ port ( \fIinteger\fR | * ) ];
cleaning\-interval \fIinteger\fR;
min\-roots \fIinteger\fR; // not implemented
lame\-ttl \fIinteger\fR;
@@ -260,8 +281,10 @@ options {
use\-id\-pool \fIboolean\fR; // obsolete
};
.fi
.RE
.SH "VIEW"
.sp
.RS 3n
.nf
view \fIstring\fR \fIoptional_class\fR {
match\-clients { \fIaddress_match_element\fR; ... };
@@ -295,8 +318,8 @@ view \fIstring\fR \fIoptional_class\fR {
rfc2308\-type1 \fIboolean\fR; // not yet implemented
additional\-from\-auth \fIboolean\fR;
additional\-from\-cache \fIboolean\fR;
query\-source \fIquerysource4\fR;
query\-source\-v6 \fIquerysource6\fR;
query\-source [ address ( \fIipv4_address\fR | * ) ] [ port ( \fIinteger\fR | * ) ];
query\-source\-v6 [ address ( \fIipv6_address\fR | * ) ] [ port ( \fIinteger\fR | * ) ];
cleaning\-interval \fIinteger\fR;
min\-roots \fIinteger\fR; // not implemented
lame\-ttl \fIinteger\fR;
@@ -363,8 +386,10 @@ view \fIstring\fR \fIoptional_class\fR {
max\-ixfr\-log\-size \fIsize\fR; // obsolete
};
.fi
.RE
.SH "ZONE"
.sp
.RS 3n
.nf
zone \fIstring\fR \fIoptional_class\fR {
type ( master | slave | stub | hint |
@@ -428,6 +453,7 @@ zone \fIstring\fR \fIoptional_class\fR {
pubkey \fIinteger\fR \fIinteger\fR \fIinteger\fR \fIquoted_string\fR; // obsolete
};
.fi
.RE
.SH "FILES"
.PP
\fI/etc/named.conf\fR
@@ -435,4 +461,6 @@ zone \fIstring\fR \fIoptional_class\fR {
.PP
\fBnamed\fR(8),
\fBrndc\fR(8),
\fBBIND 9 Adminstrators Reference Manual\fR().
\fBBIND 9 Administrator Reference Manual\fR().
.SH "COPYRIGHT"
Copyright \(co 2004\-2006 Internet Systems Consortium, Inc. ("ISC")
+9 -7
View File
@@ -2,7 +2,7 @@
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
[<!ENTITY mdash "&#8212;">]>
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
-
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
@@ -17,7 +17,7 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: named.conf.docbook,v 1.1.4.4 2005/05/13 01:22:33 marka Exp $ -->
<!-- $Id: named.conf.docbook,v 1.1.4.8 2006/09/13 00:26:41 marka Exp $ -->
<refentry>
<refentryinfo>
@@ -34,6 +34,7 @@
<copyright>
<year>2004</year>
<year>2005</year>
<year>2006</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
</docinfo>
@@ -183,6 +184,7 @@ options {
coresize <replaceable>size</replaceable>;
datasize <replaceable>size</replaceable>;
directory <replaceable>quoted_string</replaceable>;
cache-file <replaceable>quoted_string</replaceable>; // test option
dump-file <replaceable>quoted_string</replaceable>;
files <replaceable>size</replaceable>;
heartbeat-interval <replaceable>integer</replaceable>;
@@ -230,8 +232,8 @@ options {
rfc2308-type1 <replaceable>boolean</replaceable>; // not yet implemented
additional-from-auth <replaceable>boolean</replaceable>;
additional-from-cache <replaceable>boolean</replaceable>;
query-source <replaceable>querysource4</replaceable>;
query-source-v6 <replaceable>querysource6</replaceable>;
query-source <optional> address ( <replaceable>ipv4_address</replaceable> | * ) </optional> <optional> port ( <replaceable>integer</replaceable> | * ) </optional>;
query-source-v6 <optional> address ( <replaceable>ipv6_address</replaceable> | * ) </optional> <optional> port ( <replaceable>integer</replaceable> | * ) </optional>;
cleaning-interval <replaceable>integer</replaceable>;
min-roots <replaceable>integer</replaceable>; // not implemented
lame-ttl <replaceable>integer</replaceable>;
@@ -357,8 +359,8 @@ view <replaceable>string</replaceable> <replaceable>optional_class</replaceable>
rfc2308-type1 <replaceable>boolean</replaceable>; // not yet implemented
additional-from-auth <replaceable>boolean</replaceable>;
additional-from-cache <replaceable>boolean</replaceable>;
query-source <replaceable>querysource4</replaceable>;
query-source-v6 <replaceable>querysource6</replaceable>;
query-source <optional> address ( <replaceable>ipv4_address</replaceable> | * ) </optional> <optional> port ( <replaceable>integer</replaceable> | * ) </optional>;
query-source-v6 <optional> address ( <replaceable>ipv6_address</replaceable> | * ) </optional> <optional> port ( <replaceable>integer</replaceable> | * ) </optional>;
cleaning-interval <replaceable>integer</replaceable>;
min-roots <replaceable>integer</replaceable>; // not implemented
lame-ttl <replaceable>integer</replaceable>;
@@ -530,7 +532,7 @@ zone <replaceable>string</replaceable> <replaceable>optional_class</replaceable>
<refentrytitle>rndc</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>BIND 9 Adminstrators Reference Manual</refentrytitle>
<refentrytitle>BIND 9 Administrator Reference Manual</refentrytitle>
</citerefentry>.
</para>
</refsect1>
+24 -23
View File
@@ -1,5 +1,5 @@
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
-
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
@@ -13,15 +13,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: named.conf.html,v 1.1.4.10 2005/10/13 02:33:48 marka Exp $ -->
<!-- $Id: named.conf.html,v 1.1.4.15 2006/09/13 02:56:21 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>named.conf</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><code class="filename">named.conf</code> &#8212; configuration file for named</p>
@@ -31,7 +31,7 @@
<div class="cmdsynopsis"><p><code class="command">named.conf</code> </p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525889"></a><h2>DESCRIPTION</h2>
<a name="id2549388"></a><h2>DESCRIPTION</h2>
<p>
<code class="filename">named.conf</code> is the configuration file for
<span><strong class="command">named</strong></span>. Statements are enclosed
@@ -50,14 +50,14 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525917"></a><h2>ACL</h2>
<a name="id2549417"></a><h2>ACL</h2>
<div class="literallayout"><p><br>
acl <em class="replaceable"><code>string</code></em> { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
<br>
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525933"></a><h2>KEY</h2>
<a name="id2549433"></a><h2>KEY</h2>
<div class="literallayout"><p><br>
key <em class="replaceable"><code>domain_name</code></em> {<br>
algorithm <em class="replaceable"><code>string</code></em>;<br>
@@ -66,7 +66,7 @@ key
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525953"></a><h2>MASTERS</h2>
<a name="id2549452"></a><h2>MASTERS</h2>
<div class="literallayout"><p><br>
masters <em class="replaceable"><code>string</code></em> [<span class="optional"> port <em class="replaceable"><code>integer</code></em> </span>] {<br>
( <em class="replaceable"><code>masters</code></em> | <em class="replaceable"><code>ipv4_address</code></em> [<span class="optional">port <em class="replaceable"><code>integer</code></em></span>] |<br>
@@ -75,7 +75,7 @@ masters
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525998"></a><h2>SERVER</h2>
<a name="id2549498"></a><h2>SERVER</h2>
<div class="literallayout"><p><br>
server ( <em class="replaceable"><code>ipv4_address</code></em> | <em class="replaceable"><code>ipv6_address</code></em> ) {<br>
bogus <em class="replaceable"><code>boolean</code></em>;<br>
@@ -95,7 +95,7 @@ server
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526056"></a><h2>TRUSTED-KEYS</h2>
<a name="id2549556"></a><h2>TRUSTED-KEYS</h2>
<div class="literallayout"><p><br>
trusted-keys {<br>
<em class="replaceable"><code>domain_name</code></em> <em class="replaceable"><code>flags</code></em> <em class="replaceable"><code>protocol</code></em> <em class="replaceable"><code>algorithm</code></em> <em class="replaceable"><code>key</code></em>; ... <br>
@@ -103,7 +103,7 @@ trusted-keys
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526082"></a><h2>CONTROLS</h2>
<a name="id2549581"></a><h2>CONTROLS</h2>
<div class="literallayout"><p><br>
controls {<br>
inet ( <em class="replaceable"><code>ipv4_address</code></em> | <em class="replaceable"><code>ipv6_address</code></em> | * )<br>
@@ -115,7 +115,7 @@ controls
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526117"></a><h2>LOGGING</h2>
<a name="id2549617"></a><h2>LOGGING</h2>
<div class="literallayout"><p><br>
logging {<br>
channel <em class="replaceable"><code>string</code></em> {<br>
@@ -133,7 +133,7 @@ logging
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526155"></a><h2>LWRES</h2>
<a name="id2549655"></a><h2>LWRES</h2>
<div class="literallayout"><p><br>
lwres {<br>
listen-on [<span class="optional"> port <em class="replaceable"><code>integer</code></em> </span>] {<br>
@@ -146,7 +146,7 @@ lwres
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526197"></a><h2>OPTIONS</h2>
<a name="id2549697"></a><h2>OPTIONS</h2>
<div class="literallayout"><p><br>
options {<br>
avoid-v4-udp-ports { <em class="replaceable"><code>port</code></em>; ... };<br>
@@ -155,6 +155,7 @@ options
coresize <em class="replaceable"><code>size</code></em>;<br>
datasize <em class="replaceable"><code>size</code></em>;<br>
directory <em class="replaceable"><code>quoted_string</code></em>;<br>
cache-file <em class="replaceable"><code>quoted_string</code></em>; // test option<br>
dump-file <em class="replaceable"><code>quoted_string</code></em>;<br>
files <em class="replaceable"><code>size</code></em>;<br>
heartbeat-interval <em class="replaceable"><code>integer</code></em>;<br>
@@ -202,8 +203,8 @@ options
rfc2308-type1 <em class="replaceable"><code>boolean</code></em>; // not yet implemented<br>
additional-from-auth <em class="replaceable"><code>boolean</code></em>;<br>
additional-from-cache <em class="replaceable"><code>boolean</code></em>;<br>
query-source <em class="replaceable"><code>querysource4</code></em>;<br>
query-source-v6 <em class="replaceable"><code>querysource6</code></em>;<br>
query-source [<span class="optional"> address ( <em class="replaceable"><code>ipv4_address</code></em> | * ) </span>] [<span class="optional"> port ( <em class="replaceable"><code>integer</code></em> | * ) </span>];<br>
query-source-v6 [<span class="optional"> address ( <em class="replaceable"><code>ipv6_address</code></em> | * ) </span>] [<span class="optional"> port ( <em class="replaceable"><code>integer</code></em> | * ) </span>];<br>
cleaning-interval <em class="replaceable"><code>integer</code></em>;<br>
min-roots <em class="replaceable"><code>integer</code></em>; // not implemented<br>
lame-ttl <em class="replaceable"><code>integer</code></em>;<br>
@@ -289,7 +290,7 @@ options
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526858"></a><h2>VIEW</h2>
<a name="id2550312"></a><h2>VIEW</h2>
<div class="literallayout"><p><br>
view <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>optional_class</code></em> {<br>
match-clients { <em class="replaceable"><code>address_match_element</code></em>; ... };<br>
@@ -328,8 +329,8 @@ view
rfc2308-type1 <em class="replaceable"><code>boolean</code></em>; // not yet implemented<br>
additional-from-auth <em class="replaceable"><code>boolean</code></em>;<br>
additional-from-cache <em class="replaceable"><code>boolean</code></em>;<br>
query-source <em class="replaceable"><code>querysource4</code></em>;<br>
query-source-v6 <em class="replaceable"><code>querysource6</code></em>;<br>
query-source [<span class="optional"> address ( <em class="replaceable"><code>ipv4_address</code></em> | * ) </span>] [<span class="optional"> port ( <em class="replaceable"><code>integer</code></em> | * ) </span>];<br>
query-source-v6 [<span class="optional"> address ( <em class="replaceable"><code>ipv6_address</code></em> | * ) </span>] [<span class="optional"> port ( <em class="replaceable"><code>integer</code></em> | * ) </span>];<br>
cleaning-interval <em class="replaceable"><code>integer</code></em>;<br>
min-roots <em class="replaceable"><code>integer</code></em>; // not implemented<br>
lame-ttl <em class="replaceable"><code>integer</code></em>;<br>
@@ -407,7 +408,7 @@ view
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2527269"></a><h2>ZONE</h2>
<a name="id2550878"></a><h2>ZONE</h2>
<div class="literallayout"><p><br>
zone <em class="replaceable"><code>string</code></em> <em class="replaceable"><code>optional_class</code></em> {<br>
type ( master | slave | stub | hint |<br>
@@ -483,17 +484,17 @@ zone
</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2527606"></a><h2>FILES</h2>
<a name="id2551216"></a><h2>FILES</h2>
<p>
<code class="filename">/etc/named.conf</code>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2527619"></a><h2>SEE ALSO</h2>
<a name="id2551228"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">BIND 9 Adminstrators Reference Manual</span></span>.
<span class="citerefentry"><span class="refentrytitle">BIND 9 Administrator Reference Manual</span></span>.
</p>
</div>
</div></body>
+7 -2
View File
@@ -2,7 +2,7 @@
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
[<!ENTITY mdash "&#8212;">]>
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
-
- Permission to use, copy, modify, and distribute this software for any
@@ -18,7 +18,7 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: named.docbook,v 1.5.98.5 2005/05/13 01:22:33 marka Exp $ -->
<!-- $Id: named.docbook,v 1.5.98.7 2006/01/17 23:49:30 marka Exp $ -->
<refentry>
<refentryinfo>
@@ -35,6 +35,7 @@
<copyright>
<year>2004</year>
<year>2005</year>
<year>2006</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
<copyright>
@@ -365,6 +366,10 @@
<refentrytitle>lwresd</refentrytitle>
<manvolnum>8</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>named.conf</refentrytitle>
<manvolnum>5</manvolnum>
</citerefentry>,
<citetitle>BIND 9 Administrator Reference Manual</citetitle>.
</para>
</refsect1>
+12 -11
View File
@@ -1,5 +1,5 @@
<!--
- Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
- Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
-
- Permission to use, copy, modify, and distribute this software for any
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: named.html,v 1.4.2.1.4.9 2005/10/13 02:33:47 marka Exp $ -->
<!-- $Id: named.html,v 1.4.2.1.4.13 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>named</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">named</span> &#8212; Internet domain name server</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">named</code> [<code class="option">-4</code>] [<code class="option">-6</code>] [<code class="option">-c <em class="replaceable"><code>config-file</code></em></code>] [<code class="option">-d <em class="replaceable"><code>debug-level</code></em></code>] [<code class="option">-f</code>] [<code class="option">-g</code>] [<code class="option">-n <em class="replaceable"><code>#cpus</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-s</code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-u <em class="replaceable"><code>user</code></em></code>] [<code class="option">-v</code>] [<code class="option">-x <em class="replaceable"><code>cache-file</code></em></code>]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525923"></a><h2>DESCRIPTION</h2>
<a name="id2549491"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">named</strong></span> is a Domain Name System (DNS) server,
part of the BIND 9 distribution from ISC. For more
@@ -46,7 +46,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525948"></a><h2>OPTIONS</h2>
<a name="id2549516"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-4</span></dt>
<dd><p>
@@ -177,7 +177,7 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526297"></a><h2>SIGNALS</h2>
<a name="id2550002"></a><h2>SIGNALS</h2>
<p>
In routine operation, signals should not be used to control
the nameserver; <span><strong class="command">rndc</strong></span> should be used
@@ -198,7 +198,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526412"></a><h2>CONFIGURATION</h2>
<a name="id2550049"></a><h2>CONFIGURATION</h2>
<p>
The <span><strong class="command">named</strong></span> configuration file is too complex
to describe in detail here. A complete description is
@@ -207,7 +207,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526429"></a><h2>FILES</h2>
<a name="id2550066"></a><h2>FILES</h2>
<div class="variablelist"><dl>
<dt><span class="term"><code class="filename">/etc/named.conf</code></span></dt>
<dd><p>
@@ -220,18 +220,19 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526469"></a><h2>SEE ALSO</h2>
<a name="id2550105"></a><h2>SEE ALSO</h2>
<p>
<em class="citetitle">RFC 1033</em>,
<em class="citetitle">RFC 1034</em>,
<em class="citetitle">RFC 1035</em>,
<span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">lwresd</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">named.conf</span>(5)</span>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526512"></a><h2>AUTHOR</h2>
<a name="id2550157"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+46 -35
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: query.c,v 1.198.2.13.4.36.6.2 2006/10/04 07:06:01 marka Exp $ */
/* $Id: query.c,v 1.198.2.13.4.43 2006/08/31 03:57:11 marka Exp $ */
#include <config.h>
@@ -148,18 +148,6 @@ query_next(ns_client_t *client, isc_result_t result) {
ns_client_next(client, result);
}
static inline void
query_maybeputqname(ns_client_t *client) {
if (client->query.restarts > 0) {
/*
* client->query.qname was dynamically allocated.
*/
dns_message_puttempname(client->message,
&client->query.qname);
client->query.qname = NULL;
}
}
static inline void
query_freefreeversions(ns_client_t *client, isc_boolean_t everything) {
ns_dbversion_t *dbversion, *dbversion_next;
@@ -240,8 +228,14 @@ query_reset(ns_client_t *client, isc_boolean_t everything) {
}
}
query_maybeputqname(client);
if (client->query.restarts > 0) {
/*
* client->query.qname was dynamically allocated.
*/
dns_message_puttempname(client->message,
&client->query.qname);
}
client->query.qname = NULL;
client->query.attributes = (NS_QUERYATTR_RECURSIONOK |
NS_QUERYATTR_CACHEOK |
NS_QUERYATTR_SECURE);
@@ -2091,17 +2085,31 @@ query_recurse(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qdomain,
result = isc_quota_attach(&ns_g_server->recursionquota,
&client->recursionquota);
if (result == ISC_R_SOFTQUOTA) {
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_QUERY, ISC_LOG_WARNING,
"recursive-clients soft limit exceeded, "
"aborting oldest query");
static isc_stdtime_t last = 0;
isc_stdtime_t now;
isc_stdtime_get(&now);
if (now != last) {
last = now;
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_QUERY,
ISC_LOG_WARNING,
"recursive-clients soft limit "
"exceeded, aborting oldest query");
}
ns_client_killoldestquery(client);
result = ISC_R_SUCCESS;
} else if (result == ISC_R_QUOTA) {
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_QUERY, ISC_LOG_WARNING,
"no more recursive clients: %s",
isc_result_totext(result));
static isc_stdtime_t last = 0;
isc_stdtime_t now;
isc_stdtime_get(&now);
if (now != last) {
last = now;
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_QUERY,
ISC_LOG_WARNING,
"no more recursive clients: %s",
isc_result_totext(result));
}
ns_client_killoldestquery(client);
}
if (result == ISC_R_SUCCESS && !client->mortal &&
@@ -2182,7 +2190,7 @@ do { \
* ISC_R_NOTIMPLEMENTED The rdata is not a known address type.
*/
static isc_result_t
rdata_tonetaddr(dns_rdata_t *rdata, isc_netaddr_t *netaddr) {
rdata_tonetaddr(const dns_rdata_t *rdata, isc_netaddr_t *netaddr) {
struct in_addr ina;
struct in6_addr in6a;
@@ -2208,7 +2216,7 @@ rdata_tonetaddr(dns_rdata_t *rdata, isc_netaddr_t *netaddr) {
* sortlist statement.
*/
static int
query_sortlist_order_2element(dns_rdata_t *rdata, void *arg) {
query_sortlist_order_2element(const dns_rdata_t *rdata, const void *arg) {
isc_netaddr_t netaddr;
if (rdata_tonetaddr(rdata, &netaddr) != ISC_R_SUCCESS)
@@ -2221,7 +2229,7 @@ query_sortlist_order_2element(dns_rdata_t *rdata, void *arg) {
* of a 1-element top-level sortlist statement.
*/
static int
query_sortlist_order_1element(dns_rdata_t *rdata, void *arg) {
query_sortlist_order_1element(const dns_rdata_t *rdata, const void *arg) {
isc_netaddr_t netaddr;
if (rdata_tonetaddr(rdata, &netaddr) != ISC_R_SUCCESS)
@@ -2237,7 +2245,7 @@ static void
setup_query_sortlist(ns_client_t *client) {
isc_netaddr_t netaddr;
dns_rdatasetorderfunc_t order = NULL;
void *order_arg = NULL;
const void *order_arg = NULL;
isc_netaddr_fromsockaddr(&netaddr, &client->peeraddr);
switch (ns_sortlist_setup(client->view->sortlist,
@@ -2469,7 +2477,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
/*
* First we must find the right database.
*/
options = 0;
options &= DNS_GETDB_NOLOG; /* Preserve DNS_GETDB_NOLOG. */
if (dns_rdatatype_atparent(qtype) &&
!dns_name_equal(client->query.qname, dns_rootname))
options |= DNS_GETDB_NOEXACT;
@@ -2509,9 +2517,10 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
}
}
if (result != ISC_R_SUCCESS) {
if (result == DNS_R_REFUSED)
QUERY_ERROR(DNS_R_REFUSED);
else
if (result == DNS_R_REFUSED) {
if (!PARTIALANSWER(client))
QUERY_ERROR(DNS_R_REFUSED);
} else
QUERY_ERROR(DNS_R_SERVFAIL);
goto cleanup;
}
@@ -2995,9 +3004,10 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
goto cleanup;
}
dns_rdata_freestruct(&cname);
query_maybeputqname(client);
client->query.qname = tname;
ns_client_qnamereplace(client, tname);
want_restart = ISC_TRUE;
if (!WANTRECURSION(client))
options |= DNS_GETDB_NOLOG;
goto addauth;
case DNS_R_DNAME:
/*
@@ -3111,10 +3121,11 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
/*
* Switch to the new qname and restart.
*/
query_maybeputqname(client);
client->query.qname = fname;
ns_client_qnamereplace(client, fname);
fname = NULL;
want_restart = ISC_TRUE;
if (!WANTRECURSION(client))
options |= DNS_GETDB_NOLOG;
goto addauth;
default:
/*
+152 -141
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.339.2.15.2.65 2005/07/27 02:53:15 marka Exp $ */
/* $Id: server.c,v 1.339.2.15.2.70 2006/05/24 04:30:24 marka Exp $ */
#include <config.h>
@@ -167,25 +167,25 @@ static void
ns_server_reload(isc_task_t *task, isc_event_t *event);
static isc_result_t
ns_listenelt_fromconfig(cfg_obj_t *listener, cfg_obj_t *config,
ns_listenelt_fromconfig(const cfg_obj_t *listener, const cfg_obj_t *config,
ns_aclconfctx_t *actx,
isc_mem_t *mctx, ns_listenelt_t **target);
static isc_result_t
ns_listenlist_fromconfig(cfg_obj_t *listenlist, cfg_obj_t *config,
ns_listenlist_fromconfig(const cfg_obj_t *listenlist, const cfg_obj_t *config,
ns_aclconfctx_t *actx,
isc_mem_t *mctx, ns_listenlist_t **target);
static isc_result_t
configure_forward(cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
cfg_obj_t *forwarders, cfg_obj_t *forwardtype);
configure_forward(const cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
const cfg_obj_t *forwarders, const cfg_obj_t *forwardtype);
static isc_result_t
configure_alternates(cfg_obj_t *config, dns_view_t *view,
cfg_obj_t *alternates);
configure_alternates(const cfg_obj_t *config, dns_view_t *view,
const cfg_obj_t *alternates);
static isc_result_t
configure_zone(cfg_obj_t *config, cfg_obj_t *zconfig, cfg_obj_t *vconfig,
isc_mem_t *mctx, dns_view_t *view,
configure_zone(const cfg_obj_t *config, const cfg_obj_t *zconfig,
const cfg_obj_t *vconfig, isc_mem_t *mctx, dns_view_t *view,
ns_aclconfctx_t *aclconf);
static void
@@ -197,13 +197,13 @@ end_reserved_dispatches(ns_server_t *server, isc_boolean_t all);
* (for a global default).
*/
static isc_result_t
configure_view_acl(cfg_obj_t *vconfig, cfg_obj_t *config,
configure_view_acl(const cfg_obj_t *vconfig, const cfg_obj_t *config,
const char *aclname, ns_aclconfctx_t *actx,
isc_mem_t *mctx, dns_acl_t **aclp)
{
isc_result_t result;
cfg_obj_t *maps[3];
cfg_obj_t *aclobj = NULL;
const cfg_obj_t *maps[3];
const cfg_obj_t *aclobj = NULL;
int i = 0;
if (*aclp != NULL)
@@ -211,14 +211,14 @@ configure_view_acl(cfg_obj_t *vconfig, cfg_obj_t *config,
if (vconfig != NULL)
maps[i++] = cfg_tuple_get(vconfig, "options");
if (config != NULL) {
cfg_obj_t *options = NULL;
const cfg_obj_t *options = NULL;
(void)cfg_map_get(config, "options", &options);
if (options != NULL)
maps[i++] = options;
}
maps[i] = NULL;
result = ns_config_get(maps, aclname, &aclobj);
(void)ns_config_get(maps, aclname, &aclobj);
if (aclobj == NULL)
/*
* No value available. *aclp == NULL.
@@ -231,13 +231,13 @@ configure_view_acl(cfg_obj_t *vconfig, cfg_obj_t *config,
}
static isc_result_t
configure_view_dnsseckey(cfg_obj_t *vconfig, cfg_obj_t *key,
configure_view_dnsseckey(const cfg_obj_t *vconfig, const cfg_obj_t *key,
dns_keytable_t *keytable, isc_mem_t *mctx)
{
dns_rdataclass_t viewclass;
dns_rdata_dnskey_t keystruct;
isc_uint32_t flags, proto, alg;
char *keystr, *keynamestr;
const char *keystr, *keynamestr;
unsigned char keydata[4096];
isc_buffer_t keydatabuf;
unsigned char rrdata[4096];
@@ -258,7 +258,7 @@ configure_view_dnsseckey(cfg_obj_t *vconfig, cfg_obj_t *key,
if (vconfig == NULL)
viewclass = dns_rdataclass_in;
else {
cfg_obj_t *classobj = cfg_tuple_get(vconfig, "class");
const cfg_obj_t *classobj = cfg_tuple_get(vconfig, "class");
CHECK(ns_config_getclass(classobj, dns_rdataclass_in,
&viewclass));
}
@@ -334,15 +334,15 @@ configure_view_dnsseckey(cfg_obj_t *vconfig, cfg_obj_t *key,
* from 'vconfig' and 'config'. The variable to be configured is '*target'.
*/
static isc_result_t
configure_view_dnsseckeys(cfg_obj_t *vconfig, cfg_obj_t *config,
configure_view_dnsseckeys(const cfg_obj_t *vconfig, const cfg_obj_t *config,
isc_mem_t *mctx, dns_keytable_t **target)
{
isc_result_t result;
cfg_obj_t *keys = NULL;
cfg_obj_t *voptions = NULL;
cfg_listelt_t *element, *element2;
cfg_obj_t *keylist;
cfg_obj_t *key;
const cfg_obj_t *keys = NULL;
const cfg_obj_t *voptions = NULL;
const cfg_listelt_t *element, *element2;
const cfg_obj_t *keylist;
const cfg_obj_t *key;
dns_keytable_t *keytable = NULL;
CHECK(dns_keytable_create(mctx, &keytable));
@@ -381,10 +381,10 @@ configure_view_dnsseckeys(cfg_obj_t *vconfig, cfg_obj_t *config,
}
static isc_result_t
mustbesecure(cfg_obj_t *mbs, dns_resolver_t *resolver)
mustbesecure(const cfg_obj_t *mbs, dns_resolver_t *resolver)
{
cfg_listelt_t *element;
cfg_obj_t *obj;
const cfg_listelt_t *element;
const cfg_obj_t *obj;
const char *str;
dns_fixedname_t fixed;
dns_name_t *name;
@@ -418,14 +418,14 @@ mustbesecure(cfg_obj_t *mbs, dns_resolver_t *resolver)
* Get a dispatch appropriate for the resolver of a given view.
*/
static isc_result_t
get_view_querysource_dispatch(cfg_obj_t **maps,
get_view_querysource_dispatch(const cfg_obj_t **maps,
int af, dns_dispatch_t **dispatchp)
{
isc_result_t result;
dns_dispatch_t *disp;
isc_sockaddr_t sa;
unsigned int attrs, attrmask;
cfg_obj_t *obj = NULL;
const cfg_obj_t *obj = NULL;
/*
* Make compiler happy.
@@ -436,7 +436,6 @@ get_view_querysource_dispatch(cfg_obj_t **maps,
case AF_INET:
result = ns_config_get(maps, "query-source", &obj);
INSIST(result == ISC_R_SUCCESS);
break;
case AF_INET6:
result = ns_config_get(maps, "query-source-v6", &obj);
@@ -517,10 +516,10 @@ get_view_querysource_dispatch(cfg_obj_t **maps,
}
static isc_result_t
configure_order(dns_order_t *order, cfg_obj_t *ent) {
configure_order(dns_order_t *order, const cfg_obj_t *ent) {
dns_rdataclass_t rdclass;
dns_rdatatype_t rdtype;
cfg_obj_t *obj;
const cfg_obj_t *obj;
dns_fixedname_t fixed;
unsigned int mode = 0;
const char *str;
@@ -567,7 +566,7 @@ configure_order(dns_order_t *order, cfg_obj_t *ent) {
/*
* "*" should match everything including the root (BIND 8 compat).
* As dns_name_matcheswildcard(".", "*.") returns FALSE add a
* explict entry for "." when the name is "*".
* explicit entry for "." when the name is "*".
*/
if (addroot) {
result = dns_order_add(order, dns_rootname,
@@ -581,12 +580,12 @@ configure_order(dns_order_t *order, cfg_obj_t *ent) {
}
static isc_result_t
configure_peer(cfg_obj_t *cpeer, isc_mem_t *mctx, dns_peer_t **peerp) {
isc_sockaddr_t *sa;
configure_peer(const cfg_obj_t *cpeer, isc_mem_t *mctx, dns_peer_t **peerp) {
const isc_sockaddr_t *sa;
isc_netaddr_t na;
dns_peer_t *peer;
cfg_obj_t *obj;
char *str;
const cfg_obj_t *obj;
const char *str;
isc_result_t result;
sa = cfg_obj_assockaddr(cfg_map_getname(cpeer));
@@ -664,10 +663,10 @@ configure_peer(cfg_obj_t *cpeer, isc_mem_t *mctx, dns_peer_t **peerp) {
}
static isc_result_t
disable_algorithms(cfg_obj_t *disabled, dns_resolver_t *resolver) {
disable_algorithms(const cfg_obj_t *disabled, dns_resolver_t *resolver) {
isc_result_t result;
cfg_obj_t *algorithms;
cfg_listelt_t *element;
const cfg_obj_t *algorithms;
const cfg_listelt_t *element;
const char *str;
dns_fixedname_t fixed;
dns_name_t *name;
@@ -688,7 +687,7 @@ disable_algorithms(cfg_obj_t *disabled, dns_resolver_t *resolver) {
isc_textregion_t r;
dns_secalg_t alg;
r.base = cfg_obj_asstring(cfg_listelt_value(element));
DE_CONST(cfg_obj_asstring(cfg_listelt_value(element)), r.base);
r.length = strlen(r.base);
result = dns_secalg_fromtext(&alg, &r);
@@ -717,21 +716,21 @@ disable_algorithms(cfg_obj_t *disabled, dns_resolver_t *resolver) {
* global defaults in 'config' used exclusively.
*/
static isc_result_t
configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
isc_mem_t *mctx, ns_aclconfctx_t *actx,
configure_view(dns_view_t *view, const cfg_obj_t *config,
const cfg_obj_t *vconfig, isc_mem_t *mctx, ns_aclconfctx_t *actx,
isc_boolean_t need_hints)
{
cfg_obj_t *maps[4];
cfg_obj_t *cfgmaps[3];
cfg_obj_t *options = NULL;
cfg_obj_t *voptions = NULL;
cfg_obj_t *forwardtype;
cfg_obj_t *forwarders;
cfg_obj_t *alternates;
cfg_obj_t *zonelist;
cfg_obj_t *disabled;
cfg_obj_t *obj;
cfg_listelt_t *element;
const cfg_obj_t *maps[4];
const cfg_obj_t *cfgmaps[3];
const cfg_obj_t *options = NULL;
const cfg_obj_t *voptions = NULL;
const cfg_obj_t *forwardtype;
const cfg_obj_t *forwarders;
const cfg_obj_t *alternates;
const cfg_obj_t *zonelist;
const cfg_obj_t *disabled;
const cfg_obj_t *obj;
const cfg_listelt_t *element;
in_port_t port;
dns_cache_t *cache = NULL;
isc_result_t result;
@@ -792,7 +791,7 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *zconfig = cfg_listelt_value(element);
const cfg_obj_t *zconfig = cfg_listelt_value(element);
CHECK(configure_zone(config, zconfig, vconfig, mctx, view,
actx));
}
@@ -1018,8 +1017,8 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
* Configure the view's peer list.
*/
{
cfg_obj_t *peers = NULL;
cfg_listelt_t *element;
const cfg_obj_t *peers = NULL;
const cfg_listelt_t *element;
dns_peerlist_t *newpeers = NULL;
(void)ns_config_get(cfgmaps, "server", &peers);
@@ -1028,7 +1027,7 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *cpeer = cfg_listelt_value(element);
const cfg_obj_t *cpeer = cfg_listelt_value(element);
dns_peer_t *peer;
CHECK(configure_peer(cpeer, mctx, &peer));
@@ -1043,8 +1042,8 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
* Configure the views rrset-order.
*/
{
cfg_obj_t *rrsetorder = NULL;
cfg_listelt_t *element;
const cfg_obj_t *rrsetorder = NULL;
const cfg_listelt_t *element;
(void)ns_config_get(maps, "rrset-order", &rrsetorder);
CHECK(dns_order_create(mctx, &order));
@@ -1052,7 +1051,7 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *ent = cfg_listelt_value(element);
const cfg_obj_t *ent = cfg_listelt_value(element);
CHECK(configure_order(order, ent));
}
@@ -1078,7 +1077,7 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
* Configure the "match-recursive-only" option.
*/
obj = NULL;
(void) ns_config_get(maps, "match-recursive-only", &obj);
(void)ns_config_get(maps, "match-recursive-only", &obj);
if (obj != NULL && cfg_obj_asboolean(obj))
view->matchrecursiveonly = ISC_TRUE;
else
@@ -1275,8 +1274,8 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
dns_fixedname_t fixed;
dns_name_t *name;
isc_buffer_t b;
char *str;
cfg_obj_t *exclude;
const char *str;
const cfg_obj_t *exclude;
dns_fixedname_init(&fixed);
name = dns_fixedname_name(&fixed);
@@ -1330,12 +1329,12 @@ configure_hints(dns_view_t *view, const char *filename) {
}
static isc_result_t
configure_alternates(cfg_obj_t *config, dns_view_t *view,
cfg_obj_t *alternates)
configure_alternates(const cfg_obj_t *config, dns_view_t *view,
const cfg_obj_t *alternates)
{
cfg_obj_t *portobj;
cfg_obj_t *addresses;
cfg_listelt_t *element;
const cfg_obj_t *portobj;
const cfg_obj_t *addresses;
const cfg_listelt_t *element;
isc_result_t result = ISC_R_SUCCESS;
in_port_t port;
@@ -1368,14 +1367,14 @@ configure_alternates(cfg_obj_t *config, dns_view_t *view,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *alternate = cfg_listelt_value(element);
const cfg_obj_t *alternate = cfg_listelt_value(element);
isc_sockaddr_t sa;
if (!cfg_obj_issockaddr(alternate)) {
dns_fixedname_t fixed;
dns_name_t *name;
char *str = cfg_obj_asstring(cfg_tuple_get(alternate,
"name"));
const char *str = cfg_obj_asstring(cfg_tuple_get(
alternate, "name"));
isc_buffer_t buffer;
in_port_t myport = port;
@@ -1415,12 +1414,12 @@ configure_alternates(cfg_obj_t *config, dns_view_t *view,
}
static isc_result_t
configure_forward(cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
cfg_obj_t *forwarders, cfg_obj_t *forwardtype)
configure_forward(const cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
const cfg_obj_t *forwarders, const cfg_obj_t *forwardtype)
{
cfg_obj_t *portobj;
cfg_obj_t *faddresses;
cfg_listelt_t *element;
const cfg_obj_t *portobj;
const cfg_obj_t *faddresses;
const cfg_listelt_t *element;
dns_fwdpolicy_t fwdpolicy = dns_fwdpolicy_none;
isc_sockaddrlist_t addresses;
isc_sockaddr_t *sa;
@@ -1458,7 +1457,7 @@ configure_forward(cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *forwarder = cfg_listelt_value(element);
const cfg_obj_t *forwarder = cfg_listelt_value(element);
sa = isc_mem_get(view->mctx, sizeof(isc_sockaddr_t));
if (sa == NULL) {
result = ISC_R_NOMEMORY;
@@ -1481,7 +1480,7 @@ configure_forward(cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
if (forwardtype == NULL)
fwdpolicy = dns_fwdpolicy_first;
else {
char *forwardstr = cfg_obj_asstring(forwardtype);
const char *forwardstr = cfg_obj_asstring(forwardtype);
if (strcasecmp(forwardstr, "first") == 0)
fwdpolicy = dns_fwdpolicy_first;
else if (strcasecmp(forwardstr, "only") == 0)
@@ -1523,14 +1522,16 @@ configure_forward(cfg_obj_t *config, dns_view_t *view, dns_name_t *origin,
* The view created is attached to '*viewp'.
*/
static isc_result_t
create_view(cfg_obj_t *vconfig, dns_viewlist_t *viewlist, dns_view_t **viewp) {
create_view(const cfg_obj_t *vconfig, dns_viewlist_t *viewlist,
dns_view_t **viewp)
{
isc_result_t result;
const char *viewname;
dns_rdataclass_t viewclass;
dns_view_t *view = NULL;
if (vconfig != NULL) {
cfg_obj_t *classobj = NULL;
const cfg_obj_t *classobj = NULL;
viewname = cfg_obj_asstring(cfg_tuple_get(vconfig, "name"));
classobj = cfg_tuple_get(vconfig, "class");
@@ -1560,19 +1561,19 @@ create_view(cfg_obj_t *vconfig, dns_viewlist_t *viewlist, dns_view_t **viewp) {
* Configure or reconfigure a zone.
*/
static isc_result_t
configure_zone(cfg_obj_t *config, cfg_obj_t *zconfig, cfg_obj_t *vconfig,
isc_mem_t *mctx, dns_view_t *view,
configure_zone(const cfg_obj_t *config, const cfg_obj_t *zconfig,
const cfg_obj_t *vconfig, isc_mem_t *mctx, dns_view_t *view,
ns_aclconfctx_t *aclconf)
{
dns_view_t *pview = NULL; /* Production view */
dns_zone_t *zone = NULL; /* New or reused zone */
dns_zone_t *dupzone = NULL;
cfg_obj_t *options = NULL;
cfg_obj_t *zoptions = NULL;
cfg_obj_t *typeobj = NULL;
cfg_obj_t *forwarders = NULL;
cfg_obj_t *forwardtype = NULL;
cfg_obj_t *only = NULL;
const cfg_obj_t *options = NULL;
const cfg_obj_t *zoptions = NULL;
const cfg_obj_t *typeobj = NULL;
const cfg_obj_t *forwarders = NULL;
const cfg_obj_t *forwardtype = NULL;
const cfg_obj_t *only = NULL;
isc_result_t result;
isc_result_t tresult;
isc_buffer_t buffer;
@@ -1629,7 +1630,7 @@ configure_zone(cfg_obj_t *config, cfg_obj_t *zconfig, cfg_obj_t *vconfig,
* configure it and return.
*/
if (strcasecmp(ztypestr, "hint") == 0) {
cfg_obj_t *fileobj = NULL;
const cfg_obj_t *fileobj = NULL;
if (cfg_map_get(zoptions, "file", &fileobj) != ISC_R_SUCCESS) {
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
@@ -1639,7 +1640,7 @@ configure_zone(cfg_obj_t *config, cfg_obj_t *zconfig, cfg_obj_t *vconfig,
goto cleanup;
}
if (dns_name_equal(origin, dns_rootname)) {
char *hintsfile = cfg_obj_asstring(fileobj);
const char *hintsfile = cfg_obj_asstring(fileobj);
result = configure_hints(view, hintsfile);
if (result != ISC_R_SUCCESS) {
@@ -1795,9 +1796,10 @@ configure_zone(cfg_obj_t *config, cfg_obj_t *zconfig, cfg_obj_t *vconfig,
* Configure a single server quota.
*/
static void
configure_server_quota(cfg_obj_t **maps, const char *name, isc_quota_t *quota)
configure_server_quota(const cfg_obj_t **maps, const char *name,
isc_quota_t *quota)
{
cfg_obj_t *obj = NULL;
const cfg_obj_t *obj = NULL;
isc_result_t result;
result = ns_config_get(maps, name, &obj);
@@ -1810,9 +1812,9 @@ configure_server_quota(cfg_obj_t **maps, const char *name, isc_quota_t *quota)
* parsed. This can be extended to support other options if necessary.
*/
static isc_result_t
directory_callback(const char *clausename, cfg_obj_t *obj, void *arg) {
directory_callback(const char *clausename, const cfg_obj_t *obj, void *arg) {
isc_result_t result;
char *directory;
const char *directory;
REQUIRE(strcasecmp("directory", clausename) == 0);
@@ -1891,8 +1893,7 @@ add_listenelt(isc_mem_t *mctx, ns_listenlist_t *list, isc_sockaddr_t *addr) {
clean:
INSIST(lelt == NULL);
if (src_acl != NULL)
dns_acl_detach(&src_acl);
dns_acl_detach(&src_acl);
return (result);
}
@@ -2049,7 +2050,7 @@ setstring(ns_server_t *server, char **field, const char *value) {
* or NULL if whether 'obj' is a string or void value, respectively.
*/
static isc_result_t
setoptstring(ns_server_t *server, char **field, cfg_obj_t *obj) {
setoptstring(ns_server_t *server, char **field, const cfg_obj_t *obj) {
if (cfg_obj_isvoid(obj))
return (setstring(server, field, NULL));
else
@@ -2057,11 +2058,12 @@ setoptstring(ns_server_t *server, char **field, cfg_obj_t *obj) {
}
static void
set_limit(cfg_obj_t **maps, const char *configname, const char *description,
isc_resource_t resourceid, isc_resourcevalue_t defaultvalue)
set_limit(const cfg_obj_t **maps, const char *configname,
const char *description, isc_resource_t resourceid,
isc_resourcevalue_t defaultvalue)
{
cfg_obj_t *obj = NULL;
char *resource;
const cfg_obj_t *obj = NULL;
const char *resource;
isc_resourcevalue_t value;
isc_result_t result;
@@ -2092,7 +2094,7 @@ set_limit(cfg_obj_t **maps, const char *configname, const char *description,
ns_g_init ## resource)
static void
set_limits(cfg_obj_t **maps) {
set_limits(const cfg_obj_t **maps) {
SETLIMIT("stacksize", stacksize, "stack size");
SETLIMIT("datasize", datasize, "data size");
SETLIMIT("coresize", coresize, "core size");
@@ -2101,15 +2103,15 @@ set_limits(cfg_obj_t **maps) {
static isc_result_t
portlist_fromconf(dns_portlist_t *portlist, unsigned int family,
cfg_obj_t *ports)
const cfg_obj_t *ports)
{
cfg_listelt_t *element;
const cfg_listelt_t *element;
isc_result_t result = ISC_R_SUCCESS;
for (element = cfg_list_first(ports);
element != NULL;
element = cfg_list_next(element)) {
cfg_obj_t *obj = cfg_listelt_value(element);
const cfg_obj_t *obj = cfg_listelt_value(element);
in_port_t port = (in_port_t)cfg_obj_asuint32(obj);
result = dns_portlist_add(portlist, family, port);
@@ -2126,13 +2128,13 @@ load_configuration(const char *filename, ns_server_t *server,
isc_result_t result;
cfg_parser_t *parser = NULL;
cfg_obj_t *config;
cfg_obj_t *options;
cfg_obj_t *views;
cfg_obj_t *obj;
cfg_obj_t *v4ports, *v6ports;
cfg_obj_t *maps[3];
cfg_obj_t *builtin_views;
cfg_listelt_t *element;
const cfg_obj_t *options;
const cfg_obj_t *views;
const cfg_obj_t *obj;
const cfg_obj_t *v4ports, *v6ports;
const cfg_obj_t *maps[3];
const cfg_obj_t *builtin_views;
const cfg_listelt_t *element;
dns_view_t *view = NULL;
dns_view_t *view_next;
dns_viewlist_t viewlist;
@@ -2319,7 +2321,7 @@ load_configuration(const char *filename, ns_server_t *server,
* statement.
*/
{
cfg_obj_t *clistenon = NULL;
const cfg_obj_t *clistenon = NULL;
ns_listenlist_t *listenon = NULL;
clistenon = NULL;
@@ -2353,7 +2355,7 @@ load_configuration(const char *filename, ns_server_t *server,
* Ditto for IPv6.
*/
{
cfg_obj_t *clistenon = NULL;
const cfg_obj_t *clistenon = NULL;
ns_listenlist_t *listenon = NULL;
if (options != NULL)
@@ -2438,7 +2440,7 @@ load_configuration(const char *filename, ns_server_t *server,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *vconfig = cfg_listelt_value(element);
const cfg_obj_t *vconfig = cfg_listelt_value(element);
view = NULL;
CHECK(create_view(vconfig, &viewlist, &view));
@@ -2478,7 +2480,7 @@ load_configuration(const char *filename, ns_server_t *server,
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *vconfig = cfg_listelt_value(element);
const cfg_obj_t *vconfig = cfg_listelt_value(element);
CHECK(create_view(vconfig, &viewlist, &view));
CHECK(configure_view(view, config, vconfig, ns_g_mctx,
&aclconfctx, ISC_FALSE));
@@ -2582,7 +2584,7 @@ load_configuration(const char *filename, ns_server_t *server,
"ignoring config file logging "
"statement due to -g option");
} else {
cfg_obj_t *logobj = NULL;
const cfg_obj_t *logobj = NULL;
isc_logconfig_t *logc = NULL;
CHECKM(isc_logconfig_create(ns_g_lctx, &logc),
@@ -2621,8 +2623,8 @@ load_configuration(const char *filename, ns_server_t *server,
* compatibility.
*/
if (first_time) {
cfg_obj_t *logobj = NULL;
cfg_obj_t *categories = NULL;
const cfg_obj_t *logobj = NULL;
const cfg_obj_t *categories = NULL;
obj = NULL;
if (ns_config_get(maps, "querylog", &obj) == ISC_R_SUCCESS) {
@@ -2634,13 +2636,13 @@ load_configuration(const char *filename, ns_server_t *server,
(void)cfg_map_get(logobj, "category",
&categories);
if (categories != NULL) {
cfg_listelt_t *element;
const cfg_listelt_t *element;
for (element = cfg_list_first(categories);
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *catobj;
char *str;
const cfg_obj_t *catobj;
const char *str;
obj = cfg_listelt_value(element);
catobj = cfg_tuple_get(obj, "name");
@@ -3133,7 +3135,7 @@ end_reserved_dispatches(ns_server_t *server, isc_boolean_t all) {
}
void
ns_add_reserved_dispatch(ns_server_t *server, isc_sockaddr_t *addr) {
ns_add_reserved_dispatch(ns_server_t *server, const isc_sockaddr_t *addr) {
ns_dispatch_t *dispatch;
in_port_t port;
char addrbuf[ISC_SOCKADDR_FORMATSIZE];
@@ -3458,20 +3460,29 @@ isc_result_t
ns_server_refreshcommand(ns_server_t *server, char *args, isc_buffer_t *text) {
isc_result_t result;
dns_zone_t *zone = NULL;
const unsigned char msg[] = "zone refresh queued";
const unsigned char msg1[] = "zone refresh queued";
const unsigned char msg2[] = "not a slave or stub zone";
dns_zonetype_t type;
result = zone_from_args(server, args, &zone);
if (result != ISC_R_SUCCESS)
return (result);
if (zone == NULL)
return (ISC_R_UNEXPECTEDEND);
dns_zone_refresh(zone);
dns_zone_detach(&zone);
if (sizeof(msg) <= isc_buffer_availablelength(text))
isc_buffer_putmem(text, msg, sizeof(msg));
return (ISC_R_SUCCESS);
type = dns_zone_gettype(zone);
if (type == dns_zone_slave || type == dns_zone_stub) {
dns_zone_refresh(zone);
dns_zone_detach(&zone);
if (sizeof(msg1) <= isc_buffer_availablelength(text))
isc_buffer_putmem(text, msg1, sizeof(msg1));
return (ISC_R_SUCCESS);
}
dns_zone_detach(&zone);
if (sizeof(msg2) <= isc_buffer_availablelength(text))
isc_buffer_putmem(text, msg2, sizeof(msg2));
return (ISC_R_FAILURE);
}
isc_result_t
@@ -3486,12 +3497,12 @@ ns_server_togglequerylog(ns_server_t *server) {
}
static isc_result_t
ns_listenlist_fromconfig(cfg_obj_t *listenlist, cfg_obj_t *config,
ns_listenlist_fromconfig(const cfg_obj_t *listenlist, const cfg_obj_t *config,
ns_aclconfctx_t *actx,
isc_mem_t *mctx, ns_listenlist_t **target)
{
isc_result_t result;
cfg_listelt_t *element;
const cfg_listelt_t *element;
ns_listenlist_t *dlist = NULL;
REQUIRE(target != NULL && *target == NULL);
@@ -3505,7 +3516,7 @@ ns_listenlist_fromconfig(cfg_obj_t *listenlist, cfg_obj_t *config,
element = cfg_list_next(element))
{
ns_listenelt_t *delt = NULL;
cfg_obj_t *listener = cfg_listelt_value(element);
const cfg_obj_t *listener = cfg_listelt_value(element);
result = ns_listenelt_fromconfig(listener, config, actx,
mctx, &delt);
if (result != ISC_R_SUCCESS)
@@ -3525,12 +3536,12 @@ ns_listenlist_fromconfig(cfg_obj_t *listenlist, cfg_obj_t *config,
* data structure.
*/
static isc_result_t
ns_listenelt_fromconfig(cfg_obj_t *listener, cfg_obj_t *config,
ns_listenelt_fromconfig(const cfg_obj_t *listener, const cfg_obj_t *config,
ns_aclconfctx_t *actx,
isc_mem_t *mctx, ns_listenelt_t **target)
{
isc_result_t result;
cfg_obj_t *portobj;
const cfg_obj_t *portobj;
in_port_t port;
ns_listenelt_t *delt = NULL;
REQUIRE(target != NULL && *target == NULL);
@@ -3823,6 +3834,11 @@ ns_server_dumpdb(ns_server_t *server, char *args) {
char *ptr;
const char *sep;
/* Skip the command name. */
ptr = next_token(&args, " \t");
if (ptr == NULL)
return (ISC_R_UNEXPECTEDEND);
dctx = isc_mem_get(server->mctx, sizeof(*dctx));
if (dctx == NULL)
return (ISC_R_NOMEMORY);
@@ -3845,11 +3861,6 @@ ns_server_dumpdb(ns_server_t *server, char *args) {
CHECKMF(isc_stdio_open(server->dumpfile, "w", &dctx->fp),
"could not open dump file", server->dumpfile);
/* Skip the command name. */
ptr = next_token(&args, " \t");
if (ptr == NULL)
return (ISC_R_UNEXPECTEDEND);
sep = (args == NULL) ? "" : ": ";
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_SERVER, ISC_LOG_INFO,
+11 -9
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sortlist.c,v 1.5.12.4 2004/03/08 04:04:19 marka Exp $ */
/* $Id: sortlist.c,v 1.5.12.6 2006/03/02 00:37:20 marka Exp $ */
#include <config.h>
@@ -30,7 +30,9 @@
#include <named/sortlist.h>
ns_sortlisttype_t
ns_sortlist_setup(dns_acl_t *acl, isc_netaddr_t *clientaddr, void **argp) {
ns_sortlist_setup(dns_acl_t *acl, isc_netaddr_t *clientaddr,
const void **argp)
{
unsigned int i;
if (acl == NULL)
@@ -44,7 +46,7 @@ ns_sortlist_setup(dns_acl_t *acl, isc_netaddr_t *clientaddr, void **argp) {
dns_aclelement_t *e = &acl->elements[i];
dns_aclelement_t *try_elt;
dns_aclelement_t *order_elt = NULL;
dns_aclelement_t *matched_elt = NULL;
const dns_aclelement_t *matched_elt = NULL;
if (e->type == dns_aclelementtype_nestedacl) {
dns_acl_t *inner = e->u.nestedacl;
@@ -106,8 +108,8 @@ ns_sortlist_setup(dns_acl_t *acl, isc_netaddr_t *clientaddr, void **argp) {
}
int
ns_sortlist_addrorder2(isc_netaddr_t *addr, void *arg) {
dns_acl_t *sortacl = (dns_acl_t *) arg;
ns_sortlist_addrorder2(const isc_netaddr_t *addr, const void *arg) {
const dns_acl_t *sortacl = (const dns_acl_t *) arg;
int match;
(void)dns_acl_match(addr, NULL, sortacl,
@@ -122,8 +124,8 @@ ns_sortlist_addrorder2(isc_netaddr_t *addr, void *arg) {
}
int
ns_sortlist_addrorder1(isc_netaddr_t *addr, void *arg) {
dns_aclelement_t *matchelt = (dns_aclelement_t *) arg;
ns_sortlist_addrorder1(const isc_netaddr_t *addr, const void *arg) {
const dns_aclelement_t *matchelt = (const dns_aclelement_t *) arg;
if (dns_aclelement_match(addr, NULL, matchelt,
&ns_g_server->aclenv,
NULL)) {
@@ -136,7 +138,7 @@ ns_sortlist_addrorder1(isc_netaddr_t *addr, void *arg) {
void
ns_sortlist_byaddrsetup(dns_acl_t *sortlist_acl, isc_netaddr_t *client_addr,
dns_addressorderfunc_t *orderp,
void **argp)
const void **argp)
{
ns_sortlisttype_t sortlisttype;
+6 -6
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tkeyconf.c,v 1.19.208.2 2004/06/11 00:30:51 marka Exp $ */
/* $Id: tkeyconf.c,v 1.19.208.4 2006/03/02 00:37:20 marka Exp $ */
#include <config.h>
@@ -42,17 +42,17 @@
isc_result_t
ns_tkeyctx_fromconfig(cfg_obj_t *options, isc_mem_t *mctx, isc_entropy_t *ectx,
dns_tkeyctx_t **tctxp)
ns_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
isc_entropy_t *ectx, dns_tkeyctx_t **tctxp)
{
isc_result_t result;
dns_tkeyctx_t *tctx = NULL;
char *s;
const char *s;
isc_uint32_t n;
dns_fixedname_t fname;
dns_name_t *name;
isc_buffer_t b;
cfg_obj_t *obj;
const cfg_obj_t *obj;
int type;
result = dns_tkeyctx_create(mctx, ectx, &tctx);
+15 -13
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tsigconf.c,v 1.21.208.4 2004/03/08 04:04:19 marka Exp $ */
/* $Id: tsigconf.c,v 1.21.208.6 2006/03/02 00:37:20 marka Exp $ */
#include <config.h>
@@ -35,10 +35,12 @@
#include <named/tsigconf.h>
static isc_result_t
add_initial_keys(cfg_obj_t *list, dns_tsig_keyring_t *ring, isc_mem_t *mctx) {
cfg_listelt_t *element;
cfg_obj_t *key = NULL;
char *keyid = NULL;
add_initial_keys(const cfg_obj_t *list, dns_tsig_keyring_t *ring,
isc_mem_t *mctx)
{
const cfg_listelt_t *element;
const cfg_obj_t *key = NULL;
const char *keyid = NULL;
unsigned char *secret = NULL;
int secretalloc = 0;
int secretlen = 0;
@@ -49,14 +51,14 @@ add_initial_keys(cfg_obj_t *list, dns_tsig_keyring_t *ring, isc_mem_t *mctx) {
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *algobj = NULL;
cfg_obj_t *secretobj = NULL;
const cfg_obj_t *algobj = NULL;
const cfg_obj_t *secretobj = NULL;
dns_name_t keyname;
dns_name_t *alg;
char *algstr;
const char *algstr;
char keynamedata[1024];
isc_buffer_t keynamesrc, keynamebuf;
char *secretstr;
const char *secretstr;
isc_buffer_t secretbuf;
key = cfg_listelt_value(element);
@@ -129,11 +131,11 @@ add_initial_keys(cfg_obj_t *list, dns_tsig_keyring_t *ring, isc_mem_t *mctx) {
}
isc_result_t
ns_tsigkeyring_fromconfig(cfg_obj_t *config, cfg_obj_t *vconfig,
ns_tsigkeyring_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
isc_mem_t *mctx, dns_tsig_keyring_t **ringp)
{
cfg_obj_t *maps[3];
cfg_obj_t *keylist;
const cfg_obj_t *maps[3];
const cfg_obj_t *keylist;
dns_tsig_keyring_t *ring = NULL;
isc_result_t result;
int i;
+9 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: os.c,v 1.46.2.4.8.22 2005/05/20 01:37:19 marka Exp $ */
/* $Id: os.c,v 1.46.2.4.8.24 2006/02/03 23:51:37 marka Exp $ */
#include <config.h>
#include <stdarg.h>
@@ -497,6 +497,13 @@ ns_os_changeuser(void) {
#if defined(HAVE_LINUX_CAPABILITY_H) && !defined(HAVE_LINUXTHREADS)
linux_minprivs();
#endif
#if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_DUMPABLE)
/*
* Restore the ability of named to drop core after the setuid()
* call has disabled it.
*/
prctl(PR_SET_DUMPABLE,1,0,0,0);
#endif
}
void
+27 -7
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: update.c,v 1.88.2.5.2.27 2005/10/08 00:21:06 marka Exp $ */
/* $Id: update.c,v 1.88.2.5.2.29 2006/01/06 00:01:42 marka Exp $ */
#include <config.h>
@@ -36,6 +36,7 @@
#include <dns/rdataclass.h>
#include <dns/rdataset.h>
#include <dns/rdatasetiter.h>
#include <dns/rdatastruct.h>
#include <dns/rdatatype.h>
#include <dns/soa.h>
#include <dns/ssu.h>
@@ -1517,7 +1518,8 @@ next_active(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
*/
static isc_result_t
add_nsec(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
dns_dbversion_t *ver, dns_name_t *name, dns_diff_t *diff)
dns_dbversion_t *ver, dns_name_t *name, dns_ttl_t nsecttl,
dns_diff_t *diff)
{
isc_result_t result;
dns_dbnode_t *node = NULL;
@@ -1552,8 +1554,7 @@ add_nsec(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
* Add the new NSEC and record the change.
*/
CHECK(dns_difftuple_create(diff->mctx, DNS_DIFFOP_ADD, name,
3600, /* XXXRTH */
&rdata, &tuple));
nsecttl, &rdata, &tuple));
CHECK(do_one_tuple(&tuple, db, ver, diff));
INSIST(tuple == NULL);
@@ -1678,6 +1679,11 @@ update_signatures(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
unsigned int nkeys = 0;
unsigned int i;
isc_stdtime_t now, inception, expire;
dns_ttl_t nsecttl;
dns_rdata_soa_t soa;
dns_rdata_t rdata = DNS_RDATA_INIT;
dns_rdataset_t rdataset;
dns_dbnode_t *node = NULL;
dns_diff_init(client->mctx, &diffnames);
dns_diff_init(client->mctx, &affected);
@@ -1698,6 +1704,20 @@ update_signatures(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
inception = now - 3600; /* Allow for some clock skew. */
expire = now + sigvalidityinterval;
/*
* Get the NSEC's TTL from the SOA MINIMUM field.
*/
CHECK(dns_db_findnode(db, dns_db_origin(db), ISC_FALSE, &node));
dns_rdataset_init(&rdataset);
CHECK(dns_db_findrdataset(db, node, newver, dns_rdatatype_soa, 0,
(isc_stdtime_t) 0, &rdataset, NULL));
CHECK(dns_rdataset_first(&rdataset));
dns_rdataset_current(&rdataset, &rdata);
CHECK(dns_rdata_tostruct(&rdata, &soa, NULL));
nsecttl = soa.minimum;
dns_rdataset_disassociate(&rdataset);
dns_db_detachnode(db, &node);
/*
* Find all RRsets directly affected by the update, and
* update their RRSIGs. Also build a list of names affected
@@ -1901,8 +1921,8 @@ update_signatures(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
* there is other data, and if there is other data,
* there are other RRSIGs.
*/
CHECK(add_nsec(client, zone, db, newver,
&t->name, &nsec_diff));
CHECK(add_nsec(client, zone, db, newver, &t->name,
nsecttl, &nsec_diff));
}
}
+42 -36
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zoneconf.c,v 1.87.2.4.10.15 2005/09/06 02:12:39 marka Exp $ */
/* $Id: zoneconf.c,v 1.87.2.4.10.19 2006/02/28 06:32:53 marka Exp $ */
#include <config.h>
@@ -55,15 +55,15 @@
* Convenience function for configuring a single zone ACL.
*/
static isc_result_t
configure_zone_acl(cfg_obj_t *zconfig, cfg_obj_t *vconfig, cfg_obj_t *config,
const char *aclname, ns_aclconfctx_t *actx,
dns_zone_t *zone,
configure_zone_acl(const cfg_obj_t *zconfig, const cfg_obj_t *vconfig,
const cfg_obj_t *config, const char *aclname,
ns_aclconfctx_t *actx, dns_zone_t *zone,
void (*setzacl)(dns_zone_t *, dns_acl_t *),
void (*clearzacl)(dns_zone_t *))
{
isc_result_t result;
cfg_obj_t *maps[4];
cfg_obj_t *aclobj = NULL;
const cfg_obj_t *maps[4];
const cfg_obj_t *aclobj = NULL;
int i = 0;
dns_acl_t *dacl = NULL;
@@ -72,7 +72,7 @@ configure_zone_acl(cfg_obj_t *zconfig, cfg_obj_t *vconfig, cfg_obj_t *config,
if (vconfig != NULL)
maps[i++] = cfg_tuple_get(vconfig, "options");
if (config != NULL) {
cfg_obj_t *options = NULL;
const cfg_obj_t *options = NULL;
(void)cfg_map_get(config, "options", &options);
if (options != NULL)
maps[i++] = options;
@@ -98,16 +98,18 @@ configure_zone_acl(cfg_obj_t *zconfig, cfg_obj_t *vconfig, cfg_obj_t *config,
* Parse the zone update-policy statement.
*/
static isc_result_t
configure_zone_ssutable(cfg_obj_t *zconfig, dns_zone_t *zone) {
cfg_obj_t *updatepolicy = NULL;
cfg_listelt_t *element, *element2;
configure_zone_ssutable(const cfg_obj_t *zconfig, dns_zone_t *zone) {
const cfg_obj_t *updatepolicy = NULL;
const cfg_listelt_t *element, *element2;
dns_ssutable_t *table = NULL;
isc_mem_t *mctx = dns_zone_getmctx(zone);
isc_result_t result;
(void)cfg_map_get(zconfig, "update-policy", &updatepolicy);
if (updatepolicy == NULL)
if (updatepolicy == NULL) {
dns_zone_setssutable(zone, NULL);
return (ISC_R_SUCCESS);
}
result = dns_ssutable_create(mctx, &table);
if (result != ISC_R_SUCCESS)
@@ -117,13 +119,13 @@ configure_zone_ssutable(cfg_obj_t *zconfig, dns_zone_t *zone) {
element != NULL;
element = cfg_list_next(element))
{
cfg_obj_t *stmt = cfg_listelt_value(element);
cfg_obj_t *mode = cfg_tuple_get(stmt, "mode");
cfg_obj_t *identity = cfg_tuple_get(stmt, "identity");
cfg_obj_t *matchtype = cfg_tuple_get(stmt, "matchtype");
cfg_obj_t *dname = cfg_tuple_get(stmt, "name");
cfg_obj_t *typelist = cfg_tuple_get(stmt, "types");
char *str;
const cfg_obj_t *stmt = cfg_listelt_value(element);
const cfg_obj_t *mode = cfg_tuple_get(stmt, "mode");
const cfg_obj_t *identity = cfg_tuple_get(stmt, "identity");
const cfg_obj_t *matchtype = cfg_tuple_get(stmt, "matchtype");
const cfg_obj_t *dname = cfg_tuple_get(stmt, "name");
const cfg_obj_t *typelist = cfg_tuple_get(stmt, "types");
const char *str;
isc_boolean_t grant = ISC_FALSE;
unsigned int mtype = DNS_SSUMATCHTYPE_NAME;
dns_fixedname_t fname, fident;
@@ -191,14 +193,14 @@ configure_zone_ssutable(cfg_obj_t *zconfig, dns_zone_t *zone) {
element2 != NULL;
element2 = cfg_list_next(element2))
{
cfg_obj_t *typeobj;
const cfg_obj_t *typeobj;
isc_textregion_t r;
INSIST(i < n);
typeobj = cfg_listelt_value(element2);
str = cfg_obj_asstring(typeobj);
r.base = str;
DE_CONST(str, r.base);
r.length = strlen(str);
result = dns_rdatatype_fromtext(&types[i++], &r);
@@ -237,8 +239,8 @@ configure_zone_ssutable(cfg_obj_t *zconfig, dns_zone_t *zone) {
* Convert a config file zone type into a server zone type.
*/
static inline dns_zonetype_t
zonetype_fromconfig(cfg_obj_t *map) {
cfg_obj_t *obj = NULL;
zonetype_fromconfig(const cfg_obj_t *map) {
const cfg_obj_t *obj = NULL;
isc_result_t result;
result = cfg_map_get(map, "type", &obj);
@@ -293,7 +295,9 @@ strtoargv(isc_mem_t *mctx, char *s, unsigned int *argcp, char ***argvp) {
}
static void
checknames(dns_zonetype_t ztype, cfg_obj_t **maps, cfg_obj_t **objp) {
checknames(dns_zonetype_t ztype, const cfg_obj_t **maps,
const cfg_obj_t **objp)
{
const char *zone = NULL;
isc_result_t result;
@@ -308,17 +312,18 @@ checknames(dns_zonetype_t ztype, cfg_obj_t **maps, cfg_obj_t **objp) {
}
isc_result_t
ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
ns_aclconfctx_t *ac, dns_zone_t *zone)
ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
const cfg_obj_t *zconfig, ns_aclconfctx_t *ac,
dns_zone_t *zone)
{
isc_result_t result;
char *zname;
const char *zname;
dns_rdataclass_t zclass;
dns_rdataclass_t vclass;
cfg_obj_t *maps[5];
cfg_obj_t *zoptions = NULL;
cfg_obj_t *options = NULL;
cfg_obj_t *obj;
const cfg_obj_t *maps[5];
const cfg_obj_t *zoptions = NULL;
const cfg_obj_t *options = NULL;
const cfg_obj_t *obj;
const char *filename = NULL;
dns_notifytype_t notifytype = dns_notifytype_yes;
isc_sockaddr_t *addrs;
@@ -428,7 +433,7 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
else
dialup = dns_dialuptype_no;
} else {
char *dialupstr = cfg_obj_asstring(obj);
const char *dialupstr = cfg_obj_asstring(obj);
if (strcasecmp(dialupstr, "notify") == 0)
dialup = dns_dialuptype_notify;
else if (strcasecmp(dialupstr, "notify-passive") == 0)
@@ -462,7 +467,7 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
else
notifytype = dns_notifytype_no;
} else {
char *notifystr = cfg_obj_asstring(obj);
const char *notifystr = cfg_obj_asstring(obj);
if (strcasecmp(notifystr, "explicit") == 0)
notifytype = dns_notifytype_explicit;
else
@@ -612,6 +617,7 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
switch (ztype) {
case dns_zone_slave:
case dns_zone_stub:
count = 0;
obj = NULL;
result = cfg_map_get(zoptions, "masters", &obj);
if (obj != NULL) {
@@ -715,9 +721,9 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
}
isc_boolean_t
ns_zone_reusable(dns_zone_t *zone, cfg_obj_t *zconfig) {
cfg_obj_t *zoptions = NULL;
cfg_obj_t *obj = NULL;
ns_zone_reusable(dns_zone_t *zone, const cfg_obj_t *zconfig) {
const cfg_obj_t *zoptions = NULL;
const cfg_obj_t *obj = NULL;
const char *cfilename;
const char *zfilename;
+37 -26
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: nsupdate.8,v 1.24.2.2.2.8 2005/10/13 02:33:48 marka Exp $
.\" $Id: nsupdate.8,v 1.24.2.2.2.9 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: nsupdate
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: Jun 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "NSUPDATE" "8" "Jun 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -30,7 +33,7 @@
nsupdate \- Dynamic DNS update utility
.SH "SYNOPSIS"
.HP 9
\fBnsupdate\fR [\fB\-d\fR] [[\fB\-y\ \fR\fB\fIkeyname:secret\fR\fR] [\fB\-k\ \fR\fB\fIkeyfile\fR\fR]] [\fB\-t\ \fR\fB\fItimeout\fR\fR] [\fB\-u\ \fR\fB\fIudptimeout\fR\fR] [\fB\-r\ \fR\fB\fIudpretries\fR\fR] [\fB\-v\fR] [filename]
\fBnsupdate\fR [\fB\-d\fR] [[\fB\-y\ \fR\fB\fIkeyname:secret\fR\fR] | [\fB\-k\ \fR\fB\fIkeyfile\fR\fR]] [\fB\-t\ \fR\fB\fItimeout\fR\fR] [\fB\-u\ \fR\fB\fIudptimeout\fR\fR] [\fB\-r\ \fR\fB\fIudpretries\fR\fR] [\fB\-v\fR] [filename]
.SH "DESCRIPTION"
.PP
\fBnsupdate\fR
@@ -79,7 +82,8 @@ reads the shared secret from the file
must also be present. When the
\fB\-y\fR
option is used, a signature is generated from
\fIkeyname:secret.\fR\fIkeyname\fR
\fIkeyname:secret.\fR
\fIkeyname\fR
is the name of the key, and
\fIsecret\fR
is the base64 encoded shared secret. Use of the
@@ -123,7 +127,7 @@ Every update request consists of zero or more prerequisites and zero or more upd
command) causes the accumulated commands to be sent as one Dynamic DNS update request to the name server.
.PP
The command formats and their meaning are as follows:
.TP
.TP 3n
.HP 7 \fBserver\fR {servername} [port]
Sends all dynamic update requests to the name server
\fIservername\fR. When no server statement is provided,
@@ -133,7 +137,7 @@ will send updates to the master server of the correct zone. The MNAME field of t
is the port number on
\fIservername\fR
where the dynamic update requests get sent. If no port number is specified, the default DNS port number of 53 is used.
.TP
.TP 3n
.HP 6 \fBlocal\fR {address} [port]
Sends all dynamic update requests using the local
\fIaddress\fR. When no local statement is provided,
@@ -141,7 +145,7 @@ Sends all dynamic update requests using the local
will send updates using an address and port chosen by the system.
\fIport\fR
can additionally be used to make requests come from a specific port. If no port number is specified, the system will assign one.
.TP
.TP 3n
.HP 5 \fBzone\fR {zonename}
Specifies that all updates are to be made to the zone
\fIzonename\fR. If no
@@ -149,32 +153,33 @@ Specifies that all updates are to be made to the zone
statement is provided,
\fBnsupdate\fR
will attempt determine the correct zone to update based on the rest of the input.
.TP
.TP 3n
.HP 6 \fBclass\fR {classname}
Specify the default class. If no
\fIclass\fR
is specified the default class is
\fIIN\fR.
.TP
.TP 3n
.HP 4 \fBkey\fR {name} {secret}
Specifies that all updates are to be TSIG signed using the
\fIkeyname\fR\fIkeysecret\fR
\fIkeyname\fR
\fIkeysecret\fR
pair. The
\fBkey\fR
command overrides any key specified on the command line via
\fB\-y\fR
or
\fB\-k\fR.
.TP
.TP 3n
.HP 16 \fBprereq nxdomain\fR {domain\-name}
Requires that no resource record of any type exists with name
\fIdomain\-name\fR.
.TP
.TP 3n
.HP 16 \fBprereq yxdomain\fR {domain\-name}
Requires that
\fIdomain\-name\fR
exists (has as at least one resource record, of any type).
.TP
.TP 3n
.HP 15 \fBprereq nxrrset\fR {domain\-name} [class] {type}
Requires that no resource record exists of the specified
\fItype\fR,
@@ -183,7 +188,7 @@ and
\fIdomain\-name\fR. If
\fIclass\fR
is omitted, IN (internet) is assumed.
.TP
.TP 3n
.HP 15 \fBprereq yxrrset\fR {domain\-name} [class] {type}
This requires that a resource record of the specified
\fItype\fR,
@@ -193,7 +198,7 @@ and
must exist. If
\fIclass\fR
is omitted, IN (internet) is assumed.
.TP
.TP 3n
.HP 15 \fBprereq yxrrset\fR {domain\-name} [class] {type} {data...}
The
\fIdata\fR
@@ -207,7 +212,7 @@ are combined to form a set of RRs. This set of RRs must exactly match the set of
\fIdomain\-name\fR. The
\fIdata\fR
are written in the standard text representation of the resource record's RDATA.
.TP
.TP 3n
.HP 14 \fBupdate delete\fR {domain\-name} [ttl] [class] [type\ [data...]]
Deletes any resource records named
\fIdomain\-name\fR. If
@@ -219,20 +224,20 @@ is provided, only matching resource records will be removed. The internet class
is not supplied. The
\fIttl\fR
is ignored, and is only allowed for compatibility.
.TP
.TP 3n
.HP 11 \fBupdate add\fR {domain\-name} {ttl} [class] {type} {data...}
Adds a new resource record with the specified
\fIttl\fR,
\fIclass\fR
and
\fIdata\fR.
.TP
.TP 3n
.HP 5 \fBshow\fR
Displays the current message, containing all of the prerequisites and updates specified since the last send.
.TP
.TP 3n
.HP 5 \fBsend\fR
Sends the current message. This is equivalent to entering a blank line.
.TP
.TP 3n
.HP 7 \fBanswer\fR
Displays the answer.
.PP
@@ -246,12 +251,14 @@ could be used to insert and delete resource records from the
zone. Notice that the input in each example contains a trailing blank line so that a group of commands are sent as one dynamic update request to the master name server for
\fBexample.com\fR.
.sp
.RS 3n
.nf
# nsupdate
> update delete oldhost.example.com A
> update add newhost.example.com 86400 A 172.16.1.1
> send
.fi
.RE
.sp
.PP
Any A records for
@@ -260,25 +267,27 @@ are deleted. and an A record for
\fBnewhost.example.com\fR
it IP address 172.16.1.1 is added. The newly\-added record has a 1 day TTL (86400 seconds)
.sp
.RS 3n
.nf
# nsupdate
> prereq nxdomain nickname.example.com
> update add nickname.example.com 86400 CNAME somehost.example.com
> send
.fi
.RE
.sp
.PP
The prerequisite condition gets the name server to check that there are no resource records of any type for
\fBnickname.example.com\fR. If there are, the update request fails. If this name does not exist, a CNAME for it is added. This ensures that when the CNAME is added, it cannot conflict with the long\-standing rule in RFC1034 that a name must not exist as any other record type if it exists as a CNAME. (The rule has been updated for DNSSEC in RFC2535 to allow CNAMEs to have RRSIG, DNSKEY and NSEC records.)
.SH "FILES"
.TP
.TP 3n
\fB/etc/resolv.conf\fR
used to identify default name server
.TP
.TP 3n
\fBK{name}.+157.+{random}.key\fR
base\-64 encoding of HMAC\-MD5 key created by
\fBdnssec\-keygen\fR(8).
.TP
.TP 3n
\fBK{name}.+157.+{random}.private\fR
base\-64 encoding of HMAC\-MD5 key created by
\fBdnssec\-keygen\fR(8).
@@ -296,3 +305,5 @@ base\-64 encoding of HMAC\-MD5 key created by
.SH "BUGS"
.PP
The TSIG key is redundantly stored in two separate files. This is a consequence of nsupdate using the DST library for its cryptographic operations, and may change in future releases.
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+6 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nsupdate.c,v 1.103.2.15.2.20 2005/03/17 03:58:26 marka Exp $ */
/* $Id: nsupdate.c,v 1.103.2.15.2.23 2006/06/09 07:29:24 marka Exp $ */
#include <config.h>
@@ -1343,8 +1343,10 @@ get_next_command(void) {
char *word;
ddebug("get_next_command()");
if (interactive)
if (interactive) {
fprintf(stdout, "> ");
fflush(stdout);
}
isc_app_block();
cmdline = fgets(cmdlinebuf, MAXCMD, input);
isc_app_unblock();
@@ -1665,7 +1667,7 @@ recvsoa(isc_task_t *task, isc_event_t *event) {
result = dns_request_createvia3(requestmgr, soaquery,
localaddr, addr, 0, NULL,
FIND_TIMEOUT * 20,
FIND_TIMEOUT * 20, 3,
FIND_TIMEOUT, 3,
global_task, recvsoa, reqinfo,
&request);
check_result(result, "dns_request_createvia");
+10 -10
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: nsupdate.html,v 1.9.2.3.2.12 2005/10/13 02:33:49 marka Exp $ -->
<!-- $Id: nsupdate.html,v 1.9.2.3.2.15 2006/06/29 13:02:30 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>nsupdate</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p>nsupdate &#8212; Dynamic DNS update utility</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">nsupdate</code> [<code class="option">-d</code>] [[<code class="option">-y <em class="replaceable"><code>keyname:secret</code></em></code>] | [<code class="option">-k <em class="replaceable"><code>keyfile</code></em></code>]] [<code class="option">-t <em class="replaceable"><code>timeout</code></em></code>] [<code class="option">-u <em class="replaceable"><code>udptimeout</code></em></code>] [<code class="option">-r <em class="replaceable"><code>udpretries</code></em></code>] [<code class="option">-v</code>] [filename]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525896"></a><h2>DESCRIPTION</h2>
<a name="id2549461"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">nsupdate</strong></span>
is used to submit Dynamic DNS Update requests as defined in RFC2136
@@ -160,7 +160,7 @@ and number of UDP retries.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526121"></a><h2>INPUT FORMAT</h2>
<a name="id2549686"></a><h2>INPUT FORMAT</h2>
<p>
<span><strong class="command">nsupdate</strong></span>
reads input from
@@ -317,7 +317,7 @@ are written in the standard text representation of the resource record's
RDATA.
</p></dd>
<dt><span class="term">
<div class="cmdsynopsis"><p><code class="command">update delete</code> {domain-name} [ttl] [class] [type [data...]]</p></div>
<div class="cmdsynopsis"><p><code class="command">update delete</code> {domain-name} [ttl] [class] [type [data...]]</p></div>
</span></dt>
<dd><p>
Deletes any resource records named
@@ -370,7 +370,7 @@ Lines beginning with a semicolon are comments and are ignored.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526749"></a><h2>EXAMPLES</h2>
<a name="id2550382"></a><h2>EXAMPLES</h2>
<p>
The examples below show how
<span><strong class="command">nsupdate</strong></span>
@@ -423,7 +423,7 @@ RRSIG, DNSKEY and NSEC records.)
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526793"></a><h2>FILES</h2>
<a name="id2550426"></a><h2>FILES</h2>
<div class="variablelist"><dl>
<dt><span class="term"><code class="constant">/etc/resolv.conf</code></span></dt>
<dd><p>
@@ -442,7 +442,7 @@ base-64 encoding of HMAC-MD5 key created by
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525155"></a><h2>SEE ALSO</h2>
<a name="id2549061"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">RFC2136</span></span>,
<span class="citerefentry"><span class="refentrytitle">RFC3007</span></span>,
@@ -456,7 +456,7 @@ base-64 encoding of HMAC-MD5 key created by
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525226"></a><h2>BUGS</h2>
<a name="id2549132"></a><h2>BUGS</h2>
<p>
The TSIG key is redundantly stored in two separate files.
This is a consequence of nsupdate using the DST library
+20 -15
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: rndc-confgen.8,v 1.3.2.5.2.7 2005/10/13 02:33:50 marka Exp $
.\" $Id: rndc-confgen.8,v 1.3.2.5.2.8 2006/06/29 13:02:31 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: rndc\-confgen
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: Aug 27, 2001
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "RNDC\-CONFGEN" "8" "Aug 27, 2001" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -53,7 +56,7 @@ file and a
\fBcontrols\fR
statement altogether.
.SH "OPTIONS"
.TP
.TP 3n
\-a
Do automatic
\fBrndc\fR
@@ -97,30 +100,30 @@ option and set up a
and
\fInamed.conf\fR
as directed.
.TP
.TP 3n
\-b \fIkeysize\fR
Specifies the size of the authentication key in bits. Must be between 1 and 512 bits; the default is 128.
.TP
.TP 3n
\-c \fIkeyfile\fR
Used with the
\fB\-a\fR
option to specify an alternate location for
\fIrndc.key\fR.
.TP
.TP 3n
\-h
Prints a short summary of the options and arguments to
\fBrndc\-confgen\fR.
.TP
.TP 3n
\-k \fIkeyname\fR
Specifies the key name of the rndc authentication key. This must be a valid domain name. The default is
\fBrndc\-key\fR.
.TP
.TP 3n
\-p \fIport\fR
Specifies the command channel port where
\fBnamed\fR
listens for connections from
\fBrndc\fR. The default is 953.
.TP
.TP 3n
\-r \fIrandomfile\fR
Specifies a source of random data for generating the authorization. If the operating system does not provide a
\fI/dev/random\fR
@@ -129,13 +132,13 @@ or equivalent device, the default source of randomness is keyboard input.
specifies the name of a character device or file containing random data to be used instead of the default. The special value
\fIkeyboard\fR
indicates that keyboard input should be used.
.TP
.TP 3n
\-s \fIaddress\fR
Specifies the IP address where
\fBnamed\fR
listens for command channel connections from
\fBrndc\fR. The default is the loopback address 127.0.0.1.
.TP
.TP 3n
\-t \fIchrootdir\fR
Used with the
\fB\-a\fR
@@ -145,7 +148,7 @@ will run chrooted. An additional copy of the
\fIrndc.key\fR
will be written relative to this directory so that it will be found by the chrooted
\fBnamed\fR.
.TP
.TP 3n
\-u \fIuser\fR
Used with the
\fB\-a\fR
@@ -181,3 +184,5 @@ BIND 9 Administrator Reference Manual.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+9 -9
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: rndc-confgen.html,v 1.3.2.5.2.11 2005/10/13 02:33:51 marka Exp $ -->
<!-- $Id: rndc-confgen.html,v 1.3.2.5.2.13 2006/06/29 13:02:31 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>rndc-confgen</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">rndc-confgen</span> &#8212; rndc key generation tool</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">rndc-confgen</code> [<code class="option">-a</code>] [<code class="option">-b <em class="replaceable"><code>keysize</code></em></code>] [<code class="option">-c <em class="replaceable"><code>keyfile</code></em></code>] [<code class="option">-h</code>] [<code class="option">-k <em class="replaceable"><code>keyname</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-r <em class="replaceable"><code>randomfile</code></em></code>] [<code class="option">-s <em class="replaceable"><code>address</code></em></code>] [<code class="option">-t <em class="replaceable"><code>chrootdir</code></em></code>] [<code class="option">-u <em class="replaceable"><code>user</code></em></code>]</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525911"></a><h2>DESCRIPTION</h2>
<a name="id2549476"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">rndc-confgen</strong></span> generates configuration files
for <span><strong class="command">rndc</strong></span>. It can be used as a
@@ -48,7 +48,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525957"></a><h2>OPTIONS</h2>
<a name="id2549522"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-a</span></dt>
<dd>
@@ -57,7 +57,7 @@
This creates a file <code class="filename">rndc.key</code>
in <code class="filename">/etc</code> (or whatever
<code class="varname">sysconfdir</code>
was specified as when <span class="acronym">BIND</span> was built)
was specified as when <acronym class="acronym">BIND</acronym> was built)
that is read by both <span><strong class="command">rndc</strong></span>
and <span><strong class="command">named</strong></span> on startup. The
<code class="filename">rndc.key</code> file defines a default
@@ -148,7 +148,7 @@
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2526270"></a><h2>EXAMPLES</h2>
<a name="id2549972"></a><h2>EXAMPLES</h2>
<p>
To allow <span><strong class="command">rndc</strong></span> to be used with
no manual configuration, run
@@ -167,7 +167,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526314"></a><h2>SEE ALSO</h2>
<a name="id2550016"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">rndc.conf</span>(5)</span>,
@@ -176,7 +176,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526357"></a><h2>AUTHOR</h2>
<a name="id2550058"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+18 -12
View File
@@ -13,14 +13,17 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: rndc.8,v 1.24.206.5 2005/10/13 02:33:49 marka Exp $
.\" $Id: rndc.8,v 1.24.206.6 2006/06/29 13:02:30 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.\" Title: rndc
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "RNDC" "8" "June 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
@@ -50,13 +53,13 @@ named the only supported authentication algorithm is HMAC\-MD5, which uses a sha
\fBrndc\fR
reads a configuration file to determine how to contact the name server and decide what algorithm and key it should use.
.SH "OPTIONS"
.TP
.TP 3n
\-c \fIconfig\-file\fR
Use
\fIconfig\-file\fR
as the configuration file instead of the default,
\fI/etc/rndc.conf\fR.
.TP
.TP 3n
\-k \fIkey\-file\fR
Use
\fIkey\-file\fR
@@ -66,20 +69,20 @@ as the key file instead of the default,
will be used to authenticate commands sent to the server if the
\fIconfig\-file\fR
does not exist.
.TP
.TP 3n
\-s \fIserver\fR
\fIserver\fR
is the name or address of the server which matches a server statement in the configuration file for
\fBrndc\fR. If no server is supplied on the command line, the host named by the default\-server clause in the option statement of the configuration file will be used.
.TP
.TP 3n
\-p \fIport\fR
Send commands to TCP port
\fIport\fR
instead of BIND 9's default control channel port, 953.
.TP
.TP 3n
\-V
Enable verbose logging.
.TP
.TP 3n
\-y \fIkeyid\fR
Use the key
\fIkeyid\fR
@@ -111,8 +114,11 @@ Several error messages could be clearer.
.PP
\fBrndc.conf\fR(5),
\fBnamed\fR(8),
\fBnamed.conf\fR(5)\fBndc\fR(8),
\fBnamed.conf\fR(5)
\fBndc\fR(8),
BIND 9 Administrator Reference Manual.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+31 -21
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc.c,v 1.77.2.5.2.15 2005/03/17 03:58:27 marka Exp $ */
/* $Id: rndc.c,v 1.77.2.5.2.19 2006/08/04 03:03:08 marka Exp $ */
/*
* Principal Author: DCL
@@ -154,6 +154,11 @@ rndc_senddone(isc_task_t *task, isc_event_t *event) {
if (sevent->result != ISC_R_SUCCESS)
fatal("send failed: %s", isc_result_totext(sevent->result));
isc_event_free(&event);
if (sends == 0 && recvs == 0) {
isc_socket_detach(&sock);
isc_task_shutdown(task);
RUNTIME_CHECK(isc_app_shutdown() == ISC_R_SUCCESS);
}
}
static void
@@ -204,9 +209,11 @@ rndc_recvdone(isc_task_t *task, isc_event_t *event) {
isc_event_free(&event);
isccc_sexpr_free(&response);
isc_socket_detach(&sock);
isc_task_shutdown(task);
RUNTIME_CHECK(isc_app_shutdown() == ISC_R_SUCCESS);
if (sends == 0 && recvs == 0) {
isc_socket_detach(&sock);
isc_task_shutdown(task);
RUNTIME_CHECK(isc_app_shutdown() == ISC_R_SUCCESS);
}
}
static void
@@ -288,6 +295,7 @@ rndc_recvnonce(isc_task_t *task, isc_event_t *event) {
static void
rndc_connected(isc_task_t *task, isc_event_t *event) {
char socktext[ISC_SOCKADDR_FORMATSIZE];
isc_socketevent_t *sevent = (isc_socketevent_t *)event;
isccc_sexpr_t *request = NULL;
isccc_sexpr_t *data;
@@ -301,17 +309,19 @@ rndc_connected(isc_task_t *task, isc_event_t *event) {
connects--;
if (sevent->result != ISC_R_SUCCESS) {
isc_sockaddr_format(&serveraddrs[currentaddr], socktext,
sizeof(socktext));
if (sevent->result != ISC_R_CANCELED &&
currentaddr < nserveraddrs)
++currentaddr < nserveraddrs)
{
notify("connection failed: %s",
notify("connection failed: %s: %s", socktext,
isc_result_totext(sevent->result));
isc_socket_detach(&sock);
isc_event_free(&event);
rndc_startconnect(&serveraddrs[currentaddr++], task);
rndc_startconnect(&serveraddrs[currentaddr], task);
return;
} else
fatal("connect failed: %s",
fatal("connect failed: %s: %s", socktext,
isc_result_totext(sevent->result));
}
@@ -369,7 +379,7 @@ rndc_start(isc_task_t *task, isc_event_t *event) {
get_addresses(servername, (in_port_t) remoteport);
currentaddr = 0;
rndc_startconnect(&serveraddrs[currentaddr++], task);
rndc_startconnect(&serveraddrs[currentaddr], task);
}
static void
@@ -378,17 +388,17 @@ parse_config(isc_mem_t *mctx, isc_log_t *log, const char *keyname,
{
isc_result_t result;
const char *conffile = admin_conffile;
cfg_obj_t *defkey = NULL;
cfg_obj_t *options = NULL;
cfg_obj_t *servers = NULL;
cfg_obj_t *server = NULL;
cfg_obj_t *keys = NULL;
cfg_obj_t *key = NULL;
cfg_obj_t *defport = NULL;
cfg_obj_t *secretobj = NULL;
cfg_obj_t *algorithmobj = NULL;
const cfg_obj_t *defkey = NULL;
const cfg_obj_t *options = NULL;
const cfg_obj_t *servers = NULL;
const cfg_obj_t *server = NULL;
const cfg_obj_t *keys = NULL;
const cfg_obj_t *key = NULL;
const cfg_obj_t *defport = NULL;
const cfg_obj_t *secretobj = NULL;
const cfg_obj_t *algorithmobj = NULL;
cfg_obj_t *config = NULL;
cfg_listelt_t *elt;
const cfg_listelt_t *elt;
const char *secretstr;
const char *algorithm;
static char secretarray[1024];
@@ -420,7 +430,7 @@ parse_config(isc_mem_t *mctx, isc_log_t *log, const char *keyname,
if (key_only && servername == NULL)
servername = "127.0.0.1";
else if (servername == NULL && options != NULL) {
cfg_obj_t *defserverobj = NULL;
const cfg_obj_t *defserverobj = NULL;
(void)cfg_map_get(options, "default-server", &defserverobj);
if (defserverobj != NULL)
servername = cfg_obj_asstring(defserverobj);
+13 -6
View File
@@ -13,15 +13,18 @@
.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
.\" $Id: rndc.conf.5,v 1.21.206.5 2005/10/13 02:33:50 marka Exp $
.\" $Id: rndc.conf.5,v 1.21.206.6 2006/06/29 13:02:31 marka Exp $
.\"
.hy 0
.ad l
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.TH "\\FIRNDC.CONF\\FR" "5" "June 30, 2000" "BIND9" "BIND9"
.\" Title: \fIrndc.conf\fR
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: June 30, 2000
.\" Manual: BIND9
.\" Source: BIND9
.\"
.TH "\fIRNDC.CONF\fR" "5" "June 30, 2000" "BIND9" "BIND9"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
@@ -98,6 +101,7 @@ program, also known as
does not ship with BIND 9 but is available on many systems. See the EXAMPLE section for sample command lines for each.
.SH "EXAMPLE"
.sp
.RS 3n
.nf
options {
default\-server localhost;
@@ -111,6 +115,7 @@ does not ship with BIND 9 but is available on many systems. See the EXAMPLE sect
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
.fi
.RE
.PP
In the above example,
\fBrndc\fR
@@ -152,3 +157,5 @@ BIND 9 Administrator Reference Manual.
.SH "AUTHOR"
.PP
Internet Systems Consortium
.SH "COPYRIGHT"
Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
+8 -8
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: rndc.conf.html,v 1.5.2.1.4.10 2005/10/13 02:33:51 marka Exp $ -->
<!-- $Id: rndc.conf.html,v 1.5.2.1.4.13 2006/06/29 13:02:31 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>rndc.conf</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><code class="filename">rndc.conf</code> &#8212; rndc configuration file</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">rndc.conf</code> </p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525833"></a><h2>DESCRIPTION</h2>
<a name="id2549398"></a><h2>DESCRIPTION</h2>
<p>
<code class="filename">rndc.conf</code> is the configuration file
for <span><strong class="command">rndc</strong></span>, the BIND 9 name server control
@@ -105,7 +105,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525968"></a><h2>EXAMPLE</h2>
<a name="id2549601"></a><h2>EXAMPLE</h2>
<pre class="programlisting">
options {
default-server localhost;
@@ -151,7 +151,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526028"></a><h2>NAME SERVER CONFIGURATION</h2>
<a name="id2549730"></a><h2>NAME SERVER CONFIGURATION</h2>
<p>
The name server must be configured to accept rndc connections and
to recognize the key specified in the <code class="filename">rndc.conf</code>
@@ -161,7 +161,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526049"></a><h2>SEE ALSO</h2>
<a name="id2549750"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">rndc-confgen</span>(8)</span>,
@@ -170,7 +170,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526091"></a><h2>AUTHOR</h2>
<a name="id2549793"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+8 -8
View File
@@ -14,15 +14,15 @@
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: rndc.html,v 1.7.2.1.4.10 2005/10/13 02:33:50 marka Exp $ -->
<!-- $Id: rndc.html,v 1.7.2.1.4.12 2006/06/29 13:02:31 marka Exp $ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>rndc</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
<a name="id2463721"></a><div class="titlepage"></div>
<a name="id2482688"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>Name</h2>
<p><span class="application">rndc</span> &#8212; name server control utility</p>
@@ -32,7 +32,7 @@
<div class="cmdsynopsis"><p><code class="command">rndc</code> [<code class="option">-c <em class="replaceable"><code>config-file</code></em></code>] [<code class="option">-k <em class="replaceable"><code>key-file</code></em></code>] [<code class="option">-s <em class="replaceable"><code>server</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-V</code>] [<code class="option">-y <em class="replaceable"><code>key_id</code></em></code>] {command}</p></div>
</div>
<div class="refsect1" lang="en">
<a name="id2525886"></a><h2>DESCRIPTION</h2>
<a name="id2549451"></a><h2>DESCRIPTION</h2>
<p>
<span><strong class="command">rndc</strong></span> controls the operation of a name
server. It supersedes the <span><strong class="command">ndc</strong></span> utility
@@ -61,7 +61,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2525927"></a><h2>OPTIONS</h2>
<a name="id2549492"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-c <em class="replaceable"><code>config-file</code></em></span></dt>
<dd><p>
@@ -123,7 +123,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526109"></a><h2>LIMITATIONS</h2>
<a name="id2549811"></a><h2>LIMITATIONS</h2>
<p>
<span><strong class="command">rndc</strong></span> does not yet support all the commands of
the BIND 8 <span><strong class="command">ndc</strong></span> utility.
@@ -137,7 +137,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526138"></a><h2>SEE ALSO</h2>
<a name="id2549840"></a><h2>SEE ALSO</h2>
<p>
<span class="citerefentry"><span class="refentrytitle">rndc.conf</span>(5)</span>,
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
@@ -147,7 +147,7 @@
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2526190"></a><h2>AUTHOR</h2>
<a name="id2549892"></a><h2>AUTHOR</h2>
<p>
<span class="corpauthor">Internet Systems Consortium</span>
</p>
+25
View File
@@ -140,6 +140,31 @@ then
fi
fi
;;
*-freebsd*)
# We don't want to set -lpthread as that break
# the ability to choose threads library at final
# link time and is not valid for all architectures.
PTHREAD=
if test "X$GCC" = "Xyes"; then
saved_cc="$CC"
CC="$CC -pthread"
AC_MSG_CHECKING(for gcc -pthread support);
AC_TRY_LINK([#include <pthread.h>],
[printf("%x\n", pthread_create);],
PTHREAD="yes"
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no))
CC="$saved_cc"
fi
if test "X$PTHREAD" != "Xyes"; then
AC_CHECK_LIB(pthread, pthread_create,,
AC_CHECK_LIB(thr, thread_create,,
AC_CHECK_LIB(c_r, pthread_create,,
AC_CHECK_LIB(c, pthread_create,,
AC_MSG_ERROR("could not find thread libraries")))))
fi
;;
*)
AC_CHECK_LIB(pthread, pthread_create,,
AC_CHECK_LIB(pthread, __pthread_create,,
+134 -62
View File
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.294.2.23.2.51.4.3 $)
AC_REVISION($Revision: 1.294.2.23.2.73 $)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
@@ -364,7 +364,7 @@ AC_ARG_WITH(openssl,
(Required for DNSSEC)],
use_openssl="$withval", use_openssl="auto")
openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg"
openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
if test "$use_openssl" = "auto"
then
for d in $openssldirs
@@ -417,6 +417,9 @@ case "$use_openssl" in
*-solaris*)
DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
;;
*-hp-hpux*)
DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
;;
*)
DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
;;
@@ -463,9 +466,19 @@ shared library configuration (e.g., LD_LIBRARY_PATH).)],
[AC_MSG_RESULT(assuming it does work on target platform)]
)
AC_CHECK_FUNC(DH_generate_parameters,
AC_DEFINE(HAVE_DH_GENERATE_PARAMETERS, 1,
[Define if libcrypto has DH_generate_parameters]))
AC_CHECK_FUNC(RSA_generate_key,
AC_DEFINE(HAVE_RSA_GENERATE_KEY, 1,
[Define if libcrypto has RSA_generate_key]))
AC_CHECK_FUNC(DSA_generate_parameters,
AC_DEFINE(HAVE_DSA_GENERATE_PARAMETERS, 1,
[Define if libcrypto has DSA_generate_parameters]))
AC_ARG_ENABLE(openssl-version-check,
[AC_HELP_STRING([--enable-openssl-version-check],
[Check OpenSSL Version @<:@default=yes@:>@])])
[Check OpenSSL Version @<:@default=yes@:>@])])
case "$enable_openssl_version_check" in
yes|'')
AC_MSG_CHECKING(OpenSSL library version)
@@ -473,9 +486,9 @@ yes|'')
#include <stdio.h>
#include <openssl/opensslv.h>
int main() {
if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
OPENSSL_VERSION_NUMBER < 0x009080000L) ||
OPENSSL_VERSION_NUMBER >= 0x0090804fL)
if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
OPENSSL_VERSION_NUMBER < 0x00908000L) ||
OPENSSL_VERSION_NUMBER >= 0x0090804fL)
return (0);
printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n",
OPENSSL_VERSION_NUMBER);
@@ -601,16 +614,61 @@ sinclude(config.threads.in)dnl
if $use_threads
then
if test "X$GCC" = "Xyes"; then
case "$host" in
*-freebsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-openbsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
LIBS="$LIBS -lthread"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
esac
else
case $host in
*-dec-osf*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
CC="$CC -mt"
CCOPT="$CCOPT -mt"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-sco-sysv*uw*|*-*-sysv*UnixWare*)
CC="$CC -Kthread"
CCOPT="$CCOPT -Kthread"
;;
*-*-sysv*OpenUNIX*)
CC="$CC -Kpthread"
CCOPT="$CCOPT -Kpthread"
;;
esac
fi
ALWAYS_DEFINES="-D_REENTRANT"
ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
thread_dir=pthreads
#
# We'd like to use sigwait() too
#
AC_CHECK_LIB(c, sigwait,
AC_DEFINE(HAVE_SIGWAIT),
AC_CHECK_LIB(pthread, sigwait,
AC_DEFINE(HAVE_SIGWAIT),
AC_CHECK_LIB(pthread, _Psigwait,
AC_DEFINE(HAVE_SIGWAIT),))
)
AC_CHECK_FUNC(sigwait,
AC_DEFINE(HAVE_SIGWAIT),
AC_CHECK_LIB(c, sigwait,
AC_DEFINE(HAVE_SIGWAIT),
AC_CHECK_LIB(pthread, sigwait,
AC_DEFINE(HAVE_SIGWAIT),
AC_CHECK_LIB(pthread, _Psigwait,
AC_DEFINE(HAVE_SIGWAIT),))))
AC_CHECK_FUNC(pthread_attr_getstacksize,
AC_DEFINE(HAVE_PTHREAD_ATTR_GETSTACKSIZE),)
@@ -674,50 +732,6 @@ then
#
AC_CHECK_FUNC(sysconf, AC_DEFINE(HAVE_SYSCONF),)
if test "X$GCC" = "Xyes"; then
case "$host" in
*-freebsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-openbsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
LIBS="$LIBS -lthread"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
esac
else
case $host in
*-dec-osf*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
CC="$CC -mt"
CCOPT="$CCOPT -mt"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-sco-sysv*uw*|*-*-sysv*UnixWare*)
CC="$CC -Kthread"
CCOPT="$CCOPT -Kthread"
;;
*-*-sysv*OpenUNIX*)
CC="$CC -Kpthread"
CCOPT="$CCOPT -Kpthread"
;;
esac
fi
ALWAYS_DEFINES="-D_REENTRANT"
ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
thread_dir=pthreads
else
ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
thread_dir=nothreads
@@ -777,7 +791,18 @@ MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat"
AC_MSG_CHECKING(if "$CC" supports -fno-strict-aliasing)
SAVE_CFLAGS=$CFLAGS
CFLAGS=-fno-strict-aliasing
AC_TRY_COMPILE(,, [FNOSTRICTALIASING=yes],[FNOSTRICTALIASING=no])
CFLAGS=$SAVE_CFLAGS
if test "$FNOSTRICTALIASING" = "yes"; then
AC_MSG_RESULT(yes)
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
else
AC_MSG_RESULT(no)
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
fi
case "$host" in
*-hp-hpux*)
LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
@@ -1555,11 +1580,11 @@ AC_SUBST(ISC_PLATFORM_NEEDMEMMOVE)
AC_CHECK_FUNC(strtoul,
[ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
LWRES_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
GENRANDOMLIB=""],
[ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
LWRES_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
"GENRANDOMLIB=${ISCLIBS}"])
LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
GENRANDOMLIB='${ISCLIBS}'])
AC_SUBST(ISC_PLATFORM_NEEDSTRTOUL)
AC_SUBST(LWRES_PLATFORM_NEEDSTRTOUL)
AC_SUBST(GENRANDOMLIB)
@@ -1674,6 +1699,7 @@ AC_TRY_COMPILE([
[optarg = 0;],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
GEN_NEED_OPTARG="-DNEED_OPTARG=1"
AC_DEFINE(NEED_OPTARG, 1, [Defined if extern char *optarg is not declared.])])
#
@@ -1736,6 +1762,17 @@ case "$host" in
;;
esac
#
# Some hosts need msg_namelen to match the size of the socket structure.
# Some hosts don't set msg_namelen appropriately on return from recvmsg().
#
case $host in
*os2*|*hp-mpeix*)
AC_DEFINE(BROKEN_RECVMSG, 1,
[Define if recvmsg() does not meet all of the BSD socket API specifications.])
;;
esac
#
# Microsoft has their own way of handling shared libraries that requires
# additional qualifiers on extern variables. Unix systems don't need it.
@@ -1753,7 +1790,7 @@ AC_SUBST(ISC_PLATFORM_BRACEPTHREADONCEINIT)
ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
case "$host" in
*-aix5.1.*)
*-aix5.[[123]].*)
hack_shutup_pthreadonceinit=yes
;;
*-bsdi3.1*)
@@ -1769,6 +1806,9 @@ case "$host" in
[*-solaris2.[89]])
hack_shutup_pthreadonceinit=yes
;;
*-solaris2.10)
hack_shutup_pthreadonceinit=yes
;;
esac
case "$hack_shutup_pthreadonceinit" in
@@ -1849,6 +1889,16 @@ case "$host" in
;;
esac
#
# Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
# This prevents the source address being set.
#
case "$host" in
*-solaris2.[[012345]]|*-solaris2.5.1)
AC_DEFINE(BROKEN_TCP_BIND_BEFORE_CONNECT, 1,
[Define if you cannot bind() before connect() for TCP sockets.])
;;
esac
#
# The following sections deal with tools used for formatting
# the documentation. They are all optional, unless you are
# a developer editing the documentation source.
@@ -2024,6 +2074,28 @@ LIBBIND9_API=$srcdir/lib/bind9/api
AC_SUBST_FILE(LIBLWRES_API)
LIBLWRES_API=$srcdir/lib/lwres/api
if test "$cross_compiling" = "yes"; then
if test -z "$BUILD_CC"; then
AC_ERROR([BUILD_CC not set])
fi
BUILD_CFLAGS="$BUILD_CFLAGS"
BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
BUILD_LDFLAGS="$BUILD_LDFLAGS"
BUILD_LIBS="$BUILD_LIBS"
else
BUILD_CC="$CC"
BUILD_CFLAGS="$CFLAGS"
BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
BUILD_LDFLAGS="$LDFLAGS"
BUILD_LIBS="$LIBS"
fi
AC_SUBST(BUILD_CC)
AC_SUBST(BUILD_CFLAGS)
AC_SUBST(BUILD_CPPFLAGS)
AC_SUBST(BUILD_LDFLAGS)
AC_SUBST(BUILD_LIBS)
AC_OUTPUT(
make/rules
make/includes
Loaded 100 of 4004 files, more files were not shown because too many files have changed in this diff. Show more