diff options
Diffstat (limited to 'core/ping.c')
-rw-r--r-- | core/ping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/ping.c b/core/ping.c index 47d6e163..d2b290a0 100644 --- a/core/ping.c +++ b/core/ping.c | |||
@@ -135,7 +135,7 @@ int send_ping_request(IP_Port ipp, clientid_t *client_id) | |||
135 | if (rc != sizeof(ping_id) + ENCRYPTION_PADDING) | 135 | if (rc != sizeof(ping_id) + ENCRYPTION_PADDING) |
136 | return 1; | 136 | return 1; |
137 | 137 | ||
138 | return sendpacket(ipp, (uint8_t *) &pk, sizeof(pk)); | 138 | return sendpacket(temp_net->sock, ipp, (uint8_t *) &pk, sizeof(pk)); |
139 | } | 139 | } |
140 | 140 | ||
141 | int send_ping_response(IP_Port ipp, clientid_t *client_id, uint64_t ping_id) | 141 | int send_ping_response(IP_Port ipp, clientid_t *client_id, uint64_t ping_id) |
@@ -160,10 +160,10 @@ int send_ping_response(IP_Port ipp, clientid_t *client_id, uint64_t ping_id) | |||
160 | if (rc != sizeof(ping_id) + ENCRYPTION_PADDING) | 160 | if (rc != sizeof(ping_id) + ENCRYPTION_PADDING) |
161 | return 1; | 161 | return 1; |
162 | 162 | ||
163 | return sendpacket(ipp, (uint8_t *) &pk, sizeof(pk)); | 163 | return sendpacket(temp_net->sock, ipp, (uint8_t *) &pk, sizeof(pk)); |
164 | } | 164 | } |
165 | 165 | ||
166 | int handle_ping_request(IP_Port source, uint8_t *packet, uint32_t length) | 166 | int handle_ping_request(void * object, IP_Port source, uint8_t *packet, uint32_t length) |
167 | { | 167 | { |
168 | pingreq_t *p = (pingreq_t *) packet; | 168 | pingreq_t *p = (pingreq_t *) packet; |
169 | int rc; | 169 | int rc; |
@@ -190,7 +190,7 @@ int handle_ping_request(IP_Port source, uint8_t *packet, uint32_t length) | |||
190 | return 0; | 190 | return 0; |
191 | } | 191 | } |
192 | 192 | ||
193 | int handle_ping_response(IP_Port source, uint8_t *packet, uint32_t length) | 193 | int handle_ping_response(void * object, IP_Port source, uint8_t *packet, uint32_t length) |
194 | { | 194 | { |
195 | pingres_t *p = (pingres_t *) packet; | 195 | pingres_t *p = (pingres_t *) packet; |
196 | int rc; | 196 | int rc; |