https://redmine.named-data.net/https://redmine.named-data.net/favicon.ico?14759811232018-10-23T14:22:48ZNDN project issue tracking systemNFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=241922018-10-23T14:22:48ZJunxiao Shi
<ul><li><strong>Project</strong> changed from <i>NFD</i> to <i>NFD-android</i></li><li><strong>Subject</strong> changed from <i>NFD-Android's NFD daemon cannot start if enable multicast</i> to <i>NFD daemon cannot start if enable multicast</i></li><li><strong>Category</strong> changed from <i>Faces</i> to <i>jni</i></li><li><strong>Start date</strong> deleted (<del><i>10/23/2018</i></del>)</li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=241932018-10-23T14:25:01ZJunxiao Shi
<ul><li><strong>Subject</strong> changed from <i>NFD daemon cannot start if enable multicast</i> to <i>NFD daemon cannot start if enable UDP multicast</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/24193/diff?detail_id=21218">diff</a>)</li></ul><blockquote>
<p>Android doesn't allow application in user space to enter root</p>
</blockquote>
<p>Root your device, yo!</p>
NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=241942018-10-23T14:25:54ZAlex Afanasyev
<ul></ul><p>Junxiao, please avoid such comments. You're in a public space, so please be professional.</p>
NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=241962018-10-23T20:35:48ZDavide Pesavento
<ul><li><strong>Subject</strong> changed from <i>NFD daemon cannot start if enable UDP multicast</i> to <i>NFD daemon cannot start if UDP multicast is enabled</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=242572018-11-02T08:06:53ZDavide Pesavento
<ul><li><strong>Subject</strong> changed from <i>NFD daemon cannot start if UDP multicast is enabled</i> to <i>"Operation not permitted" error if UDP multicast is enabled</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=242642018-11-02T10:18:19ZJu Pan
<ul><li><strong>Assignee</strong> set to <i>Ju Pan</i></li><li><strong>Start date</strong> set to <i>11/02/2018</i></li><li><strong>Estimated time</strong> set to <i>10.00 h</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=242912018-11-07T23:17:52ZJu Pan
<ul></ul><p>I've read some documents and discussion online, it's been said that "Modern smart phones are equipped with multiple network interfaces such as Wi-Fi, cellular radio, Bluetooth, NFC, and others. Each of these interfaces could potentially be used to connect to the web. However, mobile platforms such as Android and iOS allow only one interface to be operational at any given time." </p>
<p>According to this, bindToDevice maybe not necessary for Android. So, I simply commented bindToDevice function out to test, and NFD-android now can automatically create udp v4 and v6 multicast faces when boot up. But I can't create a route using that v4 multicast face since NFD-android only support creating route by URI (on laptop we can create route by face id), but NFD does not allow creating udp multicast faces. </p>
<p>So, if I am on the correct track, next I may modify the NFD-android to support creating route by face id. Any comments? Thx.</p>
NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=242922018-11-08T09:44:15ZDavide Pesavento
<ul></ul><p>Ju Pan wrote:</p>
<blockquote>
<p>I've read some documents and discussion online, it's been said that "Modern smart phones are equipped with multiple network interfaces such as Wi-Fi, cellular radio, Bluetooth, NFC, and others. Each of these interfaces could potentially be used to connect to the web. However, mobile platforms such as Android and iOS allow only one interface to be operational at any given time." </p>
</blockquote>
<p>Well... what does "operational" mean? I think it simply means that the IP routing table on the device is setup in such a way that all outgoing traffic goes over the "best" interface at any given time (where "best" usually means WiFi is preferred to cellular). However the problem we have is with <em>incoming</em> traffic, not outgoing.</p>
<p>In any case, this discussion is moot because in virtually all cases we have exactly one interface where using a multicast face makes sense, and that is the (only) WiFi interface.</p>
<blockquote>
<p>According to this, bindToDevice maybe not necessary for Android. So, I simply commented bindToDevice function out to test, and NFD-android now can automatically create udp v4 and v6 multicast faces when boot up. But I can't create a route using that v4 multicast face since NFD-android only support creating route by URI (on laptop we can create route by face id), but NFD does not allow creating udp multicast faces. </p>
</blockquote>
<p>We've known for a while that this was a potential workaround. Please do submit a patch.</p>
<blockquote>
<p>So, if I am on the correct track, next I may modify the NFD-android to support creating route by face id. Any comments? Thx.</p>
</blockquote>
<p>Yes, that's a known limitation, see <a class="issue tracker-2 status-5 priority-2 priority-default closed" title="Feature: Support using FaceId in creating a route (Closed)" href="https://redmine.named-data.net/issues/3997">#3997</a> <a class="issue tracker-2 status-5 priority-2 priority-default closed" title="Feature: Provide a list of existing faces in "create new route" dialog (Closed)" href="https://redmine.named-data.net/issues/3998">#3998</a> <a class="issue tracker-1 status-5 priority-3 priority-high3 closed" title="Bug: Cannot add route to existing face (Closed)" href="https://redmine.named-data.net/issues/4632">#4632</a>.</p>
NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=243272018-11-19T19:16:44ZDavide Pesavento
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Code review</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=243282018-11-19T19:31:27ZJu Pan
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>80</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=243312018-11-20T08:42:46ZJu Pan
<ul><li><strong>Status</strong> changed from <i>Code review</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>80</i> to <i>100</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=243322018-11-20T09:01:50ZAlex Afanasyev
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>In Progress</i></li></ul><p>I wouldn't close is yet. This needs to have a corresponding update in NFD-android that actually enables multicast faces.</p>
NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=243332018-11-20T09:45:09ZJu Pan
<ul><li><strong>% Done</strong> changed from <i>100</i> to <i>80</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=243952018-11-28T09:25:35ZDavide Pesavento
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Code review</i></li></ul> NFD-android - Bug #4761: "Operation not permitted" error if UDP multicast is enabledhttps://redmine.named-data.net/issues/4761?journal_id=247122019-02-10T15:23:12ZDavide Pesavento
<ul><li><strong>Status</strong> changed from <i>Code review</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>80</i> to <i>100</i></li></ul><p>All done now.</p>