diff options
author | plutooo <tfy12vbr@student.lu.se> | 2013-08-06 09:42:53 -0700 |
---|---|---|
committer | plutooo <tfy12vbr@student.lu.se> | 2013-08-06 09:42:53 -0700 |
commit | 6e610749ebfc0bfe153ab88bcf76f4f9b24ff3fa (patch) | |
tree | 77d3a2b2d7a752809390703e58c390f730af2508 /core | |
parent | 659a1a06a92e3a1230d10b0d7ac12bb09fcdaafb (diff) |
core: Move ping request/response into ping.c
Diffstat (limited to 'core')
-rw-r--r-- | core/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ping.c b/core/ping.c index 37f1b7ae..d1cc182f 100644 --- a/core/ping.c +++ b/core/ping.c | |||
@@ -102,7 +102,7 @@ bool is_pinging(IP_Port ipp, uint64_t ping_id) // O(n) | |||
102 | id = (pos_pings + i) % PING_NUM_MAX; | 102 | id = (pos_pings + i) % PING_NUM_MAX; |
103 | 103 | ||
104 | // ping_id = 0 means match any id | 104 | // ping_id = 0 means match any id |
105 | if(ipp_eq(pings[id].ipp, ipp) && (ping_id == 0 || pings[id].id == ping_id)) { | 105 | if ((ipp_eq(pings[id].ipp, ipp) || ipp.ip.i == 0) && (pings[id].id == ping_id || ping_id == 0)) { |
106 | return true; | 106 | return true; |
107 | } | 107 | } |
108 | } | 108 | } |