summaryrefslogtreecommitdiffstats
path: root/proto/rip
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-10 14:38:05 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-10 14:38:05 +0200
commit6f3849774ffe35e445e33ba03f041c1a84ba35f1 (patch)
tree999358ef8d238f0e88ef992df64e2a2df64156b8 /proto/rip
parentc7e46aae66861ce282e9b1a0140fa422763094ce (diff)
downloadbird-6f3849774ffe35e445e33ba03f041c1a84ba35f1.tar
bird-6f3849774ffe35e445e33ba03f041c1a84ba35f1.zip
Use ea_get_int instead of ea_find.
Diffstat (limited to 'proto/rip')
-rw-r--r--proto/rip/rip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 2c8c83d..edbc9c3 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -768,8 +768,8 @@ rip_rt_notify(struct proto *p, struct network *net, struct rte *new, struct rte
e->metric = 0;
e->whotoldme = IPA_NONE;
- e->tag = ea_find(attrs, EA_RIP_TAG)->u.data;
- e->metric = ea_find(attrs, EA_RIP_METRIC)->u.data;
+ e->tag = ea_get_int(attrs, EA_RIP_TAG, 0);
+ e->metric = ea_get_int(attrs, EA_RIP_METRIC, 1);
if (e->metric > P_CF->infinity)
e->metric = P_CF->infinity;