Hi, this patchset is still in RFC status meaning that it is not ready yet. The VPN connect and disconnect via DBus work in this version.
This version is rebased against current head 4fe07dfe Changes since v1: - created plugins/vpn.c which will handle connections to connman-vpnd daemon - functionality (most of it) from src/provider.c was moved to vpn/vpn-provider.c - connman-vpnd dbus API implemented TODO: - implement missing functionality (marked XXX in the patches) - fix bugs and test - rebase patches (especially #10 and #11 need some more work) - remove more cruft from src/provider.c and friends Cheers, Jukka Jukka Rissanen (13): doc: VPN daemon API descriptions ipconfig: Move IP address API into separate ipaddress.c file device: Move device creation func into device.c log: Give program name and version in log init vpn: New vpn daemon that handles vpn connections and clients test: Renamed old VPN scripts test: New VPN test script that connect to connman-vpnd provider: Provider disconnect function made available to plugin provider: Add more driver interface functions needed by vpnd plugin provider: Removed obsolete stuff provider: Adding new stuff plugin: Add VPN plugin that will interact with vpnd provider: Initially provider ipconfigs are now OFF .gitignore | 4 + Makefile.am | 77 +- Makefile.plugins | 110 +-- configure.ac | 9 +- doc/vpn-connection-api.txt | 122 ++++ doc/vpn-manager-api.txt | 50 ++ doc/vpn-overview.txt | 60 ++ include/device.h | 1 + include/inet.h | 1 - include/ipaddress.h | 56 ++ include/ipconfig.h | 19 +- include/provider.h | 13 +- include/vpn-dbus.h | 57 ++ plugins/iwmxsdk.c | 4 +- plugins/l2tp.c | 532 -------------- plugins/openconnect.c | 281 -------- plugins/openvpn.c | 310 -------- plugins/pptp.c | 338 --------- plugins/vpn.c | 1282 ++++++++++++++++++++++++--------- plugins/vpn.h | 48 -- plugins/vpnc.c | 343 --------- src/connman.h | 6 +- src/detect.c | 2 +- src/device.c | 178 +++++ src/dhcp.c | 4 +- src/inet.c | 173 ----- src/ipaddress.c | 200 ++++++ src/ipconfig.c | 167 +---- src/log.c | 5 +- src/main.c | 3 +- src/plugin.c | 2 +- src/provider.c | 1041 ++++----------------------- src/service.c | 8 +- src/tethering.c | 4 +- test/connect-provider | 73 ++ test/connect-vpn | 73 -- test/disconnect-vpn | 21 - test/remove-provider | 21 + test/vpn-connect | 24 + test/vpn-disconnect | 24 + test/vpn-get | 43 ++ unit/test-nat.c | 2 +- vpn/connman-vpn.service.in | 11 + vpn/main.c | 257 +++++++ vpn/plugins/l2tp.c | 532 ++++++++++++++ vpn/plugins/openconnect.c | 282 ++++++++ vpn/plugins/openvpn.c | 311 ++++++++ vpn/plugins/pptp.c | 338 +++++++++ vpn/plugins/vpn.c | 535 ++++++++++++++ vpn/plugins/vpn.h | 48 ++ vpn/plugins/vpnc.c | 344 +++++++++ vpn/vpn-dbus.conf | 14 + vpn/vpn-ipconfig.c | 452 ++++++++++++ vpn/vpn-manager.c | 142 ++++ vpn/vpn-polkit.conf | 10 + vpn/vpn-provider.c | 1685 ++++++++++++++++++++++++++++++++++++++++++++ vpn/vpn-provider.h | 121 ++++ vpn/vpn-rtnl.c | 1185 +++++++++++++++++++++++++++++++ vpn/vpn-rtnl.h | 65 ++ vpn/vpn.h | 100 +++ vpn/vpn.ver | 8 + 61 files changed, 8606 insertions(+), 3625 deletions(-) create mode 100644 doc/vpn-connection-api.txt create mode 100644 doc/vpn-manager-api.txt create mode 100644 doc/vpn-overview.txt create mode 100644 include/ipaddress.h create mode 100644 include/vpn-dbus.h delete mode 100644 plugins/l2tp.c delete mode 100644 plugins/openconnect.c delete mode 100644 plugins/openvpn.c delete mode 100644 plugins/pptp.c delete mode 100644 plugins/vpn.h delete mode 100644 plugins/vpnc.c create mode 100644 src/ipaddress.c create mode 100755 test/connect-provider delete mode 100755 test/connect-vpn delete mode 100755 test/disconnect-vpn create mode 100755 test/remove-provider create mode 100755 test/vpn-connect create mode 100755 test/vpn-disconnect create mode 100755 test/vpn-get create mode 100644 vpn/connman-vpn.service.in create mode 100644 vpn/main.c create mode 100644 vpn/plugins/l2tp.c create mode 100644 vpn/plugins/openconnect.c create mode 100644 vpn/plugins/openvpn.c create mode 100644 vpn/plugins/pptp.c create mode 100644 vpn/plugins/vpn.c create mode 100644 vpn/plugins/vpn.h create mode 100644 vpn/plugins/vpnc.c create mode 100644 vpn/vpn-dbus.conf create mode 100644 vpn/vpn-ipconfig.c create mode 100644 vpn/vpn-manager.c create mode 100644 vpn/vpn-polkit.conf create mode 100644 vpn/vpn-provider.c create mode 100644 vpn/vpn-provider.h create mode 100644 vpn/vpn-rtnl.c create mode 100644 vpn/vpn-rtnl.h create mode 100644 vpn/vpn.h create mode 100644 vpn/vpn.ver -- 1.7.9.5 _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
