Fix dwge(4) on Rockchip SoCs

2018-05-05 Thread Mark Kettenis
Lost a few hairs over this one. Turns out you have to write these registers in the right order to program the address filter correctly. With this diff the Gigabit Ethernet interface on the Rock64 works. ok? Index: dev/ic/dwc_gmac.c

Re: [PATCH] mv -P

2018-05-05 Thread Theo de Raadt
Wow. A better answer would have been "Really sorry Theo and everyone, but I always come off as a dick..." your opinion and screed don't change anything. attila wrote: > Theo de Raadt wrote: > > >"Theo de Raadt" wrote: > > >>

Re: [PATCH] mv -P

2018-05-05 Thread attila
Theo de Raadt wrote: > >"Theo de Raadt" wrote: > >> attila wrote: > >> > Hi tech@, > >> > > >> > I frequently want to move a file from one place to another and shred > >> > the original via the rm(1) -P option. On several

Re: unbuffered fread does not set error/EOF flags

2018-05-05 Thread Vadim Zhukov
2018-05-05 22:12 GMT+03:00 Vadim Zhukov : > Hi all! > > Recently I was working on a program that uses stdio functions heavily. > While hunting for a bug, I've temporarily disabled buffering (via > setvbuf(f, NULL, _IONBF, 0)) and realized that program behavior was > changed

unbuffered fread does not set error/EOF flags

2018-05-05 Thread Vadim Zhukov
Hi all! Recently I was working on a program that uses stdio functions heavily. While hunting for a bug, I've temporarily disabled buffering (via setvbuf(f, NULL, _IONBF, 0)) and realized that program behavior was changed heavily. The cause was that fread() stopped setting error flag after hitting

Re: ifconfig(8): pltime and vltime are measured in seconds

2018-05-05 Thread Jason McIntyre
On Sat, May 05, 2018 at 03:26:09PM +0200, Paul de Weerd wrote: > Hi Jason, > > Thanks for your reply. Yes, that's better. Here you go: > fixed, thanks. jmc > > Index: ifconfig.8 > === > RCS file:

Re: ifconfig(8): pltime and vltime are measured in seconds

2018-05-05 Thread Klemens Nanni
On Sat, May 05, 2018 at 03:26:09PM +0200, Paul de Weerd wrote: > Thanks for your reply. Yes, that's better. Here you go: I agree, OK kn.

Re: ifconfig(8): pltime and vltime are measured in seconds

2018-05-05 Thread Jason McIntyre
On Sat, May 05, 2018 at 03:26:09PM +0200, Paul de Weerd wrote: > Hi Jason, > > Thanks for your reply. Yes, that's better. Here you go: > ok me. jmc > > Index: ifconfig.8 > === > RCS file:

Re: ifconfig(8): pltime and vltime are measured in seconds

2018-05-05 Thread Paul de Weerd
Hi Jason, Thanks for your reply. Yes, that's better. Here you go: Index: ifconfig.8 === RCS file: /home/OpenBSD/cvs/src/sbin/ifconfig/ifconfig.8,v retrieving revision 1.305 diff -u -p -r1.305 ifconfig.8 --- ifconfig.8 16 Mar

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

Re: ifconfig(8): pltime and vltime are measured in seconds

2018-05-05 Thread Jason McIntyre
On Sat, May 05, 2018 at 01:50:30PM +0200, Paul de Weerd wrote: > During a discussion on IPv6 with Undeadly editor Ross Richardson, he > pointed out that ifconfig(8) doesn't mention the unit of the arguments > to the pltime and vltime options. Here's a diff to fix that: > hi. > > Index:

[patch] simplify old_filename handling in ed(1)

2018-05-05 Thread Martijn van Duren
Hello tech@, The following patch simplifies the filename handling for ed and removes a few BACKWARDS flags. This patch changes the code in the following ways: - If there's no valid filename always fail early. This would be identical if we were to disable the BACKWARDS flag. - If there's a new

in6_ioctl: some more cleanup

2018-05-05 Thread Theo Buehler
Now that the dust has settled a bit, I'd like to simplify in6_ioctl() a bit more. At the moment it still has two tangled switches that deal with SIOCAIFADDR_IN6 and SIOCDIFADDR_IN6. We can disentangle them at the cost of repeating a few lines, but I think it's worth it. I also introduced another

ifconfig(8): pltime and vltime are measured in seconds

2018-05-05 Thread Paul de Weerd
During a discussion on IPv6 with Undeadly editor Ross Richardson, he pointed out that ifconfig(8) doesn't mention the unit of the arguments to the pltime and vltime options. Here's a diff to fix that: Index: ifconfig.8 === RCS

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

2018-05-05 Thread Martin Pieuchot
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: > > > > On 02/05/18(Wed) 11:47, Christopher Zimmermann wrote:

Use console speed from device tree

2018-05-05 Thread Mark Kettenis
Diff below makes com(4) use the console speed from /chosen/stdout-path when probided. stdout-path: 'serial0:115200n8' We could also parse the partity and number of bits, but frankly that isn't worth it. Everybody uses 8 bits with no parity these days. I'll make the same changes to