Re: Changing rdomain on an interface after the rdomain has already been set openbsd7.0 / 7.1snapshots

2022-04-02 Thread Tom Smyth
Hey David thanks for  reply makes more sens to me now ...  Thanks again...
Tom Smyth

On Sat, 2 Apr 2022 at 04:11, David Gwynne  wrote:
>
> loopback interfaces are special and kind of end up representing an rdomain 
> inside the kernel, which is where this restriction comes from.
>
> dlg
>
> > On 2 Apr 2022, at 09:36, Tom Smyth  wrote:
> >
> > Hello,
> >  I came across an issue that once a rdomain is set on a
> > loopback interface
> > you cant change it without destroying and re-creating the interace,
> > while it appears you can change a virtio  network interface, is this a
> > bug or a feature
> >
> > tobsd# ifconfig lo3 create
> > tobsd# ifconfig lo3 rdomain 3
> > tobsd# ifconfig lo3 inet 127.0.0.1/8
> > tobsd# ifconfig lo3
> > lo3: flags=8049 rdomain 3 mtu 32768
> > index 5 priority 0 llprio 3
> > groups: lo
> > inet6 ::1 prefixlen 128
> > inet6 fe80::1%lo3 prefixlen 64 scopeid 0x5
> > inet 127.0.0.1 netmask 0xff00
> > tobsd# ifconfig lo3 rdomain 0
> > ifconfig: SIOCSIFRDOMAIN: Operation not permitted
> > tobsd# ifconfig
> >
> >
> > --
> > Kindest regards,
> > Tom Smyth.
> >
>


-- 
Kindest regards,
Tom Smyth.



Re: Changing rdomain on an interface after the rdomain has already been set openbsd7.0 / 7.1snapshots

2022-04-01 Thread David Gwynne
loopback interfaces are special and kind of end up representing an rdomain 
inside the kernel, which is where this restriction comes from.

dlg

> On 2 Apr 2022, at 09:36, Tom Smyth  wrote:
> 
> Hello,
>  I came across an issue that once a rdomain is set on a
> loopback interface
> you cant change it without destroying and re-creating the interace,
> while it appears you can change a virtio  network interface, is this a
> bug or a feature
> 
> tobsd# ifconfig lo3 create
> tobsd# ifconfig lo3 rdomain 3
> tobsd# ifconfig lo3 inet 127.0.0.1/8
> tobsd# ifconfig lo3
> lo3: flags=8049 rdomain 3 mtu 32768
> index 5 priority 0 llprio 3
> groups: lo
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo3 prefixlen 64 scopeid 0x5
> inet 127.0.0.1 netmask 0xff00
> tobsd# ifconfig lo3 rdomain 0
> ifconfig: SIOCSIFRDOMAIN: Operation not permitted
> tobsd# ifconfig
> 
> 
> -- 
> Kindest regards,
> Tom Smyth.
> 



Changing rdomain on an interface after the rdomain has already been set openbsd7.0 / 7.1snapshots

2022-04-01 Thread Tom Smyth
Hello,
  I came across an issue that once a rdomain is set on a
loopback interface
you cant change it without destroying and re-creating the interace,
while it appears you can change a virtio  network interface, is this a
bug or a feature

tobsd# ifconfig lo3 create
tobsd# ifconfig lo3 rdomain 3
tobsd# ifconfig lo3 inet 127.0.0.1/8
tobsd# ifconfig lo3
lo3: flags=8049 rdomain 3 mtu 32768
index 5 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo3 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff00
tobsd# ifconfig lo3 rdomain 0
ifconfig: SIOCSIFRDOMAIN: Operation not permitted
tobsd# ifconfig


-- 
Kindest regards,
Tom Smyth.