https://redmine.graphics-muse.org/https://redmine.graphics-muse.org/favicon.ico?16278048512013-04-09T16:32:02ZGraphics Muse Issue Trackerpibox-network-config - Bug #179: If a network device has no configuration then it doesn't show up in the UIhttps://redmine.graphics-muse.org/issues/179?journal_id=5712013-04-09T16:32:02ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Fixed addNetInterfaces() to use a char * instead of INTERFACES_T * to cast the gpointer item. That fixes a bug in setting up the interfaces combo box.<br />Changed interface combo box realize function to base its content solely on the network devices found and not if the devices have a config in the interfaces file.<br />Changed the address type combo box realize function to make its initial setting based on the configuration for the first network device found, if any such configuration exists, or to default to DHDP.<br />Removed a couple of lines in loadInterfaces() that caused segv's - those lines were in the wrong place but the right place already had those lines, so the broken lines just needed to be removed.</p>
<p>These fixes were tested by using the <del>t option and moving data/interfaces to data/interfaces</del> so there was no configuration available for whatever devices were found under /sys/class/net.</p>