summaryrefslogtreecommitdiffstats
path: root/sysdep/linux
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-18 11:39:30 +0100
committerMartin Mares <mj@ucw.cz>2000-01-18 11:39:30 +0100
commitaa8761de9471dbe28149d990bdbc851c744f4e2b (patch)
tree1121c4a4ca8840e4009b7d84d36097dd697d5f0d /sysdep/linux
parentfb89b1a4ced5f3d847ecbc1d4b86a0cb47564ef7 (diff)
downloadbird-aa8761de9471dbe28149d990bdbc851c744f4e2b.tar
bird-aa8761de9471dbe28149d990bdbc851c744f4e2b.zip
Kernel route syncer now supports dynamic reconfiguration. Also it doesn't
depend on the startup counter hack now and uses a zero-time timer instead to make itself scheduled after normal protocol startup.
Diffstat (limited to 'sysdep/linux')
-rw-r--r--sysdep/linux/krt-scan.h4
-rw-r--r--sysdep/linux/netlink/krt-scan.h7
-rw-r--r--sysdep/linux/netlink/krt-set.h3
3 files changed, 11 insertions, 3 deletions
diff --git a/sysdep/linux/krt-scan.h b/sysdep/linux/krt-scan.h
index c5bf588..6c7e440 100644
--- a/sysdep/linux/krt-scan.h
+++ b/sysdep/linux/krt-scan.h
@@ -1,7 +1,7 @@
/*
* BIRD -- Linux Kernel Route Syncer -- Scanning
*
- * (c) 1998--1999 Martin Mares <mj@ucw.cz>
+ * (c) 1998--2000 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -16,4 +16,6 @@ struct krt_scan_status {
list temp_ifs; /* Temporary interfaces */
};
+static inline int krt_scan_params_same(struct krt_scan_params *o, struct krt_scan_params *n) { return 1; }
+
#endif
diff --git a/sysdep/linux/netlink/krt-scan.h b/sysdep/linux/netlink/krt-scan.h
index cdfe444..ec10a7f 100644
--- a/sysdep/linux/netlink/krt-scan.h
+++ b/sysdep/linux/netlink/krt-scan.h
@@ -1,7 +1,7 @@
/*
* BIRD -- Linux Kernel Netlink Route Syncer -- Scanning
*
- * (c) 1998--1999 Martin Mares <mj@ucw.cz>
+ * (c) 1998--2000 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -30,4 +30,9 @@ struct krt_scan_status {
list temp_ifs; /* Temporary interfaces */
};
+static inline int krt_scan_params_same(struct krt_scan_params *o, struct krt_scan_params *n)
+{
+ return o->async == n->async && o->table_id == n->table_id;
+}
+
#endif
diff --git a/sysdep/linux/netlink/krt-set.h b/sysdep/linux/netlink/krt-set.h
index 48df5ec..4f35e09 100644
--- a/sysdep/linux/netlink/krt-set.h
+++ b/sysdep/linux/netlink/krt-set.h
@@ -1,7 +1,7 @@
/*
* BIRD -- Unix Kernel Netlink Route Syncer -- Dummy Include File
*
- * (c) 1998--1999 Martin Mares <mj@ucw.cz>
+ * (c) 1998--2000 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -22,5 +22,6 @@ struct krt_set_status {
static inline void krt_set_construct(struct krt_config *c) { };
static inline void krt_set_start(struct krt_proto *p, int first) { };
static inline void krt_set_shutdown(struct krt_proto *p, int last) { };
+static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
#endif