handle multiple interface addresses in dhcrelay

2017-11-20 Thread David Gwynne
we were running out of space on a network here, but rather than make the network bigger, we added a separate ip address space to it. we use dhcrelay on these networks to provde addresses for the machines on this network. dhcpd relies on the gateway address inside a dhcp packet to figure out which

Re: carp: address update hook gone after interface detach

2017-11-20 Thread Alexander Bluhm
On Thu, Nov 16, 2017 at 03:23:07PM +0100, Patrick Wildt wrote: > when we detach the interface from the carp the hook that is called > when an address is updated is disestablished. But it never again > gets re-established, which makes the carp interface unusable. This > happens for instance if

Re: Implement __cxa_thread_atexit

2017-11-20 Thread Mark Kettenis
> Date: Sun, 19 Nov 2017 23:13:05 +0100 > From: Joerg Sonnenberger > > On Sun, Nov 19, 2017 at 11:05:31PM +0100, Joerg Sonnenberger wrote: > > On Sun, Nov 19, 2017 at 10:04:45PM +0100, Mark Kettenis wrote: > > > Here is an update diff that implements __cxa_thread_atexit which is >

Re: armv7/sxie: gate def for emac

2017-11-20 Thread Mark Kettenis
> Date: Mon, 20 Nov 2017 04:25:38 +0200 > From: Artturi Alm > > Hi, > > i'm about to need this, thanks :) Thanks, committed. > --- a/sys/dev/fdt/sxiccmu_clocks.h > +++ b/sys/dev/fdt/sxiccmu_clocks.h > @@ -18,6 +18,7 @@ > #define A10_CLK_AHB_MMC1 35 > #define

Re: TCP/UDP/etc input w/o KERNEL_LOCK()

2017-11-20 Thread Alexander Bluhm
On Mon, Nov 20, 2017 at 04:22:25PM +0100, Martin Pieuchot wrote: > Diff below remove the KERNEL_LOCK() around all pr_input() routines. > It's a bit rough so I'd appreciate more tests before splitting it into > pieces. regress/lib/libpthread runs into a deadlock: ===> socket/1 cc -O2 -pipe

Re: faster printf

2017-11-20 Thread Todd C. Miller
On Sun, 19 Nov 2017 21:49:43 +0100, Theo Buehler wrote: > Since I am not aware of any further objections and most responses seemed > positive, I think it's time to move forward. > > For your convenience, I attached the diff again below. OK millert@ - todd

TCP/UDP/etc input w/o KERNEL_LOCK()

2017-11-20 Thread Martin Pieuchot
Diff below remove the KERNEL_LOCK() around all pr_input() routines. It's a bit rough so I'd appreciate more tests before splitting it into pieces. I'm using tasks to delay selwakeup/csignal calls, just like I did for bpf(4). Questions, Comments? Index: kern/uipc_socket.c

Re: ip_ipsp.h merge #ifdef _KERNEL

2017-11-20 Thread Alexander Bluhm
On Mon, Nov 20, 2017 at 02:25:01PM +0100, Martin Pieuchot wrote: > On 20/11/17(Mon) 14:15, Alexander Bluhm wrote: > > On Mon, Nov 20, 2017 at 12:37:35PM +0100, Martin Pieuchot wrote: > > > Merge multiple _KERNEL blocks, ok? > > > > My grep over /usr/src found these defines only within the kernel.

Re: ip_ipsp.h merge #ifdef _KERNEL

2017-11-20 Thread Martin Pieuchot
On 20/11/17(Mon) 14:15, Alexander Bluhm wrote: > On Mon, Nov 20, 2017 at 12:37:35PM +0100, Martin Pieuchot wrote: > > Merge multiple _KERNEL blocks, ok? > > My grep over /usr/src found these defines only within the kernel. > So perhaps we should not export them to user land. Indeed, updated diff

Re: ip_ipsp.h merge #ifdef _KERNEL

2017-11-20 Thread Alexander Bluhm
On Mon, Nov 20, 2017 at 12:37:35PM +0100, Martin Pieuchot wrote: > Merge multiple _KERNEL blocks, ok? My grep over /usr/src found these defines only within the kernel. So perhaps we should not export them to user land. bluhm > Index: netinet/ip_ipsp.h >

Re: avoid ifq_deq_begin,commit,rollback in sxie(4/armv7)

2017-11-20 Thread Eduard Nicodei
Hi David, I don't have your original message to reply to so I apologize if this doesn't appear as a reply to it. I tried your patch (it worked), but I noticed a curious thing: Linux uses both FIFOs but they only use the first data register [1]. So I slightly changed your patch to replicate the

ip_ipsp.h merge #ifdef _KERNEL

2017-11-20 Thread Martin Pieuchot
Merge multiple _KERNEL blocks, ok? Index: netinet/ip_ipsp.h === RCS file: /cvs/src/sys/netinet/ip_ipsp.h,v retrieving revision 1.188 diff -u -p -r1.188 ip_ipsp.h --- netinet/ip_ipsp.h 15 Nov 2017 11:48:59 - 1.188 +++