From: Saverio Proto Date: Wed, 9 Apr 2014 17:53:33 +0000 (+0200) Subject: Remove handle_device_data function X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=704f0cef66f94c2b17c8e591137c21b6af74fc7b;p=meshlink Remove handle_device_data function --- diff --git a/src/net_packet.c b/src/net_packet.c index 012085e2..41e303e2 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -1040,14 +1040,14 @@ void handle_incoming_vpn_data(void *data, int flags) { receive_udppacket(n, &pkt); } -void handle_device_data(void *data, int flags) { - vpn_packet_t packet; - - packet.priority = 0; - - if(devops.read(&packet)) { - myself->in_packets++; - myself->in_bytes += packet.len; - route(myself, &packet); - } -} +//void handle_device_data(void *data, int flags) { +// vpn_packet_t packet; +// +// packet.priority = 0; +// +// if(devops.read(&packet)) { +// myself->in_packets++; +// myself->in_bytes += packet.len; +// route(myself, &packet); +// } +//}