diff options
-rw-r--r-- | nest/route.h | 7 | ||||
-rw-r--r-- | sysdep/unix/krt.h | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/nest/route.h b/nest/route.h index ad06275..cfad72f 100644 --- a/nest/route.h +++ b/nest/route.h @@ -30,7 +30,7 @@ struct fib_node { ip_addr prefix; /* In host order */ byte pxlen; byte flags; /* User-defined */ - byte pad0, pad1; /* ??? use ??? */ + byte x0, x1; /* User-defined */ struct fib_node *next; /* Next in hash chain */ }; @@ -76,13 +76,10 @@ typedef struct rtable { } rtable; 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 */ } net; -#define KRF_SEEN 1 /* Seen in kernel table during last scan */ -#define KRF_UPDATE 2 /* Need to update this entry */ - typedef struct rte { struct rte *next; net *net; /* Network this RTE belongs to */ diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h index 2da29e5..24122e9 100644 --- a/sysdep/unix/krt.h +++ b/sysdep/unix/krt.h @@ -12,6 +12,11 @@ #include "lib/krt-scan.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 */ extern struct protocol proto_unix_kernel; |