azalia: use HDMI as second fallback

2023-10-29 Thread Christopher Zimmermann
Hi, for me azalia HDMI audio playback works fine. According to [1] it had or still has problems. For machines where the default audio should not be (possibly broken) rsnd/0, but rsnd/1 this can be configured in sndiod or AUDIODEVICE. This diff would attach azalia even when there are only HDM

OpenSMTPD: Don't return message body in successfull DNS reports

2023-04-20 Thread Christopher Zimmermann
Hi, delivery success DSNs include the message body if not explicitely disabled by RET HDRS. But according to rfc3461 4.3 the body should _only_ be included for failure DSNs: […] If a DSN contains no indications of delivery failure, only the headers of the message should be returned. The de

Re: explain priority codepoints and their mapping in vlan.4

2021-12-30 Thread Christopher Zimmermann
On Mon, Dec 20, 2021 at 04:41:07PM -0700, Theo de Raadt wrote: You say it twice. But my eyes still glazed over it, not seeing what was going on the first two times. Maybe something more like prio 0 and 1 are mapped out of order to PCP 1 and 0, but prio 2 to 7 are mapped directly to

Re: explain priority codepoints and their mapping in vlan.4

2021-12-20 Thread Christopher Zimmermann
think this should be documented in detail. On 21 Dec 2021, at 00:54, Christopher Zimmermann wrote: Hi, it might be helpful for others to understand the meaning of codepoints 0 and 1 of the vlan priority field. OK? Christopher Here is the formatted content: The 802.1Q and 802.1ad protocols incl

document patch(1) not supporting binary diffs

2021-12-20 Thread Christopher Zimmermann
Hi, base patch cannot work with diffs of binary files. It might help to say so in the manpage since other implementations do support this (ab)use of patch. OK? Christopher Index: patch.1 === RCS file: /cvs/src/usr.bin/patch/pa

explain priority codepoints and their mapping in vlan.4

2021-12-20 Thread Christopher Zimmermann
Hi, it might be helpful for others to understand the meaning of codepoints 0 and 1 of the vlan priority field. OK? Christopher Here is the formatted content: The 802.1Q and 802.1ad protocols include a 3-bit priority code point (PCP): PCP 1 is defined as the lowest priority (“bac

xhci uhub on arm64: handle device in SS_INACTIVE state

2021-10-17 Thread Christopher Zimmermann
Hi, on my RK3399, a usb device connected to the USB 3 port is not detected during boot because it is in SS_INACTIVE (0x00c0) state: uhub3 at usb3 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1 uhub3: uhub_attach uhub3: 2 ports with 2 removable, self powered uhub3: i

Re: /bin/cp: overwrite symlink with file pointed to by symlink

2021-02-11 Thread Christopher Zimmermann
Hi Quentin, Thank you for having a look. I know I'm very late, but I still like your patch. So ok chrisz@ if you want to commit it. Christopher On Fri, Nov 01, 2019 at 08:46:51PM +0100, Quentin Rameau wrote: If you're interested in adapting to POSIX, here's a proposition patch: Index: bi

Re: Unbound: add support for pf tables to ipset module

2021-02-07 Thread Christopher Zimmermann
On Sun, Feb 07, 2021 at 04:20:26PM +, Stuart Henderson wrote: On 2021/02/07 17:04, Christopher Zimmermann wrote: Hi, a year ago I added support for our pf tables to the unbound ipset module. Upstream does not seem eager to merge it: https://github.com/NLnetLabs/unbound/pull/144

Unbound: add support for pf tables to ipset module

2021-02-07 Thread Christopher Zimmermann
Hi, a year ago I added support for our pf tables to the unbound ipset module. Upstream does not seem eager to merge it: https://github.com/NLnetLabs/unbound/pull/144 Implementing pf tables support was pretty straightforward. It has been more work to adjust module's privilege management to all

add OpenType bitmap fonts to xenocara

2020-10-25 Thread Christopher Zimmermann
Hi, this makes the xenocara bitmap fonts available for pango apps like gvim, too. Is it ok to call fonttosfnt directly in the Makefile or is there a reason to use a macro like done for $(BDFTOPCF) ? OK? Christopher -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub CB07 DA40 B

fonttosfnt: merge changes to fix fonts for new pango

2020-10-09 Thread Christopher Zimmermann
Hi Matthieu, you already gave an ok some time ago to merge changes to fonttosfnt. Now that my changes have been tested and merged upstream I'd like to integrate them into xenocara. May I ask for another ok? Christopher Index: fonttosfnt.c ==

Re: OpenSMTPD: unprivileged mode - now with diff

2020-05-23 Thread Christopher Zimmermann
On Sun, Apr 26, 2020 at 08:55:14AM +, gil...@poolp.org wrote: April 26, 2020 10:34 AM, "Christopher Zimmermann" wrote: Hi, I further developed my approach to allow running smtpd with fewer privileges. This diff does two things: - always run lmtp deliveries as SMTPD_USER. The

Re: carp: send only IPv4 carp packets on dual stack interface

2020-05-23 Thread Christopher Zimmermann
On Sat, May 23, 2020 at 01:55:54PM +1000, David Gwynne wrote: On 23 May 2020, at 8:44 am, Christopher Zimmermann wrote: On Sun, Jan 19, 2020 at 01:32:17PM +, Stuart Henderson wrote: On 2020/01/19 00:11, Sebastian Benoit wrote: chr...@openbsd.org(chr...@openbsd.org) on 2020.01.18 06:18

Re: carp: send only IPv4 carp packets on dual stack interface

2020-05-22 Thread Christopher Zimmermann
On Sun, Jan 19, 2020 at 01:32:17PM +, Stuart Henderson wrote: On 2020/01/19 00:11, Sebastian Benoit wrote: chr...@openbsd.org(chr...@openbsd.org) on 2020.01.18 06:18:21 +0100: > On Wed, Jan 15, 2020 at 12:47:28PM +0100, Sebastian Benoit wrote: > >Christopher Zimmermann(chr...@op

Re: ADMtec aue(4) interface supporting VLAN_MTU ?

2020-05-22 Thread Christopher Zimmermann
On Tue, Apr 21, 2020 at 04:12:16PM -0700, Chris Cappuccio wrote: Tom Smyth [tom.sm...@wirelessconnect.eu] wrote: Hi Chrisz, 4 bytes for the vlan header .. have you tried increasing the parent intetface mtu by 4bytes IFCAP_VLAN_MTU is a direct bypass for this. "hardmtu" on the parent interfac

Re: OpenSMTPD: unprivileged mode - now with diff

2020-04-26 Thread Christopher Zimmermann
On Sun, Apr 26, 2020 at 08:55:14AM +, gil...@poolp.org wrote: April 26, 2020 10:34 AM, "Christopher Zimmermann" wrote: - always run lmtp deliveries as SMTPD_USER. The change to mda_unpriv.c is needed, because otherwise all mails would be delivered to SMTPD_USER. - add tw

OpenSMTPD: unprivileged mode - now with diff

2020-04-26 Thread Christopher Zimmermann
Hi, I further developed my approach to allow running smtpd with fewer privileges. This diff does two things: - always run lmtp deliveries as SMTPD_USER. The change to mda_unpriv.c is needed, because otherwise all mails would be delivered to SMTPD_USER. - add two internal flags NOPRIV and

OpenSMTPD: unprivileged mode

2020-04-25 Thread Christopher Zimmermann
Hi, I further developed my approach to allow running smtpd with fewer privileges. This diff does two things: - always run lmtp deliveries as SMTPD_USER. The change to mda_unpriv.c is needed, because otherwise all mails would be delivered to SMTPD_USER. - add two internal flags NOPRIV and

Re: ADMtec aue(4) interface supporting VLAN_MTU ?

2020-04-21 Thread Christopher Zimmermann
On Sun, Jul 07, 2019 at 01:26:55PM -0700, Chris Cappuccio wrote: Christopher Zimmermann [chr...@openbsd.org] wrote: This works: doas ifconfig vlan67 mtu 1496 this doesn't: doas ifconfig vlan67 mtu 1497 Should we therefore disable VLAN_MTU on this chipset? - ifp->if_capa

Re: carp: send only IPv4 carp packets on dual stack interface

2020-01-15 Thread Christopher Zimmermann
On January 15, 2020 12:04:56 PM GMT+01:00, Janne Johansson wrote: >Den ons 15 jan. 2020 kl 11:57 skrev Christopher Zimmermann < >chr...@openbsd.org>: > >> So I propose to send IPv6 advertisements only when IPv4 is not >possible. >> >> Why? >>

carp: send only IPv4 carp packets on dual stack interface

2020-01-15 Thread Christopher Zimmermann
Hi, as far as I can see a dual stack carp interface does not care whether it receives advertisements addressed to IPv4 or IPv6. Any one will do. So I propose to send IPv6 advertisements only when IPv4 is not possible. Why? - Noise can be reduced by using unicast advertisements. This is only

/usr/bin/ftp: 308 Permanent Redirect

2019-12-14 Thread Christopher Zimmermann
Hi, to me it seems that since our ftp does only support GET requests anyway, a 308 Redirect response can be handled identical to a 301 Redirect. OK? Christopher Index: fetch.c === RCS file: /cvs/src/usr.bin/ftp/fetch.c,v retriev

/bin/cp: overwrite symlink with file pointed to by symlink

2019-10-30 Thread Christopher Zimmermann
Hi, I admit this is a very special case, but anyway this is what I hit: $ touch blub; ln -s blub blab; ls -l; cp -f blub blab total 0 lrwxr-xr-x 1 madroach wheel 4 Oct 30 17:39 blab -> blub -rw-r--r-- 1 madroach wheel 0 Oct 30 17:39 blub cp: blab and blub are identical (not copied). Now I

Re: apmd battery emergency message

2019-09-21 Thread Christopher Zimmermann
On Fri, 20 Sep 2019 17:00:39 +0200 Alexander Bluhm wrote: > Hi, > > sometimes my laptop was running out of battery while I was working. > To avoid that, I patched apmd(8) to write a emergency message to > syslog(3). Then with this line in syslog.conf I receive a warning > in every xterm. > > #

grep -ob: behave like ggrep, adapt documentation

2019-07-16 Thread Christopher Zimmermann
Hi, I just tried to find the byte position of a string within a binary file using grep. Our base grep -bo let me down because it will only display the position of the '\n' delimited line, not the position of the pattern. That's what our grep(1) says: -b The offset in bytes of a matched patte

ADMtec aue interface does not work with full 1500 VLAN_MTU

2019-07-04 Thread Christopher Zimmermann
Hi, I own this old USB ethernet controller: aue0 at uhub9 port 5 configuration 1 interface 0 "ADMtek USB To LAN Converter" rev 2.00/1.01 addr 4 aue0: address 00:05:1b:b2:96:02 ukphy0 at aue0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI 0x000749, model 0x0001 This works: doas ifconf

Re: Don't send icmp redirect to the same interface a forwarded packet came in on

2018-05-05 Thread Christopher Zimmermann
On 2018-05-05 Martin Pieuchot wrote: > On 03/05/18(Thu) 17:19, Christopher Zimmermann wrote: > > On 2018-05-03 Martin Pieuchot wrote: > > > On 02/05/18(Wed) 14:45, Christopher Zimmermann wrote: > > > > On 2018-05-02 Martin Pieuchot wrote: > > >

Re: Don't send icmp redirect to the same interface a forwarded packet came in on

2018-05-03 Thread Christopher Zimmermann
On 2018-05-03 Martin Pieuchot wrote: > On 02/05/18(Wed) 14:45, Christopher Zimmermann wrote: > > On 2018-05-02 Martin Pieuchot wrote: > > > On 02/05/18(Wed) 11:47, Christopher Zimmermann wrote: > > > > I just want to bring this up again. Can some network guru

Re: Don't send icmp redirect to the same interface a forwarded packet came in on

2018-05-02 Thread Christopher Zimmermann
On 2018-05-02 Martin Pieuchot wrote: > On 02/05/18(Wed) 11:47, Christopher Zimmermann wrote: > > I just want to bring this up again. Can some network guru give me an ok > > or some feedback please? > > Can you explain with words why we shouldn't send a redirect? The

Re: Don't send icmp redirect to the same interface a forwarded packet came in on

2018-05-02 Thread Christopher Zimmermann
Hi, I just want to bring this up again. Can some network guru give me an ok or some feedback please? Christopher On 2017-12-01 Christopher Zimmermann wrote: > Hi, > > by accident I discovered this rather senseless redirect: > > $ doas tcpdump -eptni vlan2 icmp > tcpdump:

Don't send icmp redirect to the same interface a forwarded packet came in on

2017-12-01 Thread Christopher Zimmermann
Hi, by accident I discovered this rather senseless redirect: $ doas tcpdump -eptni vlan2 icmp tcpdump: listening on vlan2, link-type EN10MB 11:11:11:11:11:11 22:22:22:22:22 0800 98: 192.168.1.2 > 192.168.4.7: icmp: echo request 22:22:22:22:22 11:11:11:11:11:11 0800 98: 192.168.4.7 > 192.168.1.2

Re: Could not savecore after reproducible crash - solved

2017-11-26 Thread Christopher Zimmermann
This 'crash' can be prevented by turning ddb.console off. Sorry for the noise. I'm still wondering why I could not recover the dump. -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub F190 D013 8F01 AA53 E080 3F3C F17F B0A1 D44E 4FEE

Could not savecore after reproducible crash

2017-11-26 Thread Christopher Zimmermann
Hi, I can reliably reproduce a panic in the isa serial com port driver, but cannot recover the dumped core -> savecore: no core dump. The serial console log is attached below. What else can I try? Christopher ddb> show registers ds 0x10 es 0x10 fs

Re: Add quirks to support M-Audio FastTrack Pro (uaudio)

2017-02-03 Thread Christopher Zimmermann
Hi, thanks for your patience. If some things are still unclear I'll be glad to clarify. Christopher On 2017-02-02 Martin Pieuchot wrote: > On 31/01/17(Tue) 14:05, Christopher Zimmermann wrote: > > On 2017-01-29 Martin Pieuchot wrote: > > > On 29/01/17(Sun) 19:33,

Re: Add quirks to support M-Audio FastTrack Pro (uaudio)

2017-01-31 Thread Christopher Zimmermann
Hi, below you find an updated diff. OK? On 2017-01-29 Martin Pieuchot wrote: > On 29/01/17(Sun) 19:33, Christopher Zimmermann wrote: > > [...] > > @@ -444,6 +447,11 @@ uaudio_match(struct device *parent, void > > if (uaa->iface == NULL || uaa->device == N

Re: Add quirks to support M-Audio FastTrack Pro (uaudio)

2017-01-29 Thread Christopher Zimmermann
On 2017-01-30 Martin Pieuchot wrote: > On 29/01/17(Sun) 14:45, Christopher Zimmermann wrote: > > > You are talking about usb_subr.c? Done. > > No I'm not :) > Yes please, do not touch usb_subr.c. > Also make sure your comment below respect style(9). ok. I

Re: Add quirks to support M-Audio FastTrack Pro (uaudio)

2017-01-29 Thread Christopher Zimmermann
On 2017-01-29 Martin Pieuchot wrote: > On 28/01/17(Sat) 13:02, Christopher Zimmermann wrote: > > Hi, > > > > I needed to add some quirks to support the M-Audio FastTrack Pro USB > > audio interface. > > Since this is just for one device there's no nee

Add quirks to support M-Audio FastTrack Pro (uaudio)

2017-01-28 Thread Christopher Zimmermann
Hi, I needed to add some quirks to support the M-Audio FastTrack Pro USB audio interface. * The device needs to be switched to the configuration 2 to show all its capabilities. This is done by a new quirk in usb_subr.c * It claims to consume little-endian samples, but actually expects big-end

Re: httpd: $DOCUMENT_URI macro fix for FastCGI

2016-04-18 Thread Christopher Zimmermann
On 2016-04-17 Tim Baumgard wrote: > > Below is an updated diff for the man page to address your feedback. I > also included another small diff that fixes the QUERY_STRING variable > when no query string is given. The RFC states: > > The server MUST set this variable; if the Script-URI does not i

Re: httpd: $DOCUMENT_URI macro fix for FastCGI

2016-04-15 Thread Christopher Zimmermann
On 2016-04-14 Tim Baumgard wrote: > > Christopher Zimmermann wrote: > > Tim Baumgard wrote: > >> According to convention and httpd.conf(5), the $DOCUMENT_URI macro > >> for FastCGI calls should expand to the request path instead of the > >> path al

Re: httpd: $DOCUMENT_URI macro fix for FastCGI

2016-04-14 Thread Christopher Zimmermann
On 2016-04-14 Tim Baumgard wrote: > According to convention and httpd.conf(5), the $DOCUMENT_URI macro for > FastCGI calls should expand to the request path instead of the path > alias. FastCGI / CGI is poorly documented. As far as convention goes, at least nginx uses the rewritten url, too: $do

Re: spamd - DNS whitelist - with prototype

2016-03-30 Thread Christopher Zimmermann
to the table on demand since I cannot simply download a dnswl. I already suspected relayd might be a better place to do this. Or keep it in a separate program. Sadly I cannot reinject the diverted SYN into pf. > On Tue, Mar 29, 2016 at 1:11 PM, Christopher Zimmermann > wrote: > > H

Re: spamd - DNS whitelist

2016-03-29 Thread Christopher Zimmermann
Hi, I want to use a DNS white list to skip greylisting delays for known good addresses, which would pass the greylist anyway. To do this with spamd and OpenSMTPd I wrote a prototype which intercepts the initial SYN packet from any non-whitelisted ip. It then queries DNS whitelists and on any posit

Re: httpd: multiple addresses for one server

2015-01-03 Thread Christopher Zimmermann
Hi, On Sat, 3 Jan 2015 14:42:18 +0100 Reyk Floeter wrote: > On Thu, Jan 01, 2015 at 11:54:46PM -0500, Geoff Steckel wrote: > > Is there any way todo the equivalent of: > > > > server "an.example.com" > > listen on 192.168.2.99 > > listen on 2001.fefe.1.1::99 > > I used "include" direc

Re: sed: allow d and y functions in { } function list

2014-10-22 Thread Christopher Zimmermann
On Wed, 22 Oct 2014 21:57:14 +0200 Ingo Schwarze wrote: > > So the newline before the close-brace is required. Since the code > > matches the spec, I think we should change the doc to match both of > > them. Or is there some reason this extension is required? > > That would be the following pa

Re: sed: allow d and y functions in { } function list

2014-10-22 Thread Christopher Zimmermann
On Wed, 22 Oct 2014 10:46:43 -0700 Philip Guenther wrote: > On Wed, Oct 22, 2014 at 8:37 AM, Christopher Zimmermann > wrote: > > $ sed -e "{ y/o/u/ }" > > sed: 1: "{ y/o/u/ }": extra text at the end of a transform command > > >

sed: allow d and y functions in { } function list

2014-10-22 Thread Christopher Zimmermann
Hi $ sed -e "{ y/o/u/ }" sed: 1: "{ y/o/u/ }": extra text at the end of a transform command but this is allowed according to the manual: Functions can be combined to form a function list, a list of sed functions separated by newlines, as follows: { function fun

Re: half-duplex netcat with closed stdout / stdin

2014-03-31 Thread Christopher Zimmermann
On Mon, 31 Mar 2014 20:21:17 +0100 Stuart Henderson wrote: > On 2014/03/31 20:33, Christopher Zimmermann wrote: > > But our netcat won't ever terminate when used for sending an udp > > datagram: > > > > $ echo 'Hello, World!' |nc -Nu 8.8.8.8 53 >

Re: half-duplex netcat with closed stdout / stdin

2014-03-31 Thread Christopher Zimmermann
I just noticed I broke nc -kl. Here is the fix: --- netcat.c.list Mon Mar 31 21:03:39 2014 +++ netcat.cMon Mar 31 21:03:44 2014 @@ -763,7 +763,7 @@ if (nostdin && Nflag) shutdown(nfd, SHUT_WR); if (nostdout) shutdown(nfd, SHUT_RD); - while (pfd[0].fd != -1 || pfd

half-duplex netcat with closed stdout / stdin

2014-03-31 Thread Christopher Zimmermann
Hi, I need a shell utility for sending udp datagrams. Of course netcat is the tool of choice for this purpose. But our netcat won't ever terminate when used for sending an udp datagram: $ echo 'Hello, World!' |nc -Nu 8.8.8.8 53 also our netcat shows undefined behavior when started with closed st

ATM packet size quantization for newqueue

2014-03-15 Thread Christopher Zimmermann
Hello, For several releases I used a similar patch for altq to crank up the bandwidth of my uplink traffic shaper without compromising its reliability with varying packet sizes over an ATM DSL link. Now that newqueue is committed I took the time and prepared a proper diff with pf.conf syntax and m

Re: Add [-q timeout] option to netcat

2013-11-05 Thread Christopher Zimmermann
I just noticed my patch's bedaviour is actually different to the behaviour of the debian version. for my diff the man page should actually say -q timeout after end-of-file on stdin, timeout the connection after timeout seconds. A timeout of 0 will close the connection after

Add [-q timeout] option to netcat

2013-11-05 Thread Christopher Zimmermann
Hi, this patch adds this option to nc(1): -q timeout after end-of-file on stdin, wait timeout seconds and then quit. The default is no timeout. This should be compatible with the -q option of the netcat-openbsd package in debian (what the heck ?) I use this to send simple udp dat

Re: preparations for IP_SENDSRCADDR / race condition in6_pcbsetport()

2013-08-07 Thread Christopher Zimmermann
On Wed, 7 Aug 2013 07:11:38 +0200 Claudio Jeker wrote: > On Tue, Aug 06, 2013 at 09:24:13PM +0200, Christopher Zimmermann > wrote: > > Hi, > > > > I'm currently working towards an IP_SENDSRCADDR implementation. > > As a first step I moved the calls to in_pcbre

preparations for IP_SENDSRCADDR / (un)tangle pcb_bind...

2013-08-06 Thread Christopher Zimmermann
Hi, I'm currently working towards an IP_SENDSRCADDR implementation. As a first step I moved the calls to in_pcbrehash() from in_pcb(dis)connect() and in_pcbbind() to the call sites of those functions. This should save some calls to in_pcbrehash() in the in_pcbconnect() codepath. Also I improved

make IPv6 macros look nicer

2013-08-06 Thread Christopher Zimmermann
Hi, I'm currently working on the OpenBSD ip-stack for the first time. Here's a small cosmetic improvement. OK? Christopher Index: netinet6/in6.h === RCS file: /cvs/src/sys/netinet6/in6.h,v retrieving revision 1.65 diff -u -p -r1.65

rare wrong routing decision

2013-07-10 Thread Christopher Zimmermann
Hi, I'm still struggeling with my IPsec settup and routing. This time I'm wondering how the third cloned route below was created. 172.26.153.0/28link#1 UC 00 - 4 em0 172.26.153/24 link#5 UCS10 - 9 vether0 172.26.15

in6_unlink_ifa: interface address has no prefix

2013-06-09 Thread Christopher Zimmermann
Hi, I have this as /etc/hostname.lo1: inet 172.26.153.50 0xff00 NONE mtu 1398 !route add 172.26.153.0/24 172.26.153.50 !route add default 172.26.153.50 -priority 12 and see the following on boot: in6_unlink_ifa: interface address 0x80624a00 has no prefix in6_unlink_ifa: interface a

Re: tmpfs

2013-04-10 Thread Christopher Zimmermann
On Tue, 9 Apr 2013 17:26:39 +0100 Pedro Martelletto wrote: > >You will need a new kernel with option TMPFS enabled, fresh include > >files and mount_tmpfs. tmpfs is a better MFS, it is faster and can > >free unused memory. > > I have put up an updated diff at: > > http://block.io/tmp/tmpfs3.dif

Re: vr(4) baby jumbos

2013-02-07 Thread Christopher Zimmermann
On Thu, 7 Feb 2013 17:41:12 + Stuart Henderson wrote: > This is extremely useful as it permits carrying stacked vlans > on Alix/net5501, and also permits carrying 1500 MTU packets within > pppoe(4) using the RFC4638 support. So with 5.3 I can drop the max-mss 1452 on my alix router? Great!!!

Re: em(4): enable TCP/UDP checksum offload

2012-11-07 Thread Christopher Zimmermann
On Sun, 4 Nov 2012 16:06:31 +0100 Christopher Zimmermann wrote: > On Sun, 4 Nov 2012 14:46:34 +0100 > Stefan Sperling wrote: > > > On Sun, Nov 04, 2012 at 01:21:38PM +, Christian Weisgerber wrote: > > > Christian Weisgerber wrote: > > > > > > &g

Re: em(4): enable TCP/UDP checksum offload

2012-11-04 Thread Christopher Zimmermann
On Sun, 4 Nov 2012 14:46:34 +0100 Stefan Sperling wrote: > On Sun, Nov 04, 2012 at 01:21:38PM +, Christian Weisgerber wrote: > > Christian Weisgerber wrote: > > > > > Like bge(4), we previously couldn't enable TCP/UDP transmit checksum > > > offload on em(4). We can now. > > > > > > Works

Re: bind mountd to a specified port

2012-10-19 Thread Christopher Zimmermann
On Thu, 18 Oct 2012 19:11:37 +0200 "Sebastian Reitenbach" wrote: > getting NFS through a firewall is not that trivial with mountd binding to a > random port each time it starts. Hi, here is how I solved it after my proposal for a fixed-port-option was rejected: /etc/rc.local: [...] # regist

smtpd: fatal: qwalk: opendir: No such file or directory

2011-11-11 Thread Christopher Zimmermann
I have no clue what is wrong here. maybe just the '0' before 'ab3' got lost? % sudo smtpd -vd startup [debug mode] parent_send_config: configuring smtp parent_send_config_client_certs: configuring smtp parent_send_config_ruleset: reloading rules and maps parent_send_config_ruleset: reloading rules

Re: PPPoEoA DSL bandwidth shaping

2011-10-31 Thread Christopher Zimmermann
On 10/31/11 11:11, Stuart Henderson wrote: > On 2011/10/30 15:41, Daniel Melameth wrote: >> >> sthen@ created a patch a while back that addresses >> this--http://ns2.spacehopper.org/openbsd/base/altq_tbradapt.diff--but >> I have not used it in a while. >> Thanks for this input. That's exactly what

PPPoEoA DSL bandwidth shaping

2011-10-30 Thread Christopher Zimmermann
proach and is there a chance to get this into the tree? Regards, Christopher Zimmermann

Re: aue(4) states half-duplex by default ?

2011-09-27 Thread Christopher Zimmermann
On 09/27/11 20:05, Brad wrote: > On 27/09/11 1:59 PM, Christopher Zimmermann wrote: >> Hi, >> >> I just started using a aue(4) device. Now I am a bit confused about >> full-duplex / half-duplex operation. >> >> >> The manpage states: >> >&

aue(4) states half-duplex by default ?

2011-09-27 Thread Christopher Zimmermann
Hi, I just started using a aue(4) device. Now I am a bit confused about full-duplex / half-duplex operation. The manpage states: full-duplex Force full duplex operation. The interface will operate in half duplex mode if this media option is not specified. But for me ifconfig aue0 says

Re: custom udp/tcp ports for mountd, rpc.statd, rpc.lockd

2011-07-27 Thread Christopher Zimmermann
On 07/28/11 01:33, Theo de Raadt wrote: On 07/27/11 23:42, Nicholas Marriott wrote: RPC does not work that way. It uses the portmapper at port 111 for discovery. NFS at 2049 is also a known port. The rest are supposed to be unknown. Unfortunately it isn't supposed to work that way.

Re: custom udp/tcp ports for mountd, rpc.statd, rpc.lockd

2011-07-27 Thread Christopher Zimmermann
wer case. So I left the program output in lowercase, but changed comments and documentation to uppercase. - Wrap lines to below 80 columns please. done. On Wed, Jul 27, 2011 at 11:21:52PM +0200, Christopher Zimmermann wrote: Hi, now here also for rpc.statd and rpc.lockd. But I could only

Re: custom udp/tcp ports for mountd, rpc.statd, rpc.lockd

2011-07-27 Thread Christopher Zimmermann
Hi, now here also for rpc.statd and rpc.lockd. But I could only test mountd, because I have no clients for lockd. I would really like to see this committed in cvs. Cheers, Christopher Index: sbin/mountd/mountd.8 === RCS file: /c

mountd: user specified port

2011-07-27 Thread Christopher Zimmermann
Hi, Here's a diff that allows telling mountd the udp and tcp port to use. Christopher Index: mountd.8 === RCS file: /cvs/src/sbin/mountd/mountd.8,v retrieving revision 1.16 diff -u -p -r1.16 mountd.8 --- mountd.831 May 2007 19

Re: Synaptics touchpad

2011-07-22 Thread Christopher Zimmermann
On 07/20/11 14:06, Aaron Bieber wrote: Still working here. Tricky to set up, but still working fine here with TrackPoint, TouchPad and optional USB mouse. Great work! Best thing is, I can now use the middle mouse button on my TrackPoint :) Thanks alot! Section "InputDevice" Identif

Re: New simple prio queueing doesn't work with pppoe(4)

2011-07-21 Thread Christopher Zimmermann
ok, found the villain. Seems like my ISP is limiting bandwidth by randomly dropping packets. On 07/21/11 22:56, Christopher Zimmermann wrote: Hi, for me this new prio queue queueing just doesn't work on pppoe(4). I tested this now three times switching between the new prio and old

New simple prio queueing doesn't work with pppoe(4)

2011-07-21 Thread Christopher Zimmermann
Hi, for me this new prio queue queueing just doesn't work on pppoe(4). I tested this now three times switching between the new prio and old altq/priq back and forth. With altq/priq I can use priorized ssh very smoothly while saturating my uplink with a 'nc foo.bar prio(1,6). I don't know much

USB keyboard in boot_config(8)

2011-07-01 Thread Christopher Zimmermann
Hi, I just installed the June 29 snapshot and noticed that my USB keyboard no longer works in the boot_config(8) prompt. It still did work in the June 24 snapshot. pckbd(4) works fine. Christopher

Re: sd allocation and umass(4)

2011-06-24 Thread Christopher Zimmermann
On 06/24/11 19:40, Alexander Polakov wrote: > * Christopher Zimmermann [110624 21:24]: >> On 06/24/11 18:46, Joel Sing wrote: >>> On Friday 24 June 2011, Benny Lofgren wrote: >>>> - More consistent sd unit allocation (perhaps this is achievable >>>> wit

Re: sd allocation and umass(4)

2011-06-24 Thread Christopher Zimmermann
On 06/24/11 18:46, Joel Sing wrote: > On Friday 24 June 2011, Benny Lofgren wrote: >> - More consistent sd unit allocation (perhaps this is achievable >> with DUID, I haven't had time to explore that yet) > > sd(4) unit allocation will always be inconsistent and unpredicatable > - DUIDs will le

Re: nc(1), GNU netcat and FIN segments after all data has been sent

2011-06-23 Thread Christopher Zimmermann
On 06/23/11 14:10, Andreas Bartelt wrote: > Hello, > > I've noticed that there's a difference in behavior between nc(1) and GNU > netcat when they talk to some daemon via TCP. > > The commands in the following example are basically the same: > > GNU netcat: > netcat host 1234 < infile > > nc(1)

Re: libsndio: remove support for legacy device names

2011-05-24 Thread Christopher Zimmermann
On 05/03/11 22:58, Alexandre Ratchov wrote: > hack to support legacy audio/midi device naming scheme is almost two > years old, ok to drop support for it? > > -- Alexandre This caught me by surprise. I spent about an hour in gdb and the source to find out what was wrong. aucat just told me this:

Re: [smtpd] diff that needs testing

2011-05-15 Thread Christopher Zimmermann
On 05/15/11 11:57, Gilles Chehade wrote: Please test and report breakage of your existing setups :-) No breakage for me. I use smtpd as MTA for local-to-local delivery and to relay mail to my ISP using tls. # $OpenBSD: smtpd.conf,v 1.2 2009/11/03 22:32:10 gilles Exp $ # This is the sm

Re: Fan mode management in acpithinkpad(4)

2011-05-13 Thread Christopher Zimmermann
On 05/13/11 20:56, Alexander Polakov wrote: * Marco Peereboom [110512 17:59]: On Thu, May 12, 2011 at 03:32:56PM +0200, Christopher Zimmermann wrote: On 05/12/11 14:37, Vadim Zhukov wrote: Hello all. Here is a patch that allows for me to work on other things. :) Basically, it makes OS

Re: Fan mode management in acpithinkpad(4)

2011-05-12 Thread Christopher Zimmermann
On 05/12/11 14:37, Vadim Zhukov wrote: Hello all. Here is a patch that allows for me to work on other things. :) Basically, it makes OS choose fan mode instead of firmware. Main feature here is enabling of "disengadged" mode when temperature goes critical, picking 80C as a "red line". Now I can

Re: bioctl should retry passphrase

2011-01-13 Thread Christopher Zimmermann
On 01/14/11 00:51, Ted Unangst wrote: > If I type the wrong password into bioctl at boot, disks don't exist, > filesystems don't get mounted, and generally lots of things go wrong. All > I need is a second chance to remind me to type the right password. In /etc/rc I simply do this: [...] # XX

acpi and sysctl

2010-12-19 Thread Christopher Zimmermann
Hi, I've finally found some time to work on the fan control support for my thinkpad. But I'm having problems calling to acpiec_write() from sysctl or timeout_set(9) context. (Assertion failure in acpiec_gpehandler()). According to dev/acpi/acpiec.c:229 this function is meant to be called only from

Re: acpithinkpad(4) fan control - sysctl callback in kernel?

2010-11-30 Thread Christopher Zimmermann
On 11/22/10 23:01, joshua stein wrote: > as for code implementing the sysctl, it would probably be something > created under machdep, like the recently added machdep.lidsuspend. Thanks for your code. It helped me to do a first test of the fan control on my T43. It reacts strangely (regulates fan s

acpithinkpad(4) fan control

2010-11-29 Thread Christopher Zimmermann
Hi! I'd like to implement fan speed control for Thinkpads. It is documented at http://www.thinkwiki.org/wiki/How_to_control_fan_speed#Hardware_specs and linux also implements this (but with special case for TP 570, 600e/x, 770e, 770x - anyone here with access to one of these?) Implementing a drive

Re: wlan scan-after-nwid quirk for ThinkPads

2010-07-06 Thread Christopher Zimmermann
On 07/06/10 10:10, David Coppa wrote: > On Tue, Jul 6, 2010 at 4:14 AM, Anders Langworthy wrote: >> On Mon, Jul 5, 2010 at 4:37 PM, Christopher Zimmermann >> wrote: >> >>> The only thing I find funny is that the network link only comes >>> up afte

802.1X - WPA enterprise mode not yet supported ?

2010-06-28 Thread Christopher Zimmermann
Hi, it just took me 2 hours to figure out that OpenBSD does not yet support the WPA enterprise mode (aka 802.1X). Is this actually true? If yes, please include the patch below to make this clear in the man page. I like the high quality of the OpenBSD manpages, but today I really spent 2 hours se

Re: SiS190 driver: finished.

2010-04-02 Thread Christopher Zimmermann
dev/pci/if_se.c === RCS file: dev/pci/if_se.c diff -N dev/pci/if_se.c --- /dev/null 1 Jan 1970 00:00:00 - +++ dev/pci/if_se.c 2 Apr 2010 11:14:44 - @@ -0,0 +1,1425 @@ +/*- + * Copyright (c) 2009, 2010 Christopher Zimmermann + * Copyrigh

Re: SiS190 driver: finished.

2010-04-02 Thread Christopher Zimmermann
,0 +1,1425 @@ +/*- + * Copyright (c) 2009, 2010 Christopher Zimmermann + * Copyright (c) 2007, 2008 Alexander Pohoyda + * Copyright (c) 1997, 1998, 1999 + * Bill Paul . All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitt

[PATCH] please test if dmesg has "ehci0: timed out waiting for BIOS"

2010-04-02 Thread Christopher Zimmermann
Hi, I'm just touching this again because I'd like to see this fix committed to CVS. The problem that is fixed by this change is a complete deadlock while booting with USB2 HiSpeed enabled in BIOS. On Mon, 8 Mar 2010 15:39:55 +0100 Christopher Zimmermann wrote: > Heres my theory

testers needed for auich(4)

2010-04-01 Thread Christopher Zimmermann
counter. - my last patch introduced a small bug in auich_trigger_pipe() I fixed that. Cheers, Christopher Zimmermann Index: sys/dev/pci/auich.c === RCS file: /cvs/src/sys/dev/pci/auich.c,v retrieving revision 1.81 diff -u -p -r1.8

[patch] bsd.port.mk(5): document no-autoheader in CONFIGURE_STYLE

2010-03-31 Thread Christopher Zimmermann
document the no-autoheader flag in CONFIGURE_STYLE Index: bsd.port.mk.5 === RCS file: /cvs/src/share/man/man5/bsd.port.mk.5,v retrieving revision 1.242 diff -u -p -r1.242 bsd.port.mk.5 --- bsd.port.mk.5 22 Mar 2010 22:02:08 -00

Re: SiS 7002 lockup using USB2.0 'legacy' mode

2010-03-08 Thread Christopher Zimmermann
ok, I got it fixed. Heres my theory of what went wrong: My (broken) BIOS does not know how to hand over the ehci host controller. Therefore the timeout. Additionally when 'HiSpeed' is selected it turns on several System Management Interupts in the ehci host controller and won't turn them off wh

Re: SiS 7002 lockup using USB2.0 'legacy' mode

2010-03-08 Thread Christopher Zimmermann
Hi J.C., wow, thanks for all the work and explanation! On Sun, 7 Mar 2010 16:56:26 -0800 J.C. Roberts wrote: > On Sun, 7 Mar 2010 22:31:18 +0100 Christopher Zimmermann > wrote: > > > ok, you misunderstood me. My BIOS needs 'legacy' to be turned on to > > use t

Re: SiS 7002 lockup using USB2.0 'legacy' mode

2010-03-07 Thread Christopher Zimmermann
On Sun, 7 Mar 2010 12:49:00 -0800 J.C. Roberts wrote: > On Sun, 7 Mar 2010 17:24:07 +0100 Christopher Zimmermann > wrote: > > > Hi, > > > > I get a complete lock-up while booting during initialisation of my > > SIS7002 EHCI controller. > > > >

SiS 7002 lockup using USB2.0 'legacy' mode

2010-03-07 Thread Christopher Zimmermann
Hi, I get a complete lock-up while booting during initialisation of my SIS7002 EHCI controller. When enabling USB2.0 support, but disabling 'legacy' mode everything is fine. I just can't use my usb keyboard to talk to the boot> prompt. When I enable legacy mode, but set USB2.0 to 'FullSpeed' I

Re: Bug found in latest -current on amd64 with bigmem = 1

2010-03-07 Thread Christopher Zimmermann
On Sat, 6 Mar 2010 17:36:37 -0500 Jason Crawford wrote: > I was testing out the latest snapshot on my amd64 laptop, and > compiling latest sources, when I came across a bug. It appears that > with the latest -current, the kernel floods dmesg with errors if > bigmem = 1, because of this commit: >

  1   2   >