Bruce M Simpson
160a2e5504
Document the AF_LINK extension which was imported from NetBSD.
2007-02-28 21:28:33 +00:00
Bruce M Simpson
67228c4621
Nuke ascii2addr() and addr2ascii(). They have no consumers anywhere
...
in FreeBSD, and originated from INRIA IPv6.
Stub out netstat reference to addr2ascii() I mistakenly introduced.
Update misleading man page sections.
Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to
print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394
bits which don't map directly to our code.
Obtained from: NetBSD (getnameinfo.c)
Discussed on: current (March 2006)
2007-02-28 21:18:38 +00:00
Mohan Srinivasan
4a32dc299f
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-02-28 20:48:00 +00:00
Bruce M Simpson
cd88c37218
Remove code which would never be used, viz a viz Quality-of-Service;
...
the token bucket filter got killed in netinet, so it gets killed here
too. Correct comments.
2007-02-28 20:32:25 +00:00
Bruce M Simpson
430fc8f211
Add a comment about a struct which needs to be global.
...
Remove an unused global variable.
Staticize variables which do not need to be global.
2007-02-28 20:29:20 +00:00
Ruslan Ermilov
51804c7973
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.
Prodded by: rafan
2007-02-28 20:06:21 +00:00
Bruce M Simpson
85e0793497
Style: Move declaration of subsystem mutex to where other
...
mutexes are in this file, and use macros for dealing with it.
2007-02-28 20:02:24 +00:00
Mohan Srinivasan
535c755253
Update the tcp(4) manpage with the new (and some older undocumented) sysctls.
...
Remove a sysctl that is no longer used.
2007-02-28 19:32:46 +00:00
Thomas Quinot
f59aa46799
Minor reformatting.
2007-02-28 16:51:52 +00:00
Andrey A. Chernov
ff6df61440
International code for Russian Ruble is changed from RUR to RUB
...
starting from 1.1.2001 (ISO 4217)
2007-02-28 16:28:49 +00:00
Gleb Smirnoff
8bec3467b1
Add EHOSTDOWN and ENETUNREACH to the list of soft errors, that shouldn't
...
be returned up to the caller.
PR: 100172
Submitted by: "Andrew - Supernews" <andrew supernews.net>
Reviewed by: rwatson, bms
2007-02-28 12:47:49 +00:00
Gleb Smirnoff
72757d9a53
Toss the code, that handles errors from ip_output(), to make it more
...
readable:
- Merge two embedded if() into one.
- Introduce switch() block to handle different kinds of errors.
Reviewed by: rwatson, bms
2007-02-28 12:41:49 +00:00
Ruslan Ermilov
975ab35963
Fix markup.
2007-02-28 10:29:48 +00:00
Ruslan Ermilov
98d8b7924f
Fix a nit noticed during translation.
2007-02-28 10:24:34 +00:00
Ruslan Ermilov
ac4c858b19
Backport markup fixes from a translated version of a manpage.
2007-02-28 10:22:19 +00:00
Ruslan Ermilov
fbccd9db48
Check in some insignificant fixes obtained as a result of
...
the translation work.
2007-02-28 10:19:25 +00:00
Ruslan Ermilov
081fa92f3b
- Adopt the short description from POSIX as it better matches the
...
utility name.
- Fix a bug in description: the range preceded by a dash selects
up to the last number, not first.
2007-02-28 10:13:32 +00:00
Ruslan Ermilov
9620e9dd97
Revert previous change and take back a pointy hat.
2007-02-28 09:04:46 +00:00
Robert Watson
3592fd4de5
Lock unp2 after checking for a non-NULL unp2 pointer in uipc_send() on
...
datagram UNIX domain sockets, not before.
2007-02-28 08:08:50 +00:00
Ruslan Ermilov
7b6b0e6d24
Fix panic on boot caused by setting up a NULL interrupt handler.
...
Submitted by: Goran Gajic
Pointy hat to: piso
2007-02-28 05:29:23 +00:00
Pawel Jakub Dawidek
1d1f5f8560
Add a comment for PRIV_NET_SETLLADDR.
...
OK'ed by: rwatson
2007-02-27 23:38:58 +00:00
Greg Lehey
8866174561
Furhter clarifications:
...
- the issues with wakeup_one are due to address space clashes between
unrelated groups of threads.
- sleep() was removed in FreeBSD 2.2.
- date the page today, not 4 days ago.
- replace grammatically correct "woken" with "woken up" for
consistency with the function name.
2007-02-27 23:09:31 +00:00
Warner Losh
76ddd31f5a
Some USB mass storage devices return the number of sectors in response
...
to a READ_CAPACITY request rather than the maximum sector (off by one
problem). This causes a huge cascade of errors as the geom tasting
code tries to read the last sector (which isn't really there in the
face of this error). automated tools that manipulate disk labels and
such also have issues.
Create a new quirk READ_CAPACITY_OFFBY1 and add a quirk for the
SanDISK ImageMate that I have that suffers from this problem (the
SDDR-31). It intercepts the READ_CAPACITY response and adjusts it
from number of sectors to max sector for devices with this quirk.
Reading the Linux source suggests that there are a host of
other devices with this issue, including iPods and some popular
cameras. I've not added quirks for them, since I don't have the
devices in front of me to test.
2007-02-27 22:33:50 +00:00
Warner Losh
9995cc7a29
Entries sorted by id number, not name
2007-02-27 22:27:53 +00:00
John Baldwin
8db5fc58ff
Use pause() in vm_object_deallocate() to yield the CPU to the lock holder
...
rather than a tsleep() on &proc0. The only wakeup on &proc0 is intended
to awaken the swapper, not random threads blocked in
vm_object_deallocate().
2007-02-27 19:40:26 +00:00
John Baldwin
1a4435ee0e
Print tid's rather than thread pointers in KTR_PROC traces.
2007-02-27 18:46:07 +00:00
John Baldwin
3d4c1b5744
Use taskqueue_drain() to wait for any pending tasks to complete rather
...
than just pausing for a second.
2007-02-27 18:45:37 +00:00
John Baldwin
8410d79dd1
Use pause() instead of tsleep()'s on the softc pointer that have no
...
corresponding wakeups. Also, at least some of the comments nearby indicate
that these are fixed-length I/O sleeps.
2007-02-27 17:27:23 +00:00
John Baldwin
4d70511ac3
Use pause() rather than tsleep() on stack variables and function pointers.
2007-02-27 17:23:29 +00:00
John Baldwin
84d37a463a
Use pause() rather than tsleep() on explicit global dummy variables.
2007-02-27 17:22:30 +00:00
John Baldwin
f36511e7f8
Use pause() rather than using tsleep() on a dummy variable.
2007-02-27 17:19:33 +00:00
John Baldwin
5f6fcd82a2
Always protect the kthread flags with the lock and close a race with
...
module unload and kthread_exit().
MFC after: 3 days
2007-02-27 17:16:52 +00:00
John Baldwin
552e9b06bb
Use tsleep() rather than msleep() with a NULL mtx.
2007-02-27 17:15:39 +00:00
Sam Leffler
e5f015499d
o consistently check strlcpy result
...
o warn when we skip an interface because it's name is too long
2007-02-27 17:11:18 +00:00
Paolo Pisati
f2d619c8b1
Do not execute filter only handlers in ithread_execute_handlers():
...
this fixes the panics when filter only and ithread only handlers where
sharing the same irq .
2007-02-27 17:09:20 +00:00
Sam Leffler
0b28f08125
correct type to silence const complaint
2007-02-27 17:03:22 +00:00
Sam Leffler
30705853b0
unbreak create operation, must copy argument to global name
...
Spotted by: des
2007-02-27 17:00:59 +00:00
Florent Thoumie
4af453db2c
Fix obvious typo (use long name if short name isn't provided).
...
Reviewed by: sam
MFC after: 3 days
2007-02-27 16:52:27 +00:00
John Baldwin
a198b356e5
In FreeBSD 5.x+, sleep/wakeup operate on threads, not processes.
2007-02-27 16:32:55 +00:00
Ruslan Ermilov
7700fc3ca9
Fix markup and grammar bugs in recent revisions.
2007-02-27 16:21:01 +00:00
Ruslan Ermilov
66fd908b84
Remove a (harmless) stray backslash.
2007-02-27 16:13:19 +00:00
Paolo Pisati
fe59e41138
Add proper return codes to zs_intr() filter, and fix accordinlgly zs_intr()
...
prototype.
2007-02-27 15:31:11 +00:00
Bruce M Simpson
ad3b9f70ed
Add INADDR_ALLRPTS_GROUP define for 224.0.0.22 for future IGMPv3 support.
...
Obtained from: OpenSolaris
2007-02-27 14:45:37 +00:00
Nick Hibma
f30112ba16
Make hosts.allow point to hosts_options instead.
...
Requested by: ru
2007-02-27 14:22:07 +00:00
Paolo Pisati
2e35649225
Correct return code (int) for at91_rtc_intr() prototype.
...
Approved by: cognet
2007-02-27 13:39:34 +00:00
Dag-Erling Smørgrav
9c827cecbd
Clean the lib32 object directory with cleandir rather than rm -rf.
...
Discussed with: ru
MFC after: 2 weeks
2007-02-27 13:02:29 +00:00
Ruslan Ermilov
5897a066d9
Fix markup.
2007-02-27 12:06:02 +00:00
Dag-Erling Smørgrav
1db3766d66
Add GEOM_MULTIPATH so LINT will build.
...
Pointy hat to: mjacob
2007-02-27 12:05:25 +00:00
Ruslan Ermilov
6f000336cd
Fix markup.
2007-02-27 11:25:58 +00:00
Thomas Quinot
4647ebfc01
(cam_rescan): Do not reference ccb->ccb_h.path in CAM_DEBUG call before
...
it is initialized; use path instead.
This change fixes a panic when using atapicam in conjunction with CAMDEBUG,
which has been described under kern/103602.
Thanks to Josh Carroll <josh.carroll@gmail.com> for providing the traces
that allowed identifying this problem.
PR: kern/103602
MFC after: 1 week
2007-02-27 09:00:51 +00:00