From bc956fcab678f591137cba2a0ebe80c0812437db Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 13 Jul 2004 14:46:14 +0000 Subject: MD5 authentication in OSPF works. :-) --- nest/config.Y | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'nest') diff --git a/nest/config.Y b/nest/config.Y index 7a83a60..744c069 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -2,6 +2,7 @@ * BIRD -- Core Configuration * * (c) 1998--2000 Martin Mares + * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -208,7 +209,7 @@ password_item: password_item_begin: PASSWORD TEXT { - static int id = 0; + static int id = 1; this_p_item = cfg_alloc(sizeof (struct password_item)); this_p_item->password = $2; this_p_item->genfrom = 0; @@ -226,7 +227,7 @@ password_item_params: | GENERATE TO datetime ';' password_item_params { this_p_item->gento = $3; } | ACCEPT FROM datetime ';' password_item_params { this_p_item->accfrom = $3; } | ACCEPT TO datetime ';' password_item_params { this_p_item->accto = $3; } - | ID expr ';' password_item_params { this_p_item->id = $2; } + | ID expr ';' password_item_params { this_p_item->id = $2; if ($2 <= 0) cf_error("Password ID has to be greated than zero."); } ; password_list: @@ -254,7 +255,7 @@ password_begin: this_p_item->gento = TIME_INFINITY; this_p_item->accfrom = 0; this_p_item->accto = TIME_INFINITY; - this_p_item->id = 0; + this_p_item->id = 1; add_tail(this_p_list, &this_p_item->n); $$ = this_p_list; } -- cgit v1.2.3