A ncurses UI for connman
Hi, I made an interface in ncurses and C for connman. Currently only basic features of connman are implemented (but the code can be easily extended). The UI is meant to be light and easy to use. As aforementioned, it's written in C, in pure ncurses with json-c and without glib. Here is the repo: https://github.com/eurogiciel-oss/connman-json-client In the 'packaging/' folder you will find packages files for Tizen (using gbs), Yocto and Archlinux (using AUR). Any feedback is appreciated. Regards, Thibault ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
question: settings and profiles for connman
Hejhej, I just wanted to ask, if it is possible to configure connman in a way that I can switch to specific settings depending on the location I am at (no problem if I have to trigger this switch) and maybe fall back to dhcpcd or other stuff like it, if I get to a new location. Thing is, I use my laptop in 4 different locations, each location has its own set of settings. 3 of them require me to use a specific ip, 1 even a specific firewall-setting (iptables). I'd like to configure one "profile" for each of those location (state the config for each of my devices [eth0, wlan0, wwan0]) and then let connman switch between these profiles - likely by using a connmanctl-command. If I am at a new location, then I'd fall back to all the fancy automation. Is that possible and if yes, how? I was locking at the documentation coming with connman, but they seem quite outdated in places (for example, I was reading `config-format.txt` and tried to create such a config at `/var/log/connman/work.conf`; but this was ignored completely). Also I wonder how to tell connman how to ignore some of my network-devices (I tried the command line option and the option `/etc/connman/main.cfg`), it seems to ignore me quite good on this. Any pointer how to do this or to some more up-to-date documentation would be appreciated (I am not registered on the list). -- BOFH Excuse #7: poor power conditioning -- best regards, - Benjamin Block pgpCnR_t362iS.pgp Description: PGP signature ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
[PATCH] ipconfig: Do not pass a NULL pointer to D-Bus
connman_inet_ifname() may return a NULL pointer e.g. if the interface does not exist in the kernel anymore but connman isn't yet aware of that. Passing a NULL pointer to D-Bus may result in an abort, so check the return value. --- src/ipconfig.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index b7e4f94..fa4c0d6 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -2166,9 +2166,11 @@ void __connman_ipconfig_append_ethernet(struct connman_ipconfig *ipconfig, if (ipconfig->index >= 0) { char *ifname = connman_inet_ifname(ipconfig->index); - connman_dbus_dict_append_basic(iter, "Interface", - DBUS_TYPE_STRING, &ifname); - g_free(ifname); + if (ifname) { + connman_dbus_dict_append_basic(iter, "Interface", + DBUS_TYPE_STRING, &ifname); + g_free(ifname); + } } if (ipdevice->address) -- 1.9.1 ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman