Re: route: improve inet6_makenetandmask

2018-06-24 Thread Florian Obser
On Sun, Jun 24, 2018 at 10:29:55PM +0200, Klemens Nanni wrote: > On Sun, Jun 24, 2018 at 10:09:26PM +0200, Florian Obser wrote: > > I don't understand why it's equivalent. > > > > prefixlen() seems to operate on so_mask while the only caller of > > inet6_makenetandmask() passes in so_dst. > > >

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Klemens Nanni
On Sun, Jun 24, 2018 at 10:09:26PM +0200, Florian Obser wrote: > I don't understand why it's equivalent. > > prefixlen() seems to operate on so_mask while the only caller of > inet6_makenetandmask() passes in so_dst. > > Assuming it is equivalent, inet6_makenetandmask() is now missnamed and > I

ldapd: avoid passing NULL to asprintf(3) when there's no parent dn entry

2018-06-24 Thread Gleydson Soares
avoid passing NULL to asprintf(3) when there's no parent dn entry, this happens when adding a new naming context and then putting the first rdn in. Jun 24 23:51:23 x250 ldapd: vfprintf %s NULL in "@%.*s,%.*s" Jun 25 00:13:14 x250 ldapd: vfprintf %s NULL in "@%.*s,%.*s" ? ldapd.diff Index:

[patch] proof of concept: enable/disable usb devices from user mode

2018-06-24 Thread Ilya Kazakevich
Hello, People on misc@ asked if it is possible to disable usb devices without reboot. Some of them want to disable cameras on laptops to save energy, other people want to disable mass storages on servers where it is not easy to disconnect cable. Any usb device is connected to hub's port, and any

Re: BGPD - refactor nexthop handling

2018-06-24 Thread Job Snijders
On Thu, Jun 21, 2018 at 08:59:45PM +0200, Claudio Jeker wrote: > This is the first step of some larger reshuffling of how the RDE is > working. One of the things needed is proper reference counting for > nexthops since I want to kill nexthop_link and nexthop_unlink in the > long run. > > Even

Rearrange the acpi(4) deck chairs

2018-06-24 Thread Mark Kettenis
The diff below shuffles things around to make it easier to add arm64 support later. The main thing is to avoid including in , since that header file doesn't exist on arm64. The bulk of acpi_attach() is split out into a new function and the current acpi_match() and acpi_attach() functions are

ber.c fix for length calculations

2018-06-24 Thread Rob Pierce
It looks like a BER problem found while testing the new ldap client (with an empty password) was already addressed in snmpd back in 2010 by martinh. In LDAP under a CONTEXT class, 0 corresponds to LDAP_AUTH_SIMPLE. This is currently interpreted as an EOC (end-of-content) and causes a

ksh: count $MAILCHECK with monotonic clock

2018-06-24 Thread Scott Cheloha
Currently, if the system clock is set backwards, ksh won't check for new mail until the clock ticks up to when it would have checked for new mail absent the jump. Measuring $MAILCHECK with the monotonic clock fixes this. I think checking mlastchkd == 0 to determine if this is the first run is a

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Florian Obser
On Sun, Jun 24, 2018 at 07:54:48PM +0200, Jeremie Courreges-Anglas wrote: > On Sun, Jun 24 2018, Klemens Nanni wrote: > > On Sun, Jun 24, 2018 at 04:34:01PM +0200, Jeremie Courreges-Anglas wrote: > >> So if I understand correctly, this diff does three things: > >> 1. shorten the code (remove the

httpd rewrite [moved]

2018-06-24 Thread Elias M. Mariani
Hi Reyk, Just a simple question, Will httpd implement something like .htaccess ? I mean, a way in witch the directories can define the rewrite policy ? The reason for this is that I want to use httpd to replace apache-httpd in a server that I share with some friends and having to write rewrite

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Klemens Nanni
On Sun, Jun 24, 2018 at 08:06:48PM +0200, Sebastian Benoit wrote: > And i think that > > route add -inet6 -prefixlen 56 2001:db10:: 2001:db9::5 As stated in the manual The implicit network mask generated in the AF_INET case can be overridden by making sure this option follows

Re: use-after-free in ieee80211_defrag() [from NetBSD]

2018-06-24 Thread Stefan Sperling
On Thu, Jun 21, 2018 at 07:46:12PM +0200, Sebastien Marie wrote: > Hi, > > m...@netbsd.org has corrected an use-after-free on NetBSD on similar > code we have. > > Fix use-after-free, m_cat can free m. > >

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Sebastian Benoit
Jeremie Courreges-Anglas(j...@wxcvbn.org) on 2018.06.24 19:54:48 +0200: > On Sun, Jun 24 2018, Klemens Nanni wrote: > > On Sun, Jun 24, 2018 at 04:34:01PM +0200, Jeremie Courreges-Anglas wrote: > >> So if I understand correctly, this diff does three things: > >> 1. shorten the code (remove the

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Jeremie Courreges-Anglas
On Sun, Jun 24 2018, Klemens Nanni wrote: > On Sun, Jun 24, 2018 at 04:34:01PM +0200, Jeremie Courreges-Anglas wrote: >> So if I understand correctly, this diff does three things: >> 1. shorten the code (remove the explicit mask handling from this >>function) >> 2. stop considering 2000::/3

Fix a kernelpanic when playing with rdomain(4) and enc(4)

2018-06-24 Thread Denis Fondras
When removing enc(4) interface from rdomain, the kernel panics randomly (memcpy() seems to copy outside of the mallocarray() boundaries) with something like : Data modified on freelist: word -35183699295756 of object 0x8059da80 size 0x8 previous type free (invalid addr

Re: sndiod.8: document how to start with multiple devices

2018-06-24 Thread Landry Breuil
On Sun, Jun 24, 2018 at 06:26:02PM +0200, Alexandre Ratchov wrote: > On Sun, Jun 24, 2018 at 05:38:11PM +0200, Landry Breuil wrote: > > On Sun, Jun 24, 2018 at 05:23:46PM +0200, Landry Breuil wrote: > > > Hi, > > > > > > here's an attempt at documenting the usecase i always forget when > > >

Re: sndiod.8: document how to start with multiple devices

2018-06-24 Thread Alexandre Ratchov
On Sun, Jun 24, 2018 at 05:38:11PM +0200, Landry Breuil wrote: > On Sun, Jun 24, 2018 at 05:23:46PM +0200, Landry Breuil wrote: > > Hi, > > > > here's an attempt at documenting the usecase i always forget when > > playing with multiple devices/mics. Feedback/reworking/tweaks welcome. > > New

Re: [diff] deleting lo(4) with rdomain

2018-06-24 Thread Alexander Bluhm
On Sat, Jun 23, 2018 at 10:52:13PM +0200, Denis Fondras wrote: > Here is a diff to allow deletion of lo(4) created by rdomain. I think this is a good idea. Interface and route configuration in the kernel should be revertabel without reboot. > rtable is still available after all the interfaces

Re: sndiod.8: document how to start with multiple devices

2018-06-24 Thread Landry Breuil
On Sun, Jun 24, 2018 at 05:23:46PM +0200, Landry Breuil wrote: > Hi, > > here's an attempt at documenting the usecase i always forget when > playing with multiple devices/mics. Feedback/reworking/tweaks welcome. New version after super quick feedback from jmc@, unsure where to put the comma

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Klemens Nanni
On Sun, Jun 24, 2018 at 04:34:01PM +0200, Jeremie Courreges-Anglas wrote: > So if I understand correctly, this diff does three things: > 1. shorten the code (remove the explicit mask handling from this >function) > 2. stop considering 2000::/3 as special per RFC3587 > 3. stop considering

sndiod.8: document how to start with multiple devices

2018-06-24 Thread Landry Breuil
Hi, here's an attempt at documenting the usecase i always forget when playing with multiple devices/mics. Feedback/reworking/tweaks welcome. Landry Index: sndiod.8 === RCS file: /cvs/src/usr.bin/sndiod/sndiod.8,v retrieving

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Denis Fondras
On Sun, Jun 24, 2018 at 04:34:01PM +0200, Jeremie Courreges-Anglas wrote: > 3. ... why should we stop assuming that the user really means to >configure a route for a /64 if the host id part is all-zeroes? Is >this really part of what has been deprecated by RFC3587? > > I can understand

Re: route: improve inet6_makenetandmask

2018-06-24 Thread Jeremie Courreges-Anglas
On Mon, Jun 11 2018, Klemens Nanni wrote: > Here's a new diff that removes the duplicate parsing bits as mentioned > before but leaves masking the address to mask_addr() instead of doing it > manually. > > Furthermore, it also stops route(8) from assuming address strings > without explicit prefix

Re: sasyncd: remove redundant memset() call

2018-06-24 Thread Todd C. Miller
On Sun, 24 Jun 2018 01:50:49 -0300, Gleydson Soares wrote: > calloc() already filled all the memory block to 0, zap memset(). OK millert@ - todd

Re: use-after-free in ieee80211_defrag() [from NetBSD]

2018-06-24 Thread Sebastien Marie
On Thu, Jun 21, 2018 at 07:46:12PM +0200, Sebastien Marie wrote: > Hi, > > m...@netbsd.org has corrected an use-after-free on NetBSD on similar > code we have. > > Fix use-after-free, m_cat can free m. > >

uaudio: fix logitech c310 integrated mic

2018-06-24 Thread Landry Breuil
Hi, the logitech c310 is supported by uvideo, but its uaudio fails to attach properly and fallbacks to ugen. uaudio0 at uhub0 port 1 configuration 1 interface 2 "Logitech Webcam C310" rev 2.00/0.12 addr 2 uaudio_identify_ac: AC interface is 2 uaudio_identify_ac: found AC header, vers=100,

Re: vmd: sync DPADD with LDADD

2018-06-24 Thread Reyk Floeter
OK reyk@ > Am 24.06.2018 um 07:57 schrieb Gleydson Soares : > > sync DPADD with LDADD adding missing ${LIBPTHREAD} to ensure > that binary is rebuilt in case of pthread library changes. > Index: Makefile > === > RCS file: