From 100025e2a97191de322dbfd95d73849a4ee2aaa1 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 3 Nov 2010 10:24:44 +0100 Subject: element: Add peer IPv4 property --- src/element.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/element.c b/src/element.c index a5700f2a..299f85f6 100644 --- a/src/element.c +++ b/src/element.c @@ -777,6 +777,12 @@ int connman_element_get_value(struct connman_element *element, id, value); *((char **) value) = element->ipv4.address; break; + case CONNMAN_PROPERTY_ID_IPV4_PEER: + if (element->ipv4.peer == NULL) + return connman_element_get_value(element->parent, + id, value); + *((char **) value) = element->ipv4.peer; + break; case CONNMAN_PROPERTY_ID_IPV4_NETMASK: if (element->ipv4.netmask == NULL) return connman_element_get_value(element->parent, -- cgit v1.2.3