summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-12-31 12:30:39 -0500
committerirungentoo <irungentoo@gmail.com>2014-12-31 12:30:39 -0500
commit8ff85f09cbc78da99b0a11f59728ad110b2a4a6b (patch)
tree6e8fbe33135e08ed979604498360ceaa47bbcc53 /toxcore/DHT.h
parent523cc20eb0ae5f67a3848d27c2cd3d910ac6da2f (diff)
Check if received ip family is valid for the onion packets.
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index 3f7a820e..547f3887 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -65,7 +65,9 @@
65 65
66/* Functions to transfer ips safely across wire. */ 66/* Functions to transfer ips safely across wire. */
67void to_net_family(IP *ip); 67void to_net_family(IP *ip);
68void to_host_family(IP *ip); 68
69/* return 0 on success, -1 on failure. */
70int to_host_family(IP *ip);
69 71
70typedef struct { 72typedef struct {
71 IP_Port ip_port; 73 IP_Port ip_port;