sxitemp: set calibraration data, introducing sxisid

2019-04-08 Thread Krystian Lewandowski
Hello tech@, some time ago I sent patch for u-boot port (aarch4), enabling sxitemp driver (though it's wasn't reviewed yet) - there were just some entries in device tree missing that were added in the patch. Then I noticed sxitemp (OpenBSD) and aw_thermal (FreeBSD) are showing different values

Re: sfp module info and diagnostics

2019-04-08 Thread Stuart Henderson
FWIW (I was interested so put something together), here's a sample diff on top with one method of printing alarms. (I went for the < > checks rather than table 3.18 flag bits, mostly because I didn't fancy the "check again after 100ms" that the latter wanted). --- sff.c.orig Mon Apr 8 22:27:45

Re: sfp module info and diagnostics

2019-04-08 Thread Stuart Henderson
On 2019/04/08 19:55, Hrvoje Popovski wrote: > On 8.4.2019. 11:33, David Gwynne wrote: > > this updates the ifconfig part of the diff > > This is great feature... thank you .. > it would be great if dBm could be exported via snmp :) You can do this via net-snmp already:

Re: sfp module info and diagnostics

2019-04-08 Thread Sebastian Benoit
David Gwynne(da...@gwynne.id.au) on 2019.04.08 19:33:53 +1000: > this updates the ifconfig part of the diff > > it should have the following improvements: > > - actually applying to -current (thanks hrvoje) > - use vis(3) when printing the strings out (thanks deraadt@) > - make the code less

Re: sfp module info and diagnostics

2019-04-08 Thread Hrvoje Popovski
On 8.4.2019. 11:33, David Gwynne wrote: > this updates the ifconfig part of the diff This is great feature... thank you .. it would be great if dBm could be exported via snmp :) switch - Dell S4810 ix0 - sfp+ 10GBASE-SR optics ix1 - sfp 1000BASE-SX optics ixl0 - 10G passive DAC cables

Re: hack.6: mdoc punctuation fixes

2019-04-08 Thread Jason McIntyre
On Mon, Apr 08, 2019 at 04:13:48PM +0200, Fabio Scotoni wrote: > This patch cleans up some minor punctuation issues in the hack(6) man page. > The placement of the comma in an Ev list matches crontab(1) and sysmerge(8) > now. > It also introduces .Dq for double quotes to the hack(6) man page. >

Re: iked(8): add support for IKEv2 Message Fragmentation

2019-04-08 Thread Tobias Heider
Another update which fixes a problem with loosing the sa_frag state when rekeying the IKE SA, fixes some formatting and adresses some complaints about the msg_retransmit and msg_dispose API. Index: sbin/iked//config.c === RCS file:

Re: azalia: dolby atmos suspend/resume fix

2019-04-08 Thread Mike Larkin
On Mon, Apr 08, 2019 at 10:27:06AM +0200, Stefan Sperling wrote: > The dolby atmos hack is currently only run during boot, but it > becomes ineffective after a suspend/resume cycle. So sound plays > fine after a reboot but is only playing from the left speaker > after suspend/resume. > > This

Re: ihidev: fix possible panic

2019-04-08 Thread Stefan Sperling
On Mon, Apr 08, 2019 at 09:49:37AM -0500, joshua stein wrote: > psize is built from the first two bytes read from the device, but it > could be completely bogus, especially when polling. This can result > in a panic when reading p. > > Promote it to a signed int to catch it going negative and

ihidev: fix possible panic

2019-04-08 Thread joshua stein
psize is built from the first two bytes read from the device, but it could be completely bogus, especially when polling. This can result in a panic when reading p. Promote it to a signed int to catch it going negative and discard it if it's 2 or less, because shortly after it is decreased by

hack.6: mdoc punctuation fixes

2019-04-08 Thread Fabio Scotoni
This patch cleans up some minor punctuation issues in the hack(6) man page. The placement of the comma in an Ev list matches crontab(1) and sysmerge(8) now. It also introduces .Dq for double quotes to the hack(6) man page. Index: games/hack/hack.6

Re: sfp module info and diagnostics

2019-04-08 Thread Stuart Henderson
On 2019/04/08 13:57, Stuart Henderson wrote: > Here's a complete diff. Tested on amd64 with ix, working great there. > distrib/special/ifconfig still builds okay, I'll run a full mkr later on > i386/amd64. > > This is extremely useful for the bgpd "target market" ;) oops, here's attempt #2 with

Re: sfp module info and diagnostics

2019-04-08 Thread Stuart Henderson
Here's a complete diff. Tested on amd64 with ix, working great there. distrib/special/ifconfig still builds okay, I'll run a full mkr later on i386/amd64. This is extremely useful for the bgpd "target market" ;) Index: sbin/ifconfig/Makefile

Re: sfp module info and diagnostics

2019-04-08 Thread David Gwynne
this updates the ifconfig part of the diff it should have the following improvements: - actually applying to -current (thanks hrvoje) - use vis(3) when printing the strings out (thanks deraadt@) - make the code less special - use %.02f for the diag values consistently, and more sane units

azalia: dolby atmos suspend/resume fix

2019-04-08 Thread Stefan Sperling
The dolby atmos hack is currently only run during boot, but it becomes ineffective after a suspend/resume cycle. So sound plays fine after a reboot but is only playing from the left speaker after suspend/resume. This diff adds the hack in the resume path as well and fixes this issue on my

Re: introduce 'pfctl -FR' to reset settings to defaults

2019-04-08 Thread Alexandr Nedvedicky
Hello, > We should fail hard as in almost all other strdup(3) use cases. > Failure means the system ran out of memory, there's no point in going > any further. > > So just something like > > pf.ifname = strdup("none"); > if (pf.ifname == NULL) > err(1, "%s: strdup",

Re: smtpd - Filter-dataline response is the parameter

2019-04-08 Thread Gilles Chehade
On Mon, Apr 08, 2019 at 08:20:56AM +0200, Martijn van Duren wrote: > Found this the hard way by playing with the new filter API. > > When sending a plaintext message, which has an '|' in the text it would > cut of the data at that point. The diff below pushes the parameter split > to after

smtpd - Filter-dataline response is the parameter

2019-04-08 Thread Martijn van Duren
Found this the hard way by playing with the new filter API. When sending a plaintext message, which has an '|' in the text it would cut of the data at that point. The diff below pushes the parameter split to after handling the filter-dataline. Fixes my usecase. OK? martijn@ Index: