Re: How to set MAC blacklist via 0.8.x C API?
- From: "W. Martin Borgert" <debacle debian org>
- To: networkmanager-list gnome org
- Subject: Re: How to set MAC blacklist via 0.8.x C API?
- Date: Fri, 12 Aug 2011 15:37:36 +0200
Quoting myself <debacle debian org>:
how can I set [802-3-ethernet] properties using the 0.8.x
C API? Especially the mac-address-blacklist parameter...
It's that easy:
NMSettingWired* wired;
...
GSList* blacklist = NULL;
blacklist = g_slist_append(blacklist, mac_addr1);
...
g_object_set(G_OBJECT(wired),
NM_SETTING_WIRED_MAC_ADDRESS_BLACKLIST, blacklist,
NULL);
g_slist_free(blacklist);
Cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]