From 1b16029c12a501752388523ebfe2981e7d7d7ed3 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 11 May 1999 09:53:45 +0000 Subject: Mensi updaty do ripu. Pridana passwd autentikace (netestovano). --- proto/rip/config.Y | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'proto/rip/config.Y') diff --git a/proto/rip/config.Y b/proto/rip/config.Y index 2030a62e..f7839f26 100644 --- a/proto/rip/config.Y +++ b/proto/rip/config.Y @@ -7,11 +7,7 @@ /* To add: -passive option (== do not send routing updates to this interface) version1 switch -multicast off option for interface - -interface mode broadcast/multicast/quiet */ @@ -28,9 +24,11 @@ struct rip_patt *rip_get_iface(void); CF_DECLS -CF_KEYWORDS(RIP, INFINITY, METRIC, PORT, PERIOD, GARBAGETIME, MODE, MULTICAST, BROADCAST, QUIET, DEFAULT) +CF_KEYWORDS(RIP, INFINITY, METRIC, PORT, PERIOD, GARBAGETIME, PASSWORD, + MODE, BROADCAST, QUIET, NOLISTEN, VERSION1, + AUTHENTICATION, NONE, PLAINTEXT, MD5) -%type rip_mode +%type rip_mode rip_auth CF_GRAMMAR @@ -49,15 +47,22 @@ RIP_CFG: | RIP_CFG PORT expr ';' { RIP_CFG->port = $3; } | RIP_CFG PERIOD expr ';' { RIP_CFG->period = $3; } | RIP_CFG GARBAGETIME expr ';' { RIP_CFG->garbage_time = $3; } + | RIP_CFG PASSWORD TEXT ';' { RIP_CFG->password = $3; } + | RIP_CFG AUTHENTICATION rip_auth ';' {RIP_CFG->authtype = $3; } | RIP_CFG rip_iface_list ';' ; +rip_auth: + PLAINTEXT { $$=AT_PLAINTEXT; } + | MD5 { $$=AT_MD5; } + | NONE { $$=AT_NONE; } + ; rip_mode: - MULTICAST { $$=IM_MULTICAST; } - | BROADCAST { $$=IM_BROADCAST; } - | QUIET { $$=IM_QUIET; } - | DEFAULT { $$=IM_DEFAULT; } + BROADCAST { $$|=IM_BROADCAST; } + | QUIET { $$|=IM_QUIET; } + | NOLISTEN { $$|=IM_NOLISTEN; } + | VERSION1 { $$|=IM_VERSION1 | IM_BROADCAST; } ; rip_iface_item: -- cgit v1.2.3