openbsd
16 years agoIPL_NONE doesn't really exist. The corresponding bit in the
kettenis [Mon, 21 Jul 2008 10:07:14 +0000 (10:07 +0000)]
IPL_NONE doesn't really exist.  The corresponding bit in the
per-processor soft interrupt register is used for hardware clock-tick
counter interrupts.  So make smp_signotify() use IPL_SOFTINT instead
such that we don't unintentionally trigger a spurious clock interrupt.
This seems to fix the timekeeping anomalies on the t1k.

tested by art@

16 years agoLeave PATH alone.
ajacoutot [Mon, 21 Jul 2008 08:28:55 +0000 (08:28 +0000)]
Leave PATH alone.

noticed by and ok deraadt@

16 years agoopenssh-5.1
djm [Mon, 21 Jul 2008 08:19:07 +0000 (08:19 +0000)]
openssh-5.1

16 years agoAdd acphy/amphy.
brad [Mon, 21 Jul 2008 07:41:37 +0000 (07:41 +0000)]
Add acphy/amphy.

16 years agonam2blk[] needs a "vnd" entry for some things (like softraid)
todd [Mon, 21 Jul 2008 04:35:53 +0000 (04:35 +0000)]
nam2blk[] needs a "vnd" entry for some things (like softraid)
ok marco@ no objection miod@ need this for regress djm@ no objection krw@

16 years agocleanup - we don't have resource structure
kevlo [Mon, 21 Jul 2008 04:12:21 +0000 (04:12 +0000)]
cleanup - we don't have resource structure
ok jsg@

16 years agono, ipmi is still not fine on some machines (since acpi got enabled)
deraadt [Sun, 20 Jul 2008 22:17:50 +0000 (22:17 +0000)]
no, ipmi is still not fine on some machines (since acpi got enabled)

16 years agofill in variant and version components of the UUID
djm [Sun, 20 Jul 2008 21:57:51 +0000 (21:57 +0000)]
fill in variant and version components of the UUID
pretty-print the UUID in RFC4122 form

16 years agosync
deraadt [Sun, 20 Jul 2008 21:12:53 +0000 (21:12 +0000)]
sync

16 years agosync
deraadt [Sun, 20 Jul 2008 20:32:01 +0000 (20:32 +0000)]
sync

16 years agoOn TI cardbus bridges, enable PCI interrupt routing if the device has not
kettenis [Sun, 20 Jul 2008 18:58:07 +0000 (18:58 +0000)]
On TI cardbus bridges, enable PCI interrupt routing if the device has not
been initialized by the firmware.  This was probably the intention of the
origional code, however, it used the wrong default value for the register
in question.

Add TI PCI1510 to the list of 12XX-compatible bridges.

"be brave" deraadt@

16 years agoHuawei E618 and E620 is not compatible with ubsa(4).
yuo [Sun, 20 Jul 2008 14:24:49 +0000 (14:24 +0000)]
Huawei E618 and E620 is not compatible with ubsa(4).
This patch moves these device to umsm(4).

reported by Aleksander Piotrowski, ok jsg@

16 years agoNuke unused readbsdlabel() function.
krw [Sun, 20 Jul 2008 13:46:16 +0000 (13:46 +0000)]
Nuke unused readbsdlabel() function.

ok jsing@

16 years agoUse NULL instead of 0 for pointer parameters.
krw [Sun, 20 Jul 2008 13:40:27 +0000 (13:40 +0000)]
Use NULL instead of 0 for pointer parameters.

ok jsing@

16 years agoReme algorithm -> Remes algorithm. in comments
martynas [Sun, 20 Jul 2008 13:11:00 +0000 (13:11 +0000)]
Reme algorithm -> Remes algorithm.  in comments

16 years agoget in the bug fix for pow, from fdlibm 5.3. also adapt it for
martynas [Sun, 20 Jul 2008 13:07:27 +0000 (13:07 +0000)]
get in the bug fix for pow, from fdlibm 5.3.  also adapt it for
powf, the float version of it
>     1. e_pow.c incorrect results when
>         x is very close to -1.0 and y is very large, e.g.
>         pow(-1.0000000000000002e+00,4.5035996273704970e+15) = 0
>         pow(-9.9999999999999978e-01,4.5035996273704970e+15) = 0
>         Correct results are close to -e and -1/e.
while here merge more changes for pow, fixes sign in oflow/uflow
cases
ok millert@

16 years agouse more accurate algorithm for tan. from fdlibm 5.3:
martynas [Sun, 20 Jul 2008 13:03:13 +0000 (13:03 +0000)]
use more accurate algorithm for tan.  from fdlibm 5.3:
>     2. k_tan.c error was > 1 ulp target for FDLIBM
>         5.2: Worst error at least 1.45 ulp at
>         tan(1.7765241907548024E+269) = 1.7733884462610958E+16
>         5.3: Worst error 0.96 ulp
ok millert@

16 years agoProvide a timecounter based on the UltraSPARC IIe STICK logic.
kettenis [Sun, 20 Jul 2008 10:37:43 +0000 (10:37 +0000)]
Provide a timecounter based on the UltraSPARC IIe STICK logic.

16 years agoAdd DIOCGPDINFO support. 'disklabel -d svnd0' now works.
krw [Sun, 20 Jul 2008 01:53:43 +0000 (01:53 +0000)]
Add DIOCGPDINFO support. 'disklabel -d svnd0' now works.

16 years agolink to apache web server, not the project group. found while
martynas [Sat, 19 Jul 2008 23:35:44 +0000 (23:35 +0000)]
link to apache web server, not the project group.  found while
catching up w/ the old email.  submitted by Pierre Riteau on tech@
a year ago.
"no objection" jmc@.  ok, "that's clearly correct" okan@

16 years agoFull rewrite of metadata handling. This fixes power failures and crashes
marco [Sat, 19 Jul 2008 22:41:58 +0000 (22:41 +0000)]
Full rewrite of metadata handling.  This fixes power failures and crashes
that caused illegal checksums.  The new metadata code is more or less ready
to deal with other vendor's metadata formats.

While here clean up the name space.

Fix thib's pool mess by adding removing bad flags in interrupt context.

tested on macppc, amd64, i386, sparc64 & hppa

sparc64 has issues with crypto however those do not seem to be softraid
specific.

help from okan@ ckuethe@ Will Backman and others

16 years agoUse errx instead of fprintf, exit combo.
claudio [Sat, 19 Jul 2008 21:31:39 +0000 (21:31 +0000)]
Use errx instead of fprintf, exit combo.
Diff from Gleydson Soares gsoares (at) gmail (dot) com
OK henning@

16 years agoIn dec_1000a_intr_map(), use the SRM hint if available. This allows cards
miod [Sat, 19 Jul 2008 19:25:18 +0000 (19:25 +0000)]
In dec_1000a_intr_map(), use the SRM hint if available. This allows cards
plugged to the bottom 4 PCI slots of AlphaServer 1000A (attaching to pci1
behind a ppb) to get interrupts.
No regressions on AlphaServer 800 (which do not have these extra slots).

16 years agoAdd code to walk the eisa configuration, from NetBSD. This configuration
miod [Sat, 19 Jul 2008 18:13:04 +0000 (18:13 +0000)]
Add code to walk the eisa configuration, from NetBSD. This configuration
is not used yet, but this seems to ``warm up'' the eisa chips so that
accesses to the eisa bus later do not cause machine checks.

16 years agoIn _io_map(), make sure the whole range fits in one of the io windows,
miod [Sat, 19 Jul 2008 17:10:03 +0000 (17:10 +0000)]
In _io_map(), make sure the whole range fits in one of the io windows,
instead of only the starting address. From NetBSD.

16 years agominor wording tweaks;
jmc [Sat, 19 Jul 2008 16:35:50 +0000 (16:35 +0000)]
minor wording tweaks;

16 years agoCorrect missed capitalization of MPLS.
brad [Sat, 19 Jul 2008 15:55:07 +0000 (15:55 +0000)]
Correct missed capitalization of MPLS.

16 years agoAdd acx(4) at cardbus(4).
kettenis [Sat, 19 Jul 2008 12:36:06 +0000 (12:36 +0000)]
Add acx(4) at cardbus(4).

16 years agoprint the host parent id if available
reyk [Sat, 19 Jul 2008 12:10:07 +0000 (12:10 +0000)]
print the host parent id if available

16 years agono need for using a TAILQ queue for the host children list, use a
reyk [Sat, 19 Jul 2008 11:38:54 +0000 (11:38 +0000)]
no need for using a TAILQ queue for the host children list, use a
singly-linked SLIST instead.  the only noticeable change is the
reversed order to notify the children but it does not really matter
here.  also only walk through the children host list if the host
itself is a potential parent.

16 years agoIf a resolution which has been requested over VIDEO_TRY_FMT or
mglocker [Sat, 19 Jul 2008 11:30:55 +0000 (11:30 +0000)]
If a resolution which has been requested over VIDEO_TRY_FMT or
VIDEO_S_FMT doesn't exactly match the devices available resolutions,
return the next best matching resolution which we have.

Makes some V4L2 apps happy when running them with the default resolution
(no options).

16 years agoIf the new 'parent' keyword is specified for a host in a table,
reyk [Sat, 19 Jul 2008 10:52:32 +0000 (10:52 +0000)]
If the new 'parent' keyword is specified for a host in a table,
inherit the state from another host with the specified Id; no
additional check will be for the inheriting host.  This helps in
scenarios with lots of IP aliases that all point to the same service
on the same host (like web hosting with many SSL domains).

discussed with pyr, tested in different setups

16 years agoUse the IPv6 documentation prefix 2001:db8::/32 from RFC 3849 instead
reyk [Sat, 19 Jul 2008 10:35:31 +0000 (10:35 +0000)]
Use the IPv6 documentation prefix 2001:db8::/32 from RFC 3849 instead
of the deprecated 3ffe::/16 6bone test address space.  Deprecated or
public IPv6 allocations should not be used for documentation; we have
the same approach for IPv4 by using RFC 1918 private addresses.

ok jmc@ todd@

16 years agoUnbreak the tree. Pointed out by James Hartley.
kettenis [Sat, 19 Jul 2008 10:02:09 +0000 (10:02 +0000)]
Unbreak the tree.  Pointed out by James Hartley.

16 years agoIn interrupt handler change printf -> DRPINTF.
mglocker [Sat, 19 Jul 2008 06:39:00 +0000 (06:39 +0000)]
In interrupt handler change printf -> DRPINTF.

16 years agoAdd a macro that clears the want_resched flag that need_resched sets.
art [Fri, 18 Jul 2008 23:43:31 +0000 (23:43 +0000)]
Add a macro that clears the want_resched flag that need_resched sets.
Right now when mi_switch picks up the same proc, we didn't clear the
flag which would mean that every time we service an AST we would attempt
a context switch. For some architectures, amd64 being probably the
most extreme, that meant attempting to context switch for every
trap and interrupt.

Now we clear_resched explicitly after every context switch, even if it
didn't do anything. Which also allows us to remove some more code
in cpu_switchto (not done yet).

miod@ ok

16 years agono need for .Pp before or after .Sh;
jmc [Fri, 18 Jul 2008 22:51:01 +0000 (22:51 +0000)]
no need for .Pp before or after .Sh;

16 years ago+.Xr crash 8 ,
jmc [Fri, 18 Jul 2008 22:44:21 +0000 (22:44 +0000)]
+.Xr crash 8 ,
from Stephan A. Rickauer

16 years agoAdd ohci(4) and ehci(4) at cardbus(4).
kettenis [Fri, 18 Jul 2008 22:27:50 +0000 (22:27 +0000)]
Add ohci(4) and ehci(4) at cardbus(4).

16 years agoDetermine the free address space by looking at the "available" property of
kettenis [Fri, 18 Jul 2008 22:05:29 +0000 (22:05 +0000)]
Determine the free address space by looking at the "available" property of
the PCI host bridge if we're not running on an UltraBook.  Fix allocation of
bus number such that it works on machines that have OpenBoot 4.x.

16 years agoFor negotation first get the devices default values (GET_DEF) instead
mglocker [Fri, 18 Jul 2008 21:45:24 +0000 (21:45 +0000)]
For negotation first get the devices default values (GET_DEF) instead
asking for (GET_CUR) directly.  This gets us better negotation values.

16 years agoProtect dma operations with splvm instead of splhigh, that's faster than
miod [Fri, 18 Jul 2008 21:39:52 +0000 (21:39 +0000)]
Protect dma operations with splvm instead of splhigh, that's faster than
splbio and won't delay clock interrupts.

16 years agoMake IPL_VM level 5, which is guaranteed to be above bio tty and net, instead
miod [Fri, 18 Jul 2008 21:39:14 +0000 (21:39 +0000)]
Make IPL_VM level 5, which is guaranteed to be above bio tty and net, instead
of making it dynamic and the smallest value above the former three. Idea
from NetBSD.

16 years agoImplement VIDIOC_S_FMT and VIDIOC_TRY_FMT. Now V4L2 applications can
mglocker [Fri, 18 Jul 2008 18:49:11 +0000 (18:49 +0000)]
Implement VIDIOC_S_FMT and VIDIOC_TRY_FMT.  Now V4L2 applications can
set their desired image size, and therefore users can manipulate the
image size, too via the application.

Also tested by brad@

16 years agoAdd support for the kernel to recognize, load and execute position
kurt [Fri, 18 Jul 2008 16:58:06 +0000 (16:58 +0000)]
Add support for the kernel to recognize, load and execute position
independent executables using the uvm_map_pie() function to
randomize the load address. okay miod@, kettenis@, drahn@

16 years agoAdd new uvm function called uvm_map_pie() which takes align as a
kurt [Fri, 18 Jul 2008 16:40:17 +0000 (16:40 +0000)]
Add new uvm function called uvm_map_pie() which takes align as a
parameter and returns an aligned random load address for position
independent executables to use. This also adds three new vmparam.h
defines to specify the maximum address, minimum address and minimum
allowed alignment for uvm_map_pie() to use. The PIE address range
for i386 was carefully selected to work well within the i386 W^X
framework.

With much help and feedback from weingart@.
okay weingart@, miod@, kettenis@, drahn@

16 years agoAdd OmniVision OV7670 cam to the supported devices which comes in the
mglocker [Fri, 18 Jul 2008 14:45:50 +0000 (14:45 +0000)]
Add OmniVision OV7670 cam to the supported devices which comes in the
Dell XPS M1330 Notebooks.

Tested by kettenis@

16 years agoremove unnessasary cast.
kevlo [Fri, 18 Jul 2008 14:24:18 +0000 (14:24 +0000)]
remove unnessasary cast.
ok millert@

16 years agoo Use mbufs, for the RX ring, instead of malloc()'ing an MCLBYTES sized buffer.
thib [Fri, 18 Jul 2008 13:38:40 +0000 (13:38 +0000)]
o Use mbufs, for the RX ring, instead of malloc()'ing an MCLBYTES sized buffer.
o On non-strict alignment archs, dont copy the mbuf, every time, unload it, and send
  it up the stack and just get a new one for the rx ring. We still do the copy on
  strict alignment archs though...
o create a function to handle mbuf allocation for the rx ring, vr_mbuf_alloc(),
  use it to allocate the mbufs and shuffle the bus dma setup around.

ideas/code from vic(4) and sis(4);

ok reyk@, brad@, dlg@
tested by many, been in snapshots for a while.

16 years agofix cases, found by lint:
martynas [Fri, 18 Jul 2008 13:08:58 +0000 (13:08 +0000)]
fix cases, found by lint:
- actually raise inexacts for expm1, and support
- __exp__E always returns, because inexact check always succeeds.
add NOTREACHED
- some cases in lgamma FALLTHROUGH, as intended
ok millert@

16 years agomerge host_v6 with relayd's version to use getaddrinfo instead of
reyk [Fri, 18 Jul 2008 12:35:27 +0000 (12:35 +0000)]
merge host_v6 with relayd's version to use getaddrinfo instead of
inet_pton.  host_v4, host_v6, and host_dns could be merged into one
function using getaddrinfo but i keep it in multiple functions to keep
it in sync with the other daemons using this common code.

16 years agomerge log_host with relayd's version using getnameinfo and rename it
reyk [Fri, 18 Jul 2008 12:30:06 +0000 (12:30 +0000)]
merge log_host with relayd's version using getnameinfo and rename it
to print_host.

16 years agoterminate the input buffer on failure in print_host()
reyk [Fri, 18 Jul 2008 12:26:52 +0000 (12:26 +0000)]
terminate the input buffer on failure in print_host()

16 years agothe Belkin F5D7010 version # is a RTL8185 cardbus device. this
reyk [Fri, 18 Jul 2008 12:00:20 +0000 (12:00 +0000)]
the Belkin F5D7010 version # is a RTL8185 cardbus device.  this
chipset revision is not supported yet, so add it commented out.

16 years agosync
reyk [Fri, 18 Jul 2008 11:45:24 +0000 (11:45 +0000)]
sync

16 years agoAdd Belkin Wireless G Notebook Card F5D7010 (rtw(4) RTL8185-based)
reyk [Fri, 18 Jul 2008 11:44:22 +0000 (11:44 +0000)]
Add Belkin Wireless G Notebook Card F5D7010 (rtw(4) RTL8185-based)

16 years agoPOLL causes concurrency issues with event driven batteries. Remove for now
marco [Fri, 18 Jul 2008 03:54:18 +0000 (03:54 +0000)]
POLL causes concurrency issues with event driven batteries.  Remove for now
until I have time to implement proper fix.

Noted by several folks.

16 years agooops. move infnan to md.vax. pointed out by theo
martynas [Fri, 18 Jul 2008 00:25:22 +0000 (00:25 +0000)]
oops.  move infnan to md.vax.  pointed out by theo

16 years agoZero mbreg_t structure *before* initializing any members, not when we're
kettenis [Thu, 17 Jul 2008 23:08:08 +0000 (23:08 +0000)]
Zero mbreg_t structure *before* initializing any members, not when we're
halfway through.  Makes the ISP12160 correctly load its firmware again on
sparc64.

ok krw@

16 years agoAdd a flag and allow the driver to identify the BCM5788 chipsets. They're
brad [Thu, 17 Jul 2008 19:59:44 +0000 (19:59 +0000)]
Add a flag and allow the driver to identify the BCM5788 chipsets. They're
slightly different from the other chipsets using the BCM5705 ASIC.

ok jsg@

16 years agofinal reorder diff to use TAILQ_INSERT_TAIL instead of
reyk [Thu, 17 Jul 2008 16:41:06 +0000 (16:41 +0000)]
final reorder diff to use TAILQ_INSERT_TAIL instead of
TAILQ_INSERT_HEAD.  now tables and relays are also matching the order
in the config file.

ok pyr@

16 years agoadd the hosts in order to get host ids that match the order in the config file. ok...
reyk [Thu, 17 Jul 2008 16:28:07 +0000 (16:28 +0000)]
add the hosts in order to get host ids that match the order in the config file. ok pyr@

16 years agogive sane ids to hosts, tables, redirections, relays, etc. - start
reyk [Thu, 17 Jul 2008 16:12:04 +0000 (16:12 +0000)]
give sane ids to hosts, tables, redirections, relays, etc. - start
counting at 1 and do not assign an id before inheriting a real table.
makes more sense in the relayctl output.

ok pyr@

16 years agoproperly raise inexact; ok millert@
martynas [Thu, 17 Jul 2008 15:36:28 +0000 (15:36 +0000)]
properly raise inexact;  ok millert@

16 years agouse getaddrinfo/getnameinfo to parse ipv6 addresses instead of
reyk [Thu, 17 Jul 2008 15:10:14 +0000 (15:10 +0000)]
use getaddrinfo/getnameinfo to parse ipv6 addresses instead of
inet_pton/inet_ntop to allow specifing and printing the IPv6 scope
identifier. synced host_v6() with ntpd's version to use getaddrinfo()
instead of inet_pton() - host_v4, host_v6, and host_dns could all use
getaddrinfo in a single function by specifing different flags but this
would diverge from the other daemons using this common interface so we
keep this little overhead.

discussed with henning@
ok pyr@

16 years agoRemove clause 3 from NetBSD license.
jsing [Thu, 17 Jul 2008 13:50:49 +0000 (13:50 +0000)]
Remove clause 3 from NetBSD license.

ok deraadt@

16 years agoIncrease the size of the diskinfo struct, which has grown
jsg [Thu, 17 Jul 2008 13:16:29 +0000 (13:16 +0000)]
Increase the size of the diskinfo struct, which has grown
4 bytes in the new firmware.

To allow this to work on older firmwares add a "short read allowed"
flag to arc_msgbuf(), which will allow short reads by getting
the read length from the header of the response the firmware sends.

Only set the flag on the arc_msgbuf() call that deals with the diskinfo
struct for now.

Discussed with and ok dlg@

16 years agostrip trailing '.' from hostname when HostbasedUsesNameFromPacketOnly=yes
djm [Thu, 17 Jul 2008 08:51:07 +0000 (08:51 +0000)]
strip trailing '.' from hostname when HostbasedUsesNameFromPacketOnly=yes
report and patch from res AT qoxp.net (bz#1200); ok markus@

16 years agostrnvis preauth banner; pointed out by mpf@ ok markus@
djm [Thu, 17 Jul 2008 08:48:00 +0000 (08:48 +0000)]
strnvis preauth banner; pointed out by mpf@ ok markus@

16 years agoPasto in error message for setspppkey()
sthen [Thu, 17 Jul 2008 08:14:24 +0000 (08:14 +0000)]
Pasto in error message for setspppkey()
ok mbalmer@

16 years agoFix several of the 'large offset' PLT entries. With help from kurt.
drahn [Wed, 16 Jul 2008 20:33:42 +0000 (20:33 +0000)]
Fix several of the 'large offset' PLT entries. With help from kurt.
ok kurt@

16 years agoAdd a new parameter to pckbc_cnattach(): flags to put in the pckbc bowels.
miod [Wed, 16 Jul 2008 20:03:20 +0000 (20:03 +0000)]
Add a new parameter to pckbc_cnattach(): flags to put in the pckbc bowels.
For now, only one such flag is defined, PCKBC_CANT_TRANSLATE. It hints
pckbc that the device does not behave correctly to the ``set translation''
commands.

Set this flag if we are running on a Tadpole Ultrabook machine, which needs it.
This makes the built-in keyboard work correctly on this laptop (with the
help of the software translation pckbd diff).

tested & ok kettenis@

16 years agoIf pckbc_xt_translation() fails, do not try to force the keyboard in table
miod [Wed, 16 Jul 2008 20:00:45 +0000 (20:00 +0000)]
If pckbc_xt_translation() fails, do not try to force the keyboard in table
1; instead, try table 2 first, then 1: some older keyboards, connected to
a castrated 8042, do not know how to talk in table 1 (or worse, will report
they do while they don't).

If automatic translation is not possible, remember which table the keyboard
ended configured in, and convert the scancodes from table 2 to table 1 if
necessary.

ok kettenis@

16 years agoOne more pckbd.
miod [Wed, 16 Jul 2008 16:41:03 +0000 (16:41 +0000)]
One more pckbd.

16 years agoSend unused string literal ``mapme'' to nirvana.
miod [Wed, 16 Jul 2008 16:40:05 +0000 (16:40 +0000)]
Send unused string literal ``mapme'' to nirvana.

16 years agoThis file is long unused.
miod [Wed, 16 Jul 2008 16:34:34 +0000 (16:34 +0000)]
This file is long unused.

16 years agoIt is no longer necessary to regen gsckbdmap after changing this file.
miod [Wed, 16 Jul 2008 16:33:18 +0000 (16:33 +0000)]
It is no longer necessary to regen gsckbdmap after changing this file.

16 years agoImplement pckbc_xt_translation() in gsckbc. Thus, we can attach pckbd instead of
miod [Wed, 16 Jul 2008 16:32:06 +0000 (16:32 +0000)]
Implement pckbc_xt_translation() in gsckbc. Thus, we can attach pckbd instead of
gsckbd; the former will cause a proper translation page to be selected by
the keyboard.

Because of this, we no longer depend on the page the keyboard is left in
by the PDC (page 2 for all machines but the PrecisionBook, which is in
page 3), and there is no longer any need to use separate keyboard maps.

16 years agoNow that uvm_pglistalloc() does not lose on large memory gaps, do not
miod [Wed, 16 Jul 2008 15:49:22 +0000 (15:49 +0000)]
Now that uvm_pglistalloc() does not lose on large memory gaps, do not
restrict the memory allocation range in _dmamem_alloc().

16 years agosome archaic 'n = a(b), c(d)' use that confused lint
martynas [Wed, 16 Jul 2008 15:25:51 +0000 (15:25 +0000)]
some archaic 'n = a(b), c(d)' use that confused lint
ok millert@

16 years agoinstall infnan.3 only for vax. pointed out by millert@
martynas [Wed, 16 Jul 2008 15:15:26 +0000 (15:15 +0000)]
install infnan.3 only for vax.  pointed out by millert@
ok millert@

16 years ago'no subject' check is never triggered. check if it's actually empty
martynas [Wed, 16 Jul 2008 15:14:33 +0000 (15:14 +0000)]
'no subject' check is never triggered.  check if it's actually empty
ok millert@

16 years agoadd -E flag and 'skipempty' option to skip sending messages with
martynas [Wed, 16 Jul 2008 15:11:16 +0000 (15:11 +0000)]
add -E flag and 'skipempty' option to skip sending messages with
empty bodies.  useful for sending mails from crontabs.
from rivo nurges <rix at estpak dot ee>, with missing 'skipempty'
documentation and usage update from me
ok millert@

16 years agoansify infnan example. sure millert@
martynas [Wed, 16 Jul 2008 15:04:09 +0000 (15:04 +0000)]
ansify infnan example.  sure millert@

16 years agorelay_connect() may fail, close the session in the bindany callback
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.

16 years agoinfnan always returned wrong values, because compiler assumed it
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@

16 years agobetter description for TMPDIR. from millert@
martynas [Wed, 16 Jul 2008 14:57:27 +0000 (14:57 +0000)]
better description for TMPDIR.  from millert@

16 years agoman page tweaks:
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@

16 years ago- use strncmp/strncasecmp instead of comparing by character
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@

16 years agouse getsockname() to find out the local address of a connection before
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 ::).

16 years ago- err with the pathbuf, if we know it
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@

16 years agofix nat lookup to use the correct pf_addr offset. now it also works
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.

16 years agothis loop index should be automatic, not static
djm [Wed, 16 Jul 2008 11:52:19 +0000 (11:52 +0000)]
this loop index should be automatic, not static

16 years agorename variable first_gc -> last_gc (since it is actually the last
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).

16 years agoDynamically allocate fd_sets so we are not limited to FD_SETSIZE
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@

16 years agoCleanup #define maze leftover from pftop compatibility.
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@

16 years agolink udp pcbs to pf states, same as done for tcp already
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

16 years agoEnable the read DMA engine's PCI read request burst length long burst
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.

16 years agoAdd a timecounter based on the $sys_tick register, and use it on machines
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@.

16 years agoUse -Wa,-Av9b instead of -Wa,-Av9a such that I can use %sys_tick in an
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.