Hi, Here is a patchset which changes the Peer API (which is experimental, thus it's possible).
Each Peer object, once connected, will provide its local and remote IPv4 addresses through the IPv4 dict. Tomasz Bursztyka (6): doc: Improve Peer's API about local and remote IP address gdhcp: Call a function to tell about the given IP for a MAC gsupplicant: Add a getter for the Peer's interface address peer: Add a holder for peer's distant MAC address wifi: Set the MAC address of the distant peer peer: Changed IPv4 property to provide local and remote IP address doc/peer-api.txt | 10 ++++--- gdhcp/gdhcp.h | 5 ++++ gdhcp/server.c | 13 ++++++++ gsupplicant/gsupplicant.h | 1 + gsupplicant/supplicant.c | 9 +++++- include/peer.h | 2 ++ plugins/wifi.c | 2 ++ src/peer.c | 76 +++++++++++++++++++++++++++++++---------------- 8 files changed, 88 insertions(+), 30 deletions(-) -- 2.0.4 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman