X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=9e4829a35b75fcefba7eaaab3d044db8c2071d00;hp=f6b14704607477544b6a34f54cf2144096fe2548;hb=67df7fb7e1c9eefe4bbc920fdc68b595ef28abd9;hpb=6c6535a4161d04accb3a22c51477e9f92ae34086 diff --git a/src/net.c b/src/net.c index f6b14704..9e4829a3 100644 --- a/src/net.c +++ b/src/net.c @@ -1,7 +1,7 @@ /* net.c -- most of the network code Copyright (C) 1998-2005 Ivo Timmermans, - 2000-2006 Guus Sliepen + 2000-2007 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -295,8 +295,10 @@ static void check_network_activity(fd_set * readset, fd_set * writeset) /* check input from kernel */ if(FD_ISSET(device_fd, readset)) { - if(read_packet(&packet)) + if(read_packet(&packet)) { + packet.priority = 0; route(myself, &packet); + } } /* check meta connections */