ospfd: deal with /etc/netstart, changes of netmask and dest_addr

2018-06-17 Thread Remi Locherer
Hi, in some circumstances ospfd behaves not the way a user would expect and it's not easy understand how to recover. With below diff ospfd recovers automatically from the following three cases. 1) netstart When someone runs the netstart script on a running system it most likely assigns the alrea

Re: enable middle button scrolling by default in ws(4) ?

2018-06-17 Thread Mike Burns
On 2018-06-16 18.19.35 +0200, Matthieu Herrb wrote: > the ws(4) mouse driver has the option of emulating the mouse wheel > on motion + a given button is generated. > > This is active by default on button 2 on recent Linux systems (those > using libinput). > > Should OpenBSD's ws(4) activate it by

Re: mpii support for sas3.5 controllers

2018-06-17 Thread David Gwynne
works on sparc64 with a sas2008 too: mpii0 at pci3 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi mpii0: Intel(R) SSD 910, firmware 12.0.0.0, MPI 2.0 scsibus1 at mpii0: 512 targets ok by me. > On 18 Jun 2018, at 01:01, Robert Nagy wrote: > > Hi > > Obviously I am ok with this since it

Re: enable middle button scrolling by default in ws(4) ?

2018-06-17 Thread Ulf Brosziewski
Hi, I have the vague impression that the feature isn't popular here, but it makes sense if you are using a trackpoint, or a three-button mouse without a wheel. According to the libinput documentation, it is enabled by default for trackpoints. However, at first sight I'd think that such a default

Re: ksh "clear-screen" editing command

2018-06-17 Thread Todd C. Miller
On Sun, 17 Jun 2018 17:29:31 +0200, Mark Kettenis wrote: > If folks indeed think that this is a must-have feature, this is > certainly a better approach. I wonder though if the setupterm() call > should happen earlier when interactive mode is initialized? This turns out to be simpler than expect

Re: ksh "clear-screen" editing command

2018-06-17 Thread Alexander Hall
I'm currently on vacation with very limited ability to test, but I do approve of this way. /Alexander On June 17, 2018 5:00:17 PM GMT+02:00, "Todd C. Miller" wrote: >On Sat, 16 Jun 2018 16:16:57 -0600, "Todd C. Miller" wrote: > >> On Sat, 16 Jun 2018 14:50:40 +0200, Mark Kettenis wrote: >> >>

Re: conf files tweak

2018-06-17 Thread Sebastian Benoit
ok benno@ Jason McIntyre(j...@kerhand.co.uk) on 2018.06.17 21:23:50 +0100: > hi. > > diff below removes the section header SECTIONS for conf files, > preventing a one line DESCRIPTION. it also stops numbering the amount of > sections because a) it is unimportant and b) every time we add or remo

Re: 6.3 and Prolific PL-2303 USB serial adapter

2018-06-17 Thread Paul de Weerd
On Sun, Jun 17, 2018 at 07:30:34PM +0200, Jan-Piet Mens wrote: | Hi Paul, | | > Is there any specific marking on the device to suggest it's from HP? | | oh, indeed. The photo at [1] shows the display with a prominent "HP" logo. | | [1] https://mastodon.social/@jpmens/100220482259778231 Oh, that

conf files tweak

2018-06-17 Thread Jason McIntyre
hi. diff below removes the section header SECTIONS for conf files, preventing a one line DESCRIPTION. it also stops numbering the amount of sections because a) it is unimportant and b) every time we add or remove a section the doc goes out of date. ok? jmc Index: usr.sbin/bgpd/bgpd.conf.5 ==

Re: errors in usage.c - libusbhid

2018-06-17 Thread David Bern
I have given the following part some more thought > + us = pages[k].page_contents[j].usage; > + if (us == -1) { > + usage_sep = strchr(sep, '_'); > + if (usage_sep == NULL) > + return -1; As I ha

Re: 6.3 and Prolific PL-2303 USB serial adapter

2018-06-17 Thread Jan-Piet Mens
Hi Paul, Is there any specific marking on the device to suggest it's from HP? oh, indeed. The photo at [1] shows the display with a prominent "HP" logo. [1] https://mastodon.social/@jpmens/100220482259778231 Will it work with the uplcom(4) driver? Who knows. Try this (written against -c

Re: 6.3 and Prolific PL-2303 USB serial adapter

2018-06-17 Thread Paul de Weerd
Hi Jan-Piet, This seems to be a USB to serial adapter made by HP, given the output from Fedora's lsusb: > idVendor 0x03f0 Hewlett-Packard > idProduct 0x3524 > bcdDevice3.10 > iManufacturer 1 Prolific Technology Inc. > iProduct2 U

6.3 and Prolific PL-2303 USB serial adapter

2018-06-17 Thread Jan-Piet Mens
Hello! Mike Belopuhov suggested I contact you with an issue I'm having [1] with a "Prolific USB-Serial Controller" for which USB manufacturer/product IDs are not being recognized. Is the information I'm attaching sufficient? (I took the liberty of also attaching a Fedora `lsusb -v' output wh

Re: ksh "clear-screen" editing command

2018-06-17 Thread Todd C. Miller
On Sat, 16 Jun 2018 12:41:12 -0700, Il Ka wrote: > > alternative that doesn't require linking ksh with > > curses? > > I'm curious, is it possible to use termcap/terminfo directly here? My recent diffs use the terminfo api rather than full-blown curses but it is all the same library. - todd

Re: ksh "clear-screen" editing command

2018-06-17 Thread Il Ka
> alternative that doesn't require linking ksh with > curses? I'm curious, is it possible to use termcap/terminfo directly here? -- Sent from: http://openbsd-archive.7691.n7.nabble.com/openbsd-dev-tech-f151936.html

Re: ksh "clear-screen" editing command

2018-06-17 Thread Todd C. Miller
On Sun, 17 Jun 2018 17:29:31 +0200, Mark Kettenis wrote: > If folks indeed think that this is a must-have feature, this is > certainly a better approach. I wonder though if the setupterm() call > should happen earlier when interactive mode is initialized? Probably > best to link against libtermi

Re: ksh "clear-screen" editing command

2018-06-17 Thread Mark Kettenis
> From: "Todd C. Miller" > Date: Sun, 17 Jun 2018 09:00:17 -0600 > > On Sat, 16 Jun 2018 16:16:57 -0600, "Todd C. Miller" wrote: > > > On Sat, 16 Jun 2018 14:50:40 +0200, Mark Kettenis wrote: > > > > > To be honest, I find the whole idea of invoking an external program to > > > clear the screen

Re: Should whois(1) and IPv6 default to ANICHOST?

2018-06-17 Thread Klemens Nanni
On Sun, Jun 17, 2018 at 04:54:41PM +0200, Florian Obser wrote: > I like it, I think the heuristic is good enough. usr.bin/nc/socks.c:328 for example also does it that way. > OK florian@ or I take OKs to commit it myself ;) OK kn

Re: Should whois(1) and IPv6 default to ANICHOST?

2018-06-17 Thread Job Snijders
OK job@ On Sun, 17 Jun 2018 at 17:00, Florian Obser wrote: > I like it, I think the heuristic is good enough. > > OK florian@ or I take OKs to commit it myself ;) > > On Sun, May 20, 2018 at 07:48:34PM +0100, Mikolaj Kucharski wrote: > > Hi, > > > > This is very naive patch for whois(1) which ma

Re: mpii support for sas3.5 controllers

2018-06-17 Thread Robert Nagy
Hi Obviously I am ok with this since it makes my controller work ;) mpii0 at pci6 dev 0 function 0 "Symbios Logic MegaRAID SAS3408" rev 0x01: msi scsibus3 at mpii0: 640 targets st0 at scsibus3 targ 5 lun 0: SCSI4 1/sequential removable naa.5000e111c457f001 ch0 at scsibus3 targ 5 lun 1: SCSI3 8

Re: ksh "clear-screen" editing command

2018-06-17 Thread Todd C. Miller
On Sat, 16 Jun 2018 16:16:57 -0600, "Todd C. Miller" wrote: > On Sat, 16 Jun 2018 14:50:40 +0200, Mark Kettenis wrote: > > > To be honest, I find the whole idea of invoking an external program to > > clear the screen insane. > > Linking with curses doesn't increase the size a huge amount since > w

Re: Should whois(1) and IPv6 default to ANICHOST?

2018-06-17 Thread Florian Obser
I like it, I think the heuristic is good enough. OK florian@ or I take OKs to commit it myself ;) On Sun, May 20, 2018 at 07:48:34PM +0100, Mikolaj Kucharski wrote: > Hi, > > This is very naive patch for whois(1) which makes it work > by default for IPv6 addresses. I went with very minimal > app

Re: Should whois(1) and IPv6 default to ANICHOST?

2018-06-17 Thread Mikolaj Kucharski
Hi, Ping? Initial email at https://marc.info/?l=openbsd-tech&m=152684229010897&w=2 Regards, Mikolaj On Thu, Jun 07, 2018 at 07:47:17AM +0100, Mikolaj Kucharski wrote: > Hi, > > Any comments? > > On Sun, May 20, 2018 at 07:48:34PM +0100, Mikolaj Kucharski wrote: > > Hi, > > > > This is very