ignore loopback interface as we will not be configuring that one

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40728 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-02-27 17:26:28 +00:00
parent 7ab22792c7
commit 1b2142ff26
@@ -391,6 +391,9 @@ InterfacesListView::SaveItems()
if (item == NULL)
continue;
if (strcmp(item->Name(), "loop") == 0)
continue;
NetworkSettings* ns = item->GetSettings();
// TODO : SetConfiguration doesn't use the interface settings file
ns->SetConfiguration();
@@ -440,6 +443,9 @@ InterfacesListView::_HandleNetworkMessage(BMessage* message)
&& message->FindString("device", &name) != B_OK)
return;
if (strcmp(name, "loop") == 0)
return;
InterfaceListItem* item = FindItem(name);
if (!item)
printf("InterfaceListItem %s not found!\n", name);