reyk [Wed, 16 Jul 2008 15:02:19 +0000 (15:02 +0000)]
relay_connect() may fail, close the session in the bindany callback
if it does.
martynas [Wed, 16 Jul 2008 15:01:19 +0000 (15:01 +0000)]
infnan always returned wrong values, because compiler assumed it
returns integer value, so add missing prototype
ok millert@
martynas [Wed, 16 Jul 2008 14:57:27 +0000 (14:57 +0000)]
better description for TMPDIR. from millert@
martynas [Wed, 16 Jul 2008 14:56:11 +0000 (14:56 +0000)]
man page tweaks:
- for argument of -f flag, name -> file
- document TMPDIR, better description from millert@
ok millert@
martynas [Wed, 16 Jul 2008 14:53:41 +0000 (14:53 +0000)]
- use strncmp/strncasecmp instead of comparing by character
- simplify istrlcpy, no need to check for isupper
- line[0] is redundant, because strcasecmp will take care of it
ok millert@
reyk [Wed, 16 Jul 2008 14:49:44 +0000 (14:49 +0000)]
use getsockname() to find out the local address of a connection before
doing a nat lookup. this fixes nat lookups when the relay is
listening to a wildcard IPv4/IPv6 address (like 0.0.0.0 or ::).
martynas [Wed, 16 Jul 2008 14:49:09 +0000 (14:49 +0000)]
- err with the pathbuf, if we know it
- use tmpdir instead of /tmp
ok millert@
reyk [Wed, 16 Jul 2008 14:38:33 +0000 (14:38 +0000)]
fix nat lookup to use the correct pf_addr offset. now it also works
with ipv6.
djm [Wed, 16 Jul 2008 11:52:19 +0000 (11:52 +0000)]
this loop index should be automatic, not static
djm [Wed, 16 Jul 2008 11:51:14 +0000 (11:51 +0000)]
rename variable first_gc -> last_gc (since it is actually the last
in the list).
millert [Wed, 16 Jul 2008 10:33:44 +0000 (10:33 +0000)]
Dynamically allocate fd_sets so we are not limited to FD_SETSIZE
connections. With help from djm@. OK djm@
canacar [Wed, 16 Jul 2008 10:23:39 +0000 (10:23 +0000)]
Cleanup #define maze leftover from pftop compatibility.
Pointed out by mcbride@, makes sense henning@
henning [Wed, 16 Jul 2008 09:00:44 +0000 (09:00 +0000)]
link udp pcbs to pf states, same as done for tcp already
ok markus, also tested david sthen
brad [Wed, 16 Jul 2008 03:56:25 +0000 (03:56 +0000)]
Enable the read DMA engine's PCI read request burst length long burst
mode (4KB) for PCIe chips. This resolves the poor TX performance for
the PCIe chips. The result being a bit under double the TX performance
on a Gig connection (roughly 495 Mb/s -> 940 Mb/s).
Tested by reyk@, sthen@, brad@ and a few end users.
kettenis [Tue, 15 Jul 2008 22:49:01 +0000 (22:49 +0000)]
Add a timecounter based on the $sys_tick register, and use it on machines
that have it. Initial diff from art@.
kettenis [Tue, 15 Jul 2008 22:46:58 +0000 (22:46 +0000)]
Use -Wa,-Av9b instead of -Wa,-Av9a such that I can use %sys_tick in an
upcoming change.
martynas [Tue, 15 Jul 2008 19:23:26 +0000 (19:23 +0000)]
- chraise can be replaced with toupper; no need to check for islower
- remove quite some code, use strcasestr instead of reimplementing
it each time
- use strncasecmp, instead of comparing through each character
"looks fine" millert@
martynas [Tue, 15 Jul 2008 19:13:25 +0000 (19:13 +0000)]
set cp to the value of PAGER, so that type1 doesn't try to use it
uninitialized (page=1), or use wrong previously-set value of crt
(page=0). ok millert@
kettenis [Tue, 15 Jul 2008 17:50:20 +0000 (17:50 +0000)]
Backout rev 1.162. This change made us muck with with pci config space at
address 0x1a and 0x1e, and that's not where the PCIe capability stuff
lives. Potentially it was mucking with an IO BAR (super dangerous).
But probably it was achieving nothing at all.
ok dlg@, marco@, brad@
oga [Tue, 15 Jul 2008 16:57:48 +0000 (16:57 +0000)]
Remove some debug code that i forgot to remove in a previous commit.
Pointed out by Chris Cappuccio, thanks!
jsg [Tue, 15 Jul 2008 13:21:17 +0000 (13:21 +0000)]
Adapt some code from the FreeBSD driver required to make
newer PCI Express adapters (ie 8168C*/8102*) work.
V2 Checksum offload format in RTL8102 devices not yet supported.
No objections from brad@. Thanks to everyone who tested.
thib [Tue, 15 Jul 2008 12:10:48 +0000 (12:10 +0000)]
theres no need too m_adj() the mbuf by 8bytes (u_int64_t) in
sis_newbuf(), so remove the call.
ok and lots of prodding dlg@, brad@
espie [Tue, 15 Jul 2008 11:10:51 +0000 (11:10 +0000)]
make the version number stuff mandatory.
Restrict specifications to the parts that actually make sense (in particular,
remove most wildcard support, it's no longer a good idea in true
version number handling), explain about v*, and be more specific about
default package specs (since the fuzzyness in the original description
predates several changes to bsd.port.mk).
Also add version numbers and wildcards where they make sense so the examples
are more complete.
espie [Tue, 15 Jul 2008 10:48:14 +0000 (10:48 +0000)]
deprecate package names without version numbers.
pvalchev [Tue, 15 Jul 2008 03:07:40 +0000 (03:07 +0000)]
sync
djm [Tue, 15 Jul 2008 02:23:14 +0000 (02:23 +0000)]
number of pipelined requests is not 64; prodded by Iain.Morgan AT nasa.gov
miod [Mon, 14 Jul 2008 20:01:37 +0000 (20:01 +0000)]
Fix struct sysioreg layout after the struct iommureg layout change;
ok kettenis@
mglocker [Mon, 14 Jul 2008 19:57:36 +0000 (19:57 +0000)]
Make VIDIOC_ENUM_FMT list all available formats for the attached device.
miod [Mon, 14 Jul 2008 16:23:07 +0000 (16:23 +0000)]
Regen
miod [Mon, 14 Jul 2008 16:22:23 +0000 (16:22 +0000)]
/dev/tuner description should point out to bktr(4), spotted by jmc.
miod [Mon, 14 Jul 2008 16:21:52 +0000 (16:21 +0000)]
Do not create /dev/joy* and /dev/{r,}mcd* nodes, these devices are not
available on amd64.
art [Mon, 14 Jul 2008 15:17:08 +0000 (15:17 +0000)]
Don't lock timeouts in db_show_callout.
All cpus are stopped and this cpu blocks all interrupts. It doesn't make
sense to grab locks that ddb can then jump past with longjmp.
Noticed by Pierre Riteau. I just forgot about the bug until reminded
today.
miod [Mon, 14 Jul 2008 14:00:00 +0000 (14:00 +0000)]
Use uvm_km_valloc_prefer_wait() instead of uvm_km_valloc_wait() in vmapbuf().
ok art@
miod [Mon, 14 Jul 2008 13:37:39 +0000 (13:37 +0000)]
Be sure to propagate PSL_O in psw on PCXU* processors to userland processes
and signal handlers.
ok kettenis@
henning [Mon, 14 Jul 2008 13:29:45 +0000 (13:29 +0000)]
m_copy can return NULL, so check for it
problem found by "Adrian M. Whatley" <amw> and "Stephan A. Rickauer"
<stephan.rickauer>, both @ni.phys.ethz.ch
fix by me, ok mpf
art [Mon, 14 Jul 2008 13:13:18 +0000 (13:13 +0000)]
Zap some dead commons that are no longer used.
"Commitski!" miod@
sthen [Mon, 14 Jul 2008 07:50:05 +0000 (07:50 +0000)]
another mange->manage
mbalmer [Mon, 14 Jul 2008 07:39:34 +0000 (07:39 +0000)]
mange -> manage
from Markus Bergkvist <markus.bergkvist@telia.com>
mglocker [Mon, 14 Jul 2008 04:45:50 +0000 (04:45 +0000)]
Finish support for uncompressed payloads (UDESCSUB_VS_FORMAT_UNCOMPRESSED).
djm [Mon, 14 Jul 2008 01:55:56 +0000 (01:55 +0000)]
mention requirement for /dev/log inside chroot when using sftp-server
with ChrootDirectory
dlg [Mon, 14 Jul 2008 00:44:48 +0000 (00:44 +0000)]
code(4) doesnt exist. cmp(4) is probably a bit more relevant.
djm [Sun, 13 Jul 2008 22:16:03 +0000 (22:16 +0000)]
increase number of piplelined requests so they properly fill the
(recently increased) channel window. prompted by rapier AT psc.edu;
ok markus@
djm [Sun, 13 Jul 2008 22:13:07 +0000 (22:13 +0000)]
use struct sockaddr_storage instead of struct sockaddr for accept(2)
address argument. from visibilis AT yahoo.com in bz#1485; ok markus@
sthen [Sun, 13 Jul 2008 21:22:52 +0000 (21:22 +0000)]
Change "ssh-keygen -F [host] -l" to not display random art unless
-v is also specified, making it consistent with the manual and other
uses of -l.
ok grunk@
claudio [Sun, 13 Jul 2008 20:41:39 +0000 (20:41 +0000)]
Do not specify the gateway on RTM_DELETE -- similar fix was done in the arp
code. This fixes in6_ifloop_request warnings seen on carp interfaces.
OK henning@, found and tested by david@
kettenis [Sun, 13 Jul 2008 15:27:39 +0000 (15:27 +0000)]
core(4)
mglocker [Sun, 13 Jul 2008 12:48:40 +0000 (12:48 +0000)]
Spacing.
mglocker [Sun, 13 Jul 2008 11:49:31 +0000 (11:49 +0000)]
Save format and frame descriptors to a format group structure so we
can use them later for stuff like VIDIOC_S_FMT (e.g. set custom
resolution).
jsg [Sun, 13 Jul 2008 05:24:05 +0000 (05:24 +0000)]
Add some additional hardware revisions from FreeBSD needed for
upcoming changes and sort list.
ckuethe [Sat, 12 Jul 2008 23:17:33 +0000 (23:17 +0000)]
reference vmt (openbsd) rather than vmware (xorg)
ok dlg
kettenis [Sat, 12 Jul 2008 23:12:52 +0000 (23:12 +0000)]
Make the console interrupt driven.
miod [Sat, 12 Jul 2008 19:58:48 +0000 (19:58 +0000)]
Make sure the label is read in rdopen(), this isn't the case if you
boot bsd.rd -a and want to mount the ramdisk later on.
ok otto@ krw@ millert@
oga [Sat, 12 Jul 2008 17:31:06 +0000 (17:31 +0000)]
Right now agp_generic_enable() is wrong. It has been since 2006. It
assumes that the display device and the agp bridge are the same device.
In almost all cases this is incorrect.
In order to correctly enable the agp device with the correct mode, we
need to set the AGP_COMMAND register on both the display and the bridge
with the right bits. Since agp is currently attaching at vga(4), due to
the problems with the intel integrated graphics (a problem that I still
need to solve, to be honest), for now just provide both pci_attach_args
to the agp init, and get what we need from there to do the enable.
This fixes the "agp bug" which i have been known to rant about, a lot.
So agp radeons now work with dri without needing to be forced to pci
mode.
This wasn't detected before, since the only non-drm consumer of agp is
the intel X driver, the i810 agp driver has its own enable function.
tested by many. ok kettenis@.
bernd [Sat, 12 Jul 2008 16:23:40 +0000 (16:23 +0000)]
sync
bernd [Sat, 12 Jul 2008 16:22:55 +0000 (16:22 +0000)]
Add another Acer id.
help & ok jsg@
kettenis [Sat, 12 Jul 2008 15:05:51 +0000 (15:05 +0000)]
Shave off a few instructions from cpu_switchto().
kettenis [Sat, 12 Jul 2008 14:26:07 +0000 (14:26 +0000)]
Add a temporary hack to attach only the first thread of every core for
MULTIPROCESSOR kernels. We map 'struct cpuinfo' at the same virtual
address on every processor, but since threads on the same core share
an MMU this doesn't quite work. With the hack we are at least able to
use the other core (and any additional processors).
kettenis [Sat, 12 Jul 2008 13:20:42 +0000 (13:20 +0000)]
Add core(4).
kettenis [Sat, 12 Jul 2008 13:08:04 +0000 (13:08 +0000)]
Perform IOMMU cache flushes on Oberon.
miod [Sat, 12 Jul 2008 12:33:42 +0000 (12:33 +0000)]
Fix a strlcpy() bound.
kettenis [Sat, 12 Jul 2008 12:21:04 +0000 (12:21 +0000)]
Use the proper interrupt target ID on Oberon.
thib [Sat, 12 Jul 2008 12:04:10 +0000 (12:04 +0000)]
fix printing of nchstats
ok art@,dlg@
kettenis [Sat, 12 Jul 2008 11:09:02 +0000 (11:09 +0000)]
Adjust SUN4U_TLB_RESERVED_MASK for updated SUN4U_TLB_PA_MASK.
kettenis [Sat, 12 Jul 2008 10:07:25 +0000 (10:07 +0000)]
Don't install interrupt handlers for non-exitsing interrupts on CMU-CH.
kettenis [Sat, 12 Jul 2008 08:08:54 +0000 (08:08 +0000)]
On Fujitsu's SPARC64 CPUs, the data_access_error trap is synchronous, and AFSR
will be 0. Check SFSR too, before deciding there's no fault.
kettenis [Sat, 12 Jul 2008 07:37:25 +0000 (07:37 +0000)]
Add macros to get the appropriate interrupt target ID for non-UPA CPUs and
use them in cpu_myid().
mglocker [Sat, 12 Jul 2008 06:26:06 +0000 (06:26 +0000)]
Remove obsolete TODO comment.
canacar [Sat, 12 Jul 2008 06:20:47 +0000 (06:20 +0000)]
Add ':q' as an alias to ':quit', to match old behaviour. Initial patch
from dlg@, this is a simpler version.
brad [Sat, 12 Jul 2008 05:45:49 +0000 (05:45 +0000)]
regen
brad [Sat, 12 Jul 2008 05:45:31 +0000 (05:45 +0000)]
Add the OUI id for JMicron and the ids for the JMP202 FastE PHY and
JMP211 GigE PHY.
From FreeBSD
djm [Sat, 12 Jul 2008 05:33:41 +0000 (05:33 +0000)]
better description for -i flag:
s/RSA authentication/public key authentication/
brad [Sat, 12 Jul 2008 05:31:14 +0000 (05:31 +0000)]
Add support for the Marvell
88E8016 PHY.
ok dlg@
djm [Sat, 12 Jul 2008 04:52:50 +0000 (04:52 +0000)]
unbreak; move clearing of cctx struct to before first use
reported by dkrause@
brad [Fri, 11 Jul 2008 15:11:58 +0000 (15:11 +0000)]
If there is a 100baseT4 connection then fall through so as to
explicitly set the duplex flag instead of returning right away.
ok dlg@
reyk [Fri, 11 Jul 2008 15:05:59 +0000 (15:05 +0000)]
shut off an annoying gcc warning.
ok beck@
brad [Fri, 11 Jul 2008 15:00:17 +0000 (15:00 +0000)]
Check the correct BMSR bit in the capabilities field when checking
for 100baseT4. The dcphy(4) driver could inadvertently display
100baseT4 for the media type for PHY not actually capable of
100baseT4.
From FreeBSD
ok dlg@
reyk [Fri, 11 Jul 2008 14:53:32 +0000 (14:53 +0000)]
write a syslog debug message when a new GREY or TRAPPED entry is added
to the database.
ok beck@
sobrado [Fri, 11 Jul 2008 14:46:24 +0000 (14:46 +0000)]
Qlogic -> QLogic
kettenis [Fri, 11 Jul 2008 14:23:53 +0000 (14:23 +0000)]
Fujitsu SPARC64-VI CPU's have two cores that have two threads each. Provide
a core(4) device, representing these cores and attach cpu(4) devices to it
for each thread.
blambert [Fri, 11 Jul 2008 14:18:39 +0000 (14:18 +0000)]
Add timeout_add_{tv,ts,bt,sec,usec,nsec} so that we can add timeouts
in something other than clock ticks. From art@'s punchlist and (for
the time being) not yet used.
"you're doing it wrong" art@,ray@,otto@,tedu@
ok art@
blambert [Fri, 11 Jul 2008 14:12:57 +0000 (14:12 +0000)]
de-__inline a trio of functions to shave some space.
ok art@
kettenis [Fri, 11 Jul 2008 13:47:20 +0000 (13:47 +0000)]
Don't try to read the "regs" propety; it's pointless.
kevlo [Fri, 11 Jul 2008 09:29:02 +0000 (09:29 +0000)]
remove an unused function. ok jsg@
kettenis [Fri, 11 Jul 2008 05:20:19 +0000 (05:20 +0000)]
Handle CPUs with a clock speed >= 2 GHz correctly.
dlg [Fri, 11 Jul 2008 03:03:07 +0000 (03:03 +0000)]
initialise the state kept between calls to dmamap_load_buffer to 0. there
was an extremely small chance that random stack garbage coudl be used which
could corrupt a dmamap.
this is the same as the change made to amd64 in
src/sys/arch/amd64/amd64/bus_dma.c r1.10.
ok miod@ kettenis@
phessler [Fri, 11 Jul 2008 01:40:50 +0000 (01:40 +0000)]
greyreader() shouldn't return, so tell us if it does
ok beck@, reyk@
martynas [Fri, 11 Jul 2008 00:15:33 +0000 (00:15 +0000)]
httpd deamon -> httpd daemon
martynas [Fri, 11 Jul 2008 00:12:35 +0000 (00:12 +0000)]
add missing ssl art after manual has been moved, instead of using
src of non-existent place; ok pval@, okan@, "looks good" jdixon@
kettenis [Thu, 10 Jul 2008 20:29:50 +0000 (20:29 +0000)]
Console functionality is there now.
kettenis [Thu, 10 Jul 2008 20:27:36 +0000 (20:27 +0000)]
Handle breaks.
martynas [Thu, 10 Jul 2008 18:18:55 +0000 (18:18 +0000)]
- handle sign of negative zero. use sign dtoa sets
- remove 'value < 0' cruft, dtoa already clears sign bit for us
discussed with, and tested by phessler@
ok millert@, who noticed to remove now-unused variable, and phessler@
thib [Thu, 10 Jul 2008 18:17:56 +0000 (18:17 +0000)]
nuke two bogus ARGSUSED
thib [Thu, 10 Jul 2008 18:14:59 +0000 (18:14 +0000)]
move a common statement out of if/else;
adjust the mbuf before loading it, with bus_dmamap_load_mbuf(),
that way we dont have to fiddle with ds_addr;
ok dlg@
markus [Thu, 10 Jul 2008 18:08:11 +0000 (18:08 +0000)]
sync v1 and v2 traffic accounting; add it to sshd, too; ok djm@, dtucker@
markus [Thu, 10 Jul 2008 18:05:58 +0000 (18:05 +0000)]
missing bzero; from mickey; ok djm@
ajacoutot [Thu, 10 Jul 2008 16:49:26 +0000 (16:49 +0000)]
Fix "etc source" output when not using a tarball
ok "bien sur!" sthen@
mbalmer [Thu, 10 Jul 2008 13:48:54 +0000 (13:48 +0000)]
Don't terminate the array of matching product/vendor IDs with { 0, 0 }
when usb_lookup is used. If a device indeed has 0 as vendor and product
ID, like the HP DL165 BMC Server Engines SE USB Device, a wrong driver
will attach and the machine will most pbly crash.
Problem reported Rivo Nurges <rix@estpak.ee>
cvs: ----------------------------------------------------------------------
kettenis [Thu, 10 Jul 2008 12:33:40 +0000 (12:33 +0000)]
Detect whether com(4) is the console on the m4k.
mglocker [Thu, 10 Jul 2008 11:11:26 +0000 (11:11 +0000)]
Add Sonix cam to the supported list.
kettenis [Thu, 10 Jul 2008 09:29:33 +0000 (09:29 +0000)]
Add support for Fujitsu SPARC64-VI CPUs.
UltraSPARC I/II has a 41-bit physical address space, UltraSPARC III/IV has a
43-bit physical address space. The Fujitsu SPARC64-VI extends this to 46 bits.
Adjust the TTE masks to take this into account and adjust some locore code
that truncated physical addresses to 41 bits (fixing a potential bug for
UltraSPARC III/IV too).
While there, fix the locore code for UltraSPARC Architecture 2007 CPUs, which
may support up to 56 bits of physical address space.