summaryrefslogtreecommitdiffstats
path: root/proto/rip/config.Y
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-05-31 22:30:16 +0200
committerPavel Machek <pavel@ucw.cz>1999-05-31 22:30:16 +0200
commitb94bbe00278b0c6e84f34875367d85d34d08621b (patch)
treed0bdea327d5c333cbc7f46ce5919cdae69c3184c /proto/rip/config.Y
parentc7208da0b72dc7e4ff512edbecc62a99b0392c5a (diff)
downloadbird-b94bbe00278b0c6e84f34875367d85d34d08621b.tar
bird-b94bbe00278b0c6e84f34875367d85d34d08621b.zip
Added FIXME: mode broadcast randombly corrupts memory.
Small cleaning and bugfixes.
Diffstat (limited to 'proto/rip/config.Y')
-rw-r--r--proto/rip/config.Y11
1 files changed, 6 insertions, 5 deletions
diff --git a/proto/rip/config.Y b/proto/rip/config.Y
index c00ecc5..7443c44 100644
--- a/proto/rip/config.Y
+++ b/proto/rip/config.Y
@@ -58,11 +58,12 @@ rip_auth:
| NONE { $$=AT_NONE; }
;
+/* FIXME FIXME this corrupts memory */
rip_mode:
- BROADCAST { $$|=IM_BROADCAST; }
- | QUIET { $$|=IM_QUIET; }
- | NOLISTEN { $$|=IM_NOLISTEN; }
- | VERSION1 { $$|=IM_VERSION1 | IM_BROADCAST; }
+ BROADCAST { $$=IM_BROADCAST; }
+ | QUIET { $$=IM_QUIET; }
+ | NOLISTEN { $$=IM_NOLISTEN; }
+ | VERSION1 { $$=IM_VERSION1 | IM_BROADCAST; }
;
rip_iface_item:
@@ -72,7 +73,7 @@ rip_iface_item:
}
| MODE rip_mode {
struct rip_patt *k = rip_get_iface();
- k->mode = $2;
+ k->mode |= $2;
}
;