Re: How to set MAC blacklist via 0.8.x C API?



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]