Now storing 3d addresses instead of 2d addresses for seenby lists

This commit is contained in:
Michiel Broek
2001-12-12 22:10:38 +00:00
parent 2e2208bb97
commit c553fc3489
2 changed files with 11 additions and 3 deletions

View File

@@ -1,8 +1,7 @@
/*****************************************************************************
*
* File ..................: falists.c
* $Id$
* Purpose ...............: SEEN-BY and PATH lists
* Last modification date : 31-Jul-2001
*
*****************************************************************************
* Copyright (C) 1997-2001
@@ -80,7 +79,7 @@ void fill_list(fa_list **fap, char *str, fa_list **omit)
{
fa_list *tmp;
faddr *ta;
static unsigned int oldnet;
static unsigned int oldzone, oldnet;
char *buf, *p, *q, *r;
int allowskip = 1;
@@ -94,6 +93,10 @@ void fill_list(fa_list **fap, char *str, fa_list **omit)
p;
p = (q < r) ? strtok(q, " \t\n"):NULL, q = p ? p + strlen(p) + 1:r)
if ((ta = parsefnode(p))) {
if (ta->zone == 0)
ta->zone = oldzone;
else
oldzone = ta->zone;
if (ta->net == 0)
ta->net = oldnet;
else