summaryrefslogtreecommitdiff
path: root/ipacm/src/IPACM_Iface.cpp
diff options
context:
space:
mode:
authorSkylar Chang <chiaweic@codeaurora.org>2014-05-24 01:26:42 -0700
committerSkylar Chang <chiaweic@codeaurora.org>2014-05-24 01:26:42 -0700
commit11240567c31e1788914d790a9197d61cc048fe34 (patch)
tree166ff61cccfdb10581aca0217403224429e19b23 /ipacm/src/IPACM_Iface.cpp
parent9e7caf98689f6cfd79d4c40b8711ba073bbcedcd (diff)
downloadipacfg-mgr-11240567c31e1788914d790a9197d61cc048fe34.tar.gz
IPACM: read XML configuration for bridge name
Currently IPACM hard-coded to only recognize bridge interface name as bridge0, in order to support more flexibility, we make it as configurable paramter in our IPACM configuration xml file. Change-Id: I6eee418a269dd9ecbd2c723b266466e5e2295da5
Diffstat (limited to 'ipacm/src/IPACM_Iface.cpp')
-rw-r--r--ipacm/src/IPACM_Iface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipacm/src/IPACM_Iface.cpp b/ipacm/src/IPACM_Iface.cpp
index 200b0d8..10bbcb6 100644
--- a/ipacm/src/IPACM_Iface.cpp
+++ b/ipacm/src/IPACM_Iface.cpp
@@ -865,11 +865,11 @@ int IPACM_Iface::ipa_get_if_index
memset(&ifr, 0, sizeof(struct ifreq));
(void)strncpy(ifr.ifr_name, if_name, sizeof(ifr.ifr_name));
- IPACMDBG("interface name %s\n", ifr.ifr_name);
+ IPACMDBG("interface name (%s)\n", ifr.ifr_name);
if (ioctl(fd,SIOCGIFINDEX , &ifr) < 0)
{
- IPACMERR("call_ioctl_on_dev: ioctl failed:\n");
+ IPACMERR("call_ioctl_on_dev: ioctl failed, interface name (%s):\n", ifr.ifr_name);
close(fd);
return IPACM_FAILURE;
}