In the properties dialog of the Network Monitor plugin, the Network device field has a 10-character limit. This makes it unusable with valid network interfaces with names greater than 10 characters. Yes, long-named interfaces exist: one example is the 'easytether0' interface created when tethering an Android phone using EasyTether. This applies to xfce4-netload-plugin 1.1.0-1 which is the Latest Version according to Synaptic Package Manager. (Not listed in choices so I left 'unspecified')
The fix seems to be easy. Look here: http://git.xfce.org/panel-plugins/xfce4-netload-plugin/tree/panel-plugin/netload.c#n54 But I guess, there is a reason why the name is limited in length. I can see code to calculate the visual size of the plugin.
Created attachment 4941 patch for bug 9869
This patch increases the field width of the device name from 10 to 20 characters. The other text entry fields' lengths are unaffected (though logically separated). I could not find the code related to calculating plugin visual size. I'm guessing it won't matter though because the entry fields for 'max value' also relied on the same MAX_LENGTH constant despite being of narrower width.
git commit 215438c9e674b642cc757b2c1ec04700c8a1141a
(In reply to Mike Massonnet from comment #4) > git commit 215438c9e674b642cc757b2c1ec04700c8a1141a Mike, here only hager's patch really works. Ref. Predictable Network Interface Names cannot fit - xfce4-netload-plugin-1.2.2 https://bugzilla.redhat.com/show_bug.cgi?id=1157193
(In reply to Mike Massonnet from comment #4) > git commit 215438c9e674b642cc757b2c1ec04700c8a1141a Hey Mike. Can you please take a look at this again? The above fix doesn't seem to do the job... ;(
looking into this now
reverted previous commit: git commit fbda085f4ed1435c873bce8a70c11d06da63060a http://git.xfce.org/panel-plugins/xfce4-netload-plugin/commit/?id=fbda085f4 new commit to restrict iface length to 32 chars: git commit 18e253fc227c279fe2bdfd7e520bf17d23af9dfb http://git.xfce.org/panel-plugins/xfce4-netload-plugin/commit/?id=18e253fc2
git commit bc8b2eee5101f990df522339d141b711d614ba67 extra char for \0
for the records, linux iface names are limited to 16 chars (including \0)
Thanks for the quick fix!
Thanks guys.
*** Bug 9807 has been marked as a duplicate of this bug. ***