On 5 May 2015, at 01:47, Justin Cormack <[email protected]> wrote: > > On 5 May 2015 at 09:35, Anil Madhavapeddy <[email protected]> wrote: >> On 4 May 2015, at 14:50, Justin Cormack <[email protected]> wrote: >>> >>> I have sent a pull request to fix the requires root issue - it was >>> trying to bring the interface up which requires root, so long as it is >>> already up this is fine, I use: >>> >>> sudo ip tuntap add dev tap0 mode tap user justin && sudo ip link set dev >>> tap0 up >>> >>> to create interfaces. The disappearing thing is the interface going >>> down again, it is not a persistence thing, as it is not actually >>> removed. >>> >> >> This almost works for me, except that I still get a permissions error >> since the `set_up_and_running` ioctl call checks for IFF_MULTICAST and >> IFF_BROADCAST in addition to IFF_UP and IFF_RUNNING. These aren't >> set when I create a persistent tun with `otun add tun10 tun`, but it >> shouldn't matter much if those aren't set. Any particular reason that >> we need them? > > Odd, I can't replicate that, in fact I can't create any interfaces > which don't have multicast and broadcast set. On the other hand, > IFF_UP is the only flag that actually matters at this point, so just > testing for that would be sufficient.
How are you creating the tun interfaces? I'm using the ocaml-tuntap otun binary, which may not be calling an ioctl to set those flags. -anil _______________________________________________ MirageOS-devel mailing list [email protected] http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
