]> git.meshlink.io Git - meshlink/commitdiff
Remove handle_device_data function
authorSaverio Proto <zioproto@gmail.com>
Wed, 9 Apr 2014 17:53:33 +0000 (19:53 +0200)
committerSaverio Proto <zioproto@gmail.com>
Wed, 9 Apr 2014 17:53:33 +0000 (19:53 +0200)
src/net_packet.c

index 012085e22bf8e9beb40185e11febd90701ede2b1..41e303e2143900229ae7fdca1196633baa5ecde0 100644 (file)
@@ -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);
+//     }
+//}