diff options
author | Chinh Tran <chinht@codeaurora.org> | 2010-11-02 14:27:40 -0700 |
---|---|---|
committer | Chinh Tran <chinht@codeaurora.org> | 2010-11-02 14:27:40 -0700 |
commit | 8621b5f2d863c5db0aac4464d5ce70b1b7558f89 (patch) | |
tree | 8752060e6d9a1807c82535be29c89dc1637dfa29 /cnd/src/cnd_process.cpp | |
parent | 8d0860a47146126fea6395b8fd3a4059b5dc0903 (diff) | |
download | android_external_connectivity-8621b5f2d863c5db0aac4464d5ce70b1b7558f89.tar.gz android_external_connectivity-8621b5f2d863c5db0aac4464d5ce70b1b7558f89.tar.bz2 android_external_connectivity-8621b5f2d863c5db0aac4464d5ce70b1b7558f89.zip |
external/connectivity: Use active gatewayAddress for default route
Cne should use the active gatewayAddress for default route if
the gatewayAddress saved by iproute2 is not available.
And Cne should not delete the default entry when Cne detects no
routing table exists.
Change-Id: I3027b277c72eec415eea67af1b1bc3d60350fc14
CRs-fixed: 262357
Diffstat (limited to 'cnd/src/cnd_process.cpp')
-rw-r--r-- | cnd/src/cnd_process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cnd/src/cnd_process.cpp b/cnd/src/cnd_process.cpp index 224d2fb..731d1d0 100644 --- a/cnd/src/cnd_process.cpp +++ b/cnd/src/cnd_process.cpp @@ -236,7 +236,7 @@ processCommand (int command, void *data, size_t datalen, CND_Token t) break; case CNE_IPROUTE2_REPLACE_DEFAULT_ENTRY_IN_MAIN: case CNE_IPROUTE2_REPLACE_HOST_DEFAULT_ENTRY_IN_MAIN: - cnd_iproute2::getInstance()->replaceDefaultEntryInMainTable(ifName); + cnd_iproute2::getInstance()->replaceDefaultEntryInMainTable(ifName, gatewayAddr); break; case CNE_IPROUTE2_ADD_HOST_IN_MAIN: cnd_iproute2::getInstance()->addCustomEntryInMainTable(ipAddr, ifName, gatewayAddr); |