Re: rad(8): add rad.conf to changelist(5)

2018-07-12 Thread Florian Obser
On Fri, Jul 13, 2018 at 08:19:17AM +0200, Sebastien Marie wrote: > Hi, > > As rad(8) is linked in the build, I think it makes sens to add rad.conf > to changelist ? thanks! I always forget about the changelist. Commited with tb's tweak. > > Thanks. > -- > Sebastien Marie > > Index: changelist

Re: rad(8): add rad.conf to changelist(5)

2018-07-12 Thread Theo Buehler
On Fri, Jul 13, 2018 at 08:19:17AM +0200, Sebastien Marie wrote: > Hi, > > As rad(8) is linked in the build, I think it makes sens to add rad.conf > to changelist ? If it sorted before radiusd.conf, then it's ok tb > > Thanks. > -- > Sebastien Marie > > Index: changelist > ==

rad(8): add rad.conf to changelist(5)

2018-07-12 Thread Sebastien Marie
Hi, As rad(8) is linked in the build, I think it makes sens to add rad.conf to changelist ? Thanks. -- Sebastien Marie Index: changelist === RCS file: /cvs/src/etc/changelist,v retrieving revision 1.120 diff -u -p -r1.120 changelis

Re: tables in anchor

2018-07-12 Thread sven falempin
On Thu, Jul 12, 2018 at 12:15 PM sven falempin wrote: > You can add them with pftcl -a foo/bar -t new -T add something > The table cannot be created empty ( no -T create ) > It s not possible to write in a configuration file > > anchor "whenitshot" { > table const { 192.168/16, 10/8, 172.16/12

Re: CVS: cvs.openbsd.org: src

2018-07-12 Thread Paul Irofti
> Because you can tuna meltover, but you can't tune a fish. > (hat tip to the author of the tunefs(8) manpage.) And to REO Speedwagon!

bgpctl show mrt file

2018-07-12 Thread Claudio Jeker
This diff ads enough extra code to parse and display mrt update messages. Some code in bgpd needs to be moved to be reachable by bgpctl. bgpctl code gets reshuffled so that mrt printing works without a running bgpd and also to make the pledge more strict. This is nice to see stuff like the full not

Re: IP_SENDSRCADDR cmsg_len and dnsmasq

2018-07-12 Thread Alexander Bluhm
On Thu, Jul 12, 2018 at 06:05:14PM +0200, Jeremie Courreges-Anglas wrote: > --8<-- > space = sbspace(so, &so->so_snd); > if (flags & MSG_OOB) > space += 1024; > if ((atomic && resid > so->so_snd.sb_hiwat) || > (so->so

Re: Kill SS_NBIO

2018-07-12 Thread Martin Pieuchot
On 12/07/18(Thu) 17:53, Alexander Bluhm wrote: > On Thu, Jul 12, 2018 at 02:38:48PM +0200, Martin Pieuchot wrote: > > @@ -83,12 +91,6 @@ soo_ioctl(struct file *fp, u_long cmd, c > > switch (cmd) { > > > > case FIONBIO: > > - s = solock(so); > > - if (*(int *)data) > >

tables in anchor

2018-07-12 Thread sven falempin
You can add them with pftcl -a foo/bar -t new -T add something The table cannot be created empty ( no -T create ) It s not possible to write in a configuration file anchor "whenitshot" { table const { 192.168/16, 10/8, 172.16/12, 169.254/16, 10.1.0.254/16 } } Was possible in 6.0 it s no more p

Re: IP_SENDSRCADDR cmsg_len and dnsmasq

2018-07-12 Thread Jeremie Courreges-Anglas
On Wed, Jun 27 2018, Vincent Gross wrote: > So a while back Alexander Markert sent a bug report regarding sendmsg() > behaviour with IP_SENDSRCADDR : > > https://marc.info/?l=openbsd-tech&m=149276833923905&w=2 > > This impacts our dnsmasq port : > > https://marc.info/?l=openbsd-tech&m=149234052220

Re: Kill SS_NBIO

2018-07-12 Thread Alexander Bluhm
On Thu, Jul 12, 2018 at 02:38:48PM +0200, Martin Pieuchot wrote: > @@ -83,12 +91,6 @@ soo_ioctl(struct file *fp, u_long cmd, c > switch (cmd) { > > case FIONBIO: > - s = solock(so); > - if (*(int *)data) > - so->so_state |= SS_NBIO; > -

bgpd/bgpctl: print the rdomain of the interfaces

2018-07-12 Thread Sebastian Benoit
store and print the rdomain of the interfaces we see. ok? (benno_print_rdomain_2.diff) diff --git usr.sbin/bgpctl/bgpctl.c usr.sbin/bgpctl/bgpctl.c index f8d4a5adcc9..f22a2561c42 100644 --- usr.sbin/bgpctl/bgpctl.c +++ usr.sbin/bgpctl/bgpctl.c @@ -1140,7 +1140,7 @@ show_nexthop_msg(struct imsg

RTM_CHGADDRATTR try 2

2018-07-12 Thread Florian Obser
When I sent this around in april it still needed the kernel lock which made it fuggly... Now the netlock is enough. Introduce RTM_CHGADDRATTR to inform userland on the route socket when an attribute of an address is changed. For now it's used when IPv6 duplicate address detection finishes. With t

Re: CVS: cvs.openbsd.org: src

2018-07-12 Thread Philip Guenther
On Thu, Jul 12, 2018 at 2:11 PM Philip Guenther wrote: > CVSROOT:/cvs > Module name:src > Changes by: guent...@cvs.openbsd.org2018/07/12 08:11:11 > > Modified files: > sys/arch/amd64/amd64: cpu.c identcpu.c locore.S machdep.c pmap.c >

Kill SS_NBIO

2018-07-12 Thread Martin Pieuchot
Sockets and files have one flag each to indicate the I/O mode is non-blocking. This is redundant. Keeping both flags in sync is hard since races can happen between the two different layers. So the diff below gets rid of SS_NBIO. It is fairly simple since sosend(9) and soreceive(9) already take

Re: mg(1): query-replace & capitilisation

2018-07-12 Thread Florian Obser
phessler points out that the variable names are confusing. diff --git line.c line.c index ae5d4a7e3bb..301f5206fdc 100644 --- line.c +++ line.c @@ -18,6 +18,7 @@ */ #include +#include #include #include #include @@ -511,7 +512,11 @@ int lreplace(RSIZE plen, char *st) { RSIZ

mg(1): query-replace & capitilisation

2018-07-12 Thread Florian Obser
mg(1) searches case insensitve and puts the replace string verbatime in place. The One True Editor considers the case (capitalised or all uppercase) and adjusts the replacement string accordingly. This only happens when the replacement string is all lowercase. The following diff implements this fo

Re: Next command of GDB does not work properly unusual

2018-07-12 Thread YASUOKA Masahiko
On Thu, 12 Jul 2018 19:14:19 +0900 (JST) YASUOKA Masahiko wrote: >> On 2018/07/12 16:16, YASUOKA Masahiko wrote: >>> > The next command of GDB does not work properly. >>> > I use OpenBSD 6.3 and /usr/bin/gdb (GDB 6.3). >>> >>> It seems that gdb can't read the dwarf generated by clang properly.

USB device & port number

2018-07-12 Thread Martin Pieuchot
Diff below extends 'struct usb_device_info' to include the port number where the USB device is attached to. It doesn't grow the structure and reuse implicit padding. I'd like to export the port number to userland to satisfy devel/libusb1, see: https://github.com/libusb/libusb/issues/314 Ok? Ind

Re: Next command of GDB does not work properly unusual

2018-07-12 Thread YASUOKA Masahiko
On Thu, 12 Jul 2018 10:37:33 +0100 Stuart Henderson wrote: > On 2018/07/12 16:16, YASUOKA Masahiko wrote: >> > The next command of GDB does not work properly. >> > I use OpenBSD 6.3 and /usr/bin/gdb (GDB 6.3). >> >> It seems that gdb can't read the dwarf generated by clang properly. >> I found a

Re: Next command of GDB does not work properly unusual

2018-07-12 Thread Stuart Henderson
On 2018/07/12 16:16, YASUOKA Masahiko wrote: > Hi, > > > The next command of GDB does not work properly. > > I use OpenBSD 6.3 and /usr/bin/gdb (GDB 6.3). > > It seems that gdb can't read the dwarf generated by clang properly. > I found a better fix at the upstream. > > > https://sourceware.

Re: Next command of GDB does not work properly unusual

2018-07-12 Thread YASUOKA Masahiko
Hi, > The next command of GDB does not work properly. > I use OpenBSD 6.3 and /usr/bin/gdb (GDB 6.3). It seems that gdb can't read the dwarf generated by clang properly. I found a better fix at the upstream. https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=ca5f395d6255337974262b