summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-09-09 23:02:27 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-09-09 23:02:27 +0000
commitc71a806a39c81b1d4bf62b27ecc3bb809d341bef (patch)
treec8f5d9f63a120f945e19357782191b6313171852
parentd2cff34d9f1b1aa7ddf0a69cb5de1aba05592f30 (diff)
parent5a982408e9fb9f6e863ae2440cac86e628db23ee (diff)
downloadandroid-clat-android11-qpr1-s1-release.tar.gz
Change-Id: Ieff8f2a1867904cf73d038fd6de86d368cc382ea
-rw-r--r--clatd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clatd.c b/clatd.c
index 7063215..422cded 100644
--- a/clatd.c
+++ b/clatd.c
@@ -426,7 +426,8 @@ void event_loop(struct tun_data *tunnel) {
}
time_t now = time(NULL);
- if (last_interface_poll < (now - INTERFACE_POLL_FREQUENCY)) {
+ if (now >= (last_interface_poll + INTERFACE_POLL_FREQUENCY)) {
+ last_interface_poll = now;
if (ipv6_address_changed(Global_Clatd_Config.native_ipv6_interface)) {
break;
}