2008-03-07 Dan Williams <dcbw@redhat.com>
* src/nm-netlink.c - (nm_netlink_get_default_handle): mistakenly removed too much code in last commit; fix that - (get_link_cache): print error string git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3385 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2008-03-07 Dan Williams <dcbw@redhat.com>
|
||||||
|
|
||||||
|
* src/nm-netlink.c
|
||||||
|
- (nm_netlink_get_default_handle): mistakenly removed too much code in
|
||||||
|
last commit; fix that
|
||||||
|
- (get_link_cache): print error string
|
||||||
|
|
||||||
2008-03-07 Dan Williams <dcbw@redhat.com>
|
2008-03-07 Dan Williams <dcbw@redhat.com>
|
||||||
|
|
||||||
* src/nm-netlink.c
|
* src/nm-netlink.c
|
||||||
|
@@ -46,7 +46,7 @@ get_link_cache (void)
|
|||||||
link_cache = rtnl_link_alloc_cache (nlh);
|
link_cache = rtnl_link_alloc_cache (nlh);
|
||||||
|
|
||||||
if (G_UNLIKELY (!link_cache)) {
|
if (G_UNLIKELY (!link_cache)) {
|
||||||
nm_warning ("couldn't allocate netlink link cache.");
|
nm_warning ("couldn't allocate netlink link cache: %s", nl_geterror ());
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,6 +70,11 @@ nm_netlink_get_default_handle (void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nl_connect (def_nl_handle, NETLINK_ROUTE) < 0) {
|
||||||
|
nm_error ("couldn't connect to netlink: %s", nl_geterror ());
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return def_nl_handle;
|
return def_nl_handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user