projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Updated subnet list handling. Subnets are added to two lists now, the
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
ae6fbed
..
d99bd28
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.4
5 2000/10/24 15:46:16
guus Exp $
+ $Id: net.c,v 1.35.4.4
6 2000/10/28 16:41:38
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-274,8
+274,9
@@
cp
int send_packet(ip_t to, vpn_packet_t *packet)
{
conn_list_t *cl;
int send_packet(ip_t to, vpn_packet_t *packet)
{
conn_list_t *cl;
+ subnet_t *subnet;
cp
cp
- if((
cl = lookup_conn_lis
t_ipv4(to)) == NULL)
+ if((
subnet = lookup_subne
t_ipv4(to)) == NULL)
{
if(debug_lvl >= DEBUG_TRAFFIC)
{
{
if(debug_lvl >= DEBUG_TRAFFIC)
{
@@
-285,6
+286,8
@@
cp
return -1;
}
return -1;
}
+
+ cl = subnet->owner;
/* If we ourselves have indirectdata flag set, we should send only to our uplink! */
/* If we ourselves have indirectdata flag set, we should send only to our uplink! */