0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

KRF_* flags moved to krt.h as they are internal to kernel syncer,

fib->pad0,pad1 renamed to x0,x1 and in case of struct net x0 is reserved
for kernel syncing as well.
This commit is contained in:
Martin Mares 1998-12-07 10:15:42 +00:00
parent f6bd206607
commit 12df4d909b
2 changed files with 7 additions and 5 deletions

View File

@ -30,7 +30,7 @@ struct fib_node {
ip_addr prefix; /* In host order */ ip_addr prefix; /* In host order */
byte pxlen; byte pxlen;
byte flags; /* User-defined */ byte flags; /* User-defined */
byte pad0, pad1; /* ??? use ??? */ byte x0, x1; /* User-defined */
struct fib_node *next; /* Next in hash chain */ struct fib_node *next; /* Next in hash chain */
}; };
@ -76,13 +76,10 @@ typedef struct rtable {
} rtable; } rtable;
typedef struct network { typedef struct network {
struct fib_node n; /* FIB flags hold kernel sync info (KRF_...) */ struct fib_node n; /* FIB flags,x0 reserved for kernel syncer */
struct rte *routes; /* Available routes for this network */ struct rte *routes; /* Available routes for this network */
} net; } net;
#define KRF_SEEN 1 /* Seen in kernel table during last scan */
#define KRF_UPDATE 2 /* Need to update this entry */
typedef struct rte { typedef struct rte {
struct rte *next; struct rte *next;
net *net; /* Network this RTE belongs to */ net *net; /* Network this RTE belongs to */

View File

@ -12,6 +12,11 @@
#include "lib/krt-scan.h" #include "lib/krt-scan.h"
#include "lib/krt-set.h" #include "lib/krt-set.h"
/* Flags stored in net->n.flags */
#define KRF_SEEN 1 /* Seen in kernel table during last scan */
#define KRF_UPDATE 2 /* Need to update this entry */
/* sync-rt.c */ /* sync-rt.c */
extern struct protocol proto_unix_kernel; extern struct protocol proto_unix_kernel;