Re: [PATCH] smsc: set SMSC_MII_BUSY to read/write PHY regs

2018-07-04 Thread Kevin Lo
On Wed, Jun 27, 2018 at 04:42:22PM +0800, Kevin Lo wrote: > > Hi, > > The diff below sets SMSC_MII_BUSY bit, which is necessary for PHY to > acknowledge a read/write request; from FreeBSD r333096. > While here, mask off the PHY address and register. > > Tested on rpi3. > > # dmesg |grep smsc >

Re: avoid vfprintf NULL errors in ldape.c log_debug()

2018-07-04 Thread Theo de Raadt
Rob Pierce wrote: > Running the current ldapd regression tests result in the following (repeated) > errors in my /var/log/messages: > > ... ldapd: vfprintf %s NULL in "current bind dn = %s " > > This is because regress/usr.sbin/ldapd/run-tests.pl is performing > unnecessary unbinds in END { }.

Re: raw ip mbuf leak

2018-07-04 Thread Sebastian Benoit
Alexander Bluhm(alexander.bl...@gmx.net) on 2018.07.04 22:49:01 +0200: > Hi, > > It was possible to leak the control mbuf in raw ip user request > with sendmsg(2) and MSG_OOB. Sync the code in udp, rip, and > rip6_usrreq. Add an inp NULL check in rip6_usrreq for consistency. > > ok? ok > blu

Re: Add support for the VIA VX900 chipset in viapm(4)

2018-07-04 Thread Mark Kettenis
> Date: Wed, 4 Jul 2018 23:41:22 +0200 > From: Frederic Cambus > > Hi tech@, > > Here is a diff to add support for the VIA VX900 chipset in viapm(4). > > Comments? OK? ok kettenis@ > Index: share/man/man4/viapm.4 > === > RCS file

priofilter and rtm message types

2018-07-04 Thread Sebastian Benoit
Remi noticed that ospfd does no longer see new interfaces. The priority filter should only work on routing messages that have a rtm_priority. So these are out: RTM_DELADDR RTM_NEWADDR (struct ifa_msghdr) RTM_IFINFO (struct if_msghdr) RTM_IFANNOUNCE (struct if_announcemsghdr) RTM_BFD (struct bfd_

Add support for the VIA VX900 chipset in viapm(4)

2018-07-04 Thread Frederic Cambus
Hi tech@, Here is a diff to add support for the VIA VX900 chipset in viapm(4). Comments? OK? Index: share/man/man4/viapm.4 === RCS file: /cvs/src/share/man/man4/viapm.4,v retrieving revision 1.11 diff -u -p -r1.11 viapm.4 --- share/

Re: Unplugging USB network stick during tcpdump crashes system

2018-07-04 Thread Alexander Bluhm
On Wed, Jul 04, 2018 at 08:18:53PM +, Moritz Buhl wrote: > Removing my usb network interface during `tcpdump -i rum0` caused my > kernel to crash. A fix is attached. This error comes from the usbd_is_dying() check in the device ioctl. Some drivers return EIO in this case. I think ENXIO is bet

raw ip mbuf leak

2018-07-04 Thread Alexander Bluhm
Hi, It was possible to leak the control mbuf in raw ip user request with sendmsg(2) and MSG_OOB. Sync the code in udp, rip, and rip6_usrreq. Add an inp NULL check in rip6_usrreq for consistency. ok? bluhm Index: netinet/raw_ip.c

Re: sparc64: enable trunk(4) in RAMDISK

2018-07-04 Thread Mark Kettenis
> Date: Wed, 4 Jul 2018 20:10:45 +0200 > From: Klemens Nanni > > I currently have to prefetch sets to disk and upgrade offline since my > uplink is configured via LACP. > > This diff enables trunk interfaces in the ramdisk: I have successfully > built a bsd.rd with it and upgraded via network as

Unplugging USB network stick during tcpdump crashes system

2018-07-04 Thread Moritz Buhl
Hello, Removing my usb network interface during `tcpdump -i rum0` caused my kernel to crash. A fix is attached. Thanks, Moritz Buhl Index: net/bpf.c === RCS file: /cvs/src/sys/net/bpf.c,v retrieving revision 1.169 diff -u -p -r1.169

sparc64: enable trunk(4) in RAMDISK

2018-07-04 Thread Klemens Nanni
I currently have to prefetch sets to disk and upgrade offline since my uplink is configured via LACP. This diff enables trunk interfaces in the ramdisk: I have successfully built a bsd.rd with it and upgraded via network as usual on my T5240. Feedback? OK? Index: RAMDISK

[PATCH] fakertc: A Real time clock simulator

2018-07-04 Thread Aaron Lancaster
I wrote this patch/script to deal with a very irritating case of circular dependency failure I recently encountered on an APU2 system. On systems with non-existent or dead battery real time clocks, with DNS over TLS being used, if your clock gets reset to a much earlier date due to power off, DNS

Re: [PATCH] column(1): -r to right justify

2018-07-04 Thread Sebastian Benoit
Job Snijders(j...@openbsd.org) on 2018.07.04 14:09:56 +0200: > Dear all, > > Following some back and forth on how disklabel output should be > formatted, I proposed to Kenneth to extend the column(1) utility. All that > was missing is the ability to right justify. I've longed for this > feature fo

usbdevs & hub ports status

2018-07-04 Thread Martin Pieuchot
Diff below adds support for printing USB ports status. It includes an ABI change as we currently do not export port status/change to userland. I'd really like to export the current cached value to userland via the USB_DEVICEINFO ioctl(2) to reduce the numbers of I/O. Note that this diff also fix

Re: errors in usage.c - libusbhid

2018-07-04 Thread David Bern
On Tue, 3 Jul 2018 07:55:47 +0200 Martin Pieuchot wrote: > > > > If wanted I can send the code I used to test this. > > It would be great if you could turn that into a regression test to put > in /usr/src/regress/lib/libusbhid/nameofyourtest :) Sure. Should say that my Bourne shell & bsd.reg

Re: bgpd softreconf in optimisation

2018-07-04 Thread Peter Hessler
yes please! OK On 2018 Jul 03 (Tue) at 22:37:29 +0200 (+0200), Claudio Jeker wrote: :There is no need to run against both input filters. :path_update() and prefix_remove() are both smart enough to handle all :cases (similar to a regular update). Should make reloads a bit faster. : :More precise

[PATCH] column(1): -r to right justify

2018-07-04 Thread Job Snijders
Dear all, Following some back and forth on how disklabel output should be formatted, I proposed to Kenneth to extend the column(1) utility. All that was missing is the ability to right justify. I've longed for this feature for a while: I often use 'column -t' to prettify data coming from an awk pi

Re: avoid vfprintf NULL errors in ldape.c log_debug()

2018-07-04 Thread Sebastian Benoit
ok Rob Pierce(r...@2keys.ca) on 2018.07.03 19:38:51 -0400: > Running the current ldapd regression tests result in the following (repeated) > errors in my /var/log/messages: > > ... ldapd: vfprintf %s NULL in "current bind dn = %s " > > This is because regress/usr.sbin/ldapd/run-tests.pl is perfo

Re: realpath(3) on a dangling symlink

2018-07-04 Thread Martijn van Duren
On 07/03/18 23:17, Stuart Henderson wrote: > On 2018/06/28 08:52, Martijn van Duren wrote: >> - If realpath fails the content of resolved is undefined, so why waste >> cycles setting it to ".". If anyone thinks we should return something >> sensible I reckon we should make it an empty string. > >