Re: switch: allow datapath_id and maxflow ioctls for non-root

2020-08-14 Thread Klemens Nanni
On Fri, Jul 31, 2020 at 06:28:32AM +0200, Klemens Nanni wrote: > ifconfig(8) detects switch(4) through its unique SIOCSWSDPID ioctl and > further does another switch specific ioctl for the default output > regardless of configuration and/or members: > > SIOCSWSDPID struct ifbrparam >

Re: switch: allow datapath_id and maxflow ioctls for non-root

2020-08-05 Thread Klemens Nanni
On Wed, Aug 05, 2020 at 11:00:00AM +1000, David Gwynne wrote: > can't they be caught by the default case now? Obviously... Index: net/if.c === RCS file: /cvs/src/sys/net/if.c,v retrieving revision 1.617 diff -u -p -r1.617 if.c ---

Re: switch: allow datapath_id and maxflow ioctls for non-root

2020-08-04 Thread David Gwynne
> On 31 Jul 2020, at 14:28, Klemens Nanni wrote: > > ifconfig(8) detects switch(4) through its unique SIOCSWSDPID ioctl and > further does another switch specific ioctl for the default output > regardless of configuration and/or members: > > SIOCSWSDPID struct ifbrparam >

Re: switch: allow datapath_id and maxflow ioctls for non-root

2020-07-30 Thread Klemens Nanni
On Fri, Jul 31, 2020 at 06:28:32AM +0200, Klemens Nanni wrote: > ifconfig(8) detects switch(4) through its unique SIOCSWSDPID ioctl and > further does another switch specific ioctl for the default output > regardless of configuration and/or members: > > SIOCSWSDPID struct ifbrparam >

switch: allow datapath_id and maxflow ioctls for non-root

2020-07-30 Thread Klemens Nanni
ifconfig(8) detects switch(4) through its unique SIOCSWSDPID ioctl and further does another switch specific ioctl for the default output regardless of configuration and/or members: SIOCSWSDPID struct ifbrparam Set the datapath_id in the OpenFlow protocol of the switch