summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index ad7b17f..084ea99 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -23,6 +23,20 @@
FIXME: (nonurgent) allow bigger frequencies than 1 regular update in 6 seconds (?)
FIXME: propagation of metric=infinity into main routing table may or may not be good idea.
+ FIXME: mj wants us to be able to format attributes:
+
+ Each protocol can now register its own attribute class (protocol->attr_class,
+ set to EAP_xxx) and also a callback for naming and formatting of attributes.
+ The callback can return one of the following results:
+
+ GA_UNKNOWN Attribute not recognized.
+ GA_NAME Attribute name recognized and put to the buffer,
+ generic code should format the value.
+ GA_FULL Both attribute name and value put to the buffer.
+
+ Please update protocols generating dynamic attributes to provide
+ the attr_class and formatting hook.
+
*/
#define LOCAL_DEBUG
@@ -710,9 +724,7 @@ rip_rt_notify(struct proto *p, struct network *net, struct rte *new, struct rte
if (new->attrs->proto == p)
e->whotoldme = new->attrs->from;
- if (!e->metric) /* This is metric for external routes. Notice
- that I do honour it even if it comes from other protocol than this
- rip. That's okay: this way user can set his own value for external
+ if (!e->metric) /* That's okay: this way user can set his own value for external
routes in rip. */
e->metric = 5;
e->updated = e->changed = now;