diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-03 10:24:44 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-03 10:24:44 +0100 |
commit | 100025e2a97191de322dbfd95d73849a4ee2aaa1 (patch) | |
tree | 7c6d7e9e3ccc4aa2e20561cceac44eea115ea350 /src | |
parent | 5fe09afa06bd65bc089db0c7dfb836601a3d3266 (diff) | |
download | connman-100025e2a97191de322dbfd95d73849a4ee2aaa1.tar.gz connman-100025e2a97191de322dbfd95d73849a4ee2aaa1.tar.bz2 connman-100025e2a97191de322dbfd95d73849a4ee2aaa1.zip |
element: Add peer IPv4 property
Diffstat (limited to 'src')
-rw-r--r-- | src/element.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, |