dhcpleased vs gif(4) (and othes like that)

2021-08-01 Thread Gregory Edigarov
Hello Everybody, The very minimal change to make it work correctly: --- /usr/src/etc/rc Fri Jul 30 13:31:07 2021 +++ /etc/rc Sun Aug  1 12:33:38 2021 @@ -449,6 +449,7 @@  # Prevents carp from preempting until the system is booted.  ifconfig -g carp carpdemote 128   +# We need to run /etc/

Re: dhcpleased vs gif(4) (and othes like that)

2021-08-01 Thread Theo de Raadt
Stuart Henderson wrote: > On 2021/08/01 12:57, Gregory Edigarov wrote: > > Hello Everybody, > > > > The very minimal change to make it work correctly: > > Running configuration twice on all interfaces is not 'very minimal' and > could easily cause more problems than it solves. No kidding. >

Re: dhcpleased vs gif(4) (and othes like that)

2021-08-01 Thread Stuart Henderson
On 2021/08/01 12:57, Gregory Edigarov wrote: > Hello Everybody, > > The very minimal change to make it work correctly: Running configuration twice on all interfaces is not 'very minimal' and could easily cause more problems than it solves. > +# We need to run /etc/netstart two times, first is to

Re: libutil/ber: add ober_dup(3)

2021-08-01 Thread Jonathan Matthew
On Thu, Jul 22, 2021 at 10:19:59PM +0200, Martijn van Duren wrote: > I'm currently working on adding SNMPv3 support to traps in snmpd(8). > For sending traps we loop over sc_trapreceivers and can send each trap > to 0 or more receivers. > > I want to high-jack snmpe_response() to do the heavy lift

Re: snmpd(8): set smi_applicatoin in usm_decrypt

2021-08-01 Thread Jonathan Matthew
On Thu, Jul 22, 2021 at 10:27:44PM +0200, Martijn van Duren wrote: > Not an issue with read requests, but will set requests if they contain > snmp application elements such as timeticks. > > Definitely needed for upcoming SNMPv3 trap support. > > OK? ok jmatthew@ > > martijn@ > > Index: usm.c

Re: snmpd(8): fix trapv2 on correct protocol detection

2021-08-01 Thread Jonathan Matthew
On Thu, Jul 22, 2021 at 10:31:53PM +0200, Martijn van Duren wrote: > This type-O snuck in when merging traphandler into snmpe. > Not a big deal since it's there just for ASN1/SMI strictness, but it > breaks when introducing SNMPv3 support. > > OK? ok jmatthew@ > > martijn@ > > Index: snmpe.c >

Re: snmpd(8): Allow setting engineid

2021-08-01 Thread Jonathan Matthew
On Tue, Jul 27, 2021 at 08:43:20PM +0200, Martijn van Duren wrote: > Previous diff failed to set the initial bit when not defining engineid > in the config. > > On Fri, 2021-07-23 at 15:41 +0200, Martijn van Duren wrote: > > This diff introduces setting the engineid for snmpd(8). > > Although this