diff options
author | Ondrej Filip <feela@network.cz> | 2004-07-13 16:46:14 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-07-13 16:46:14 +0200 |
commit | bc956fcab678f591137cba2a0ebe80c0812437db (patch) | |
tree | fdd40cd36d69559e1a0997cfaa7e58ae208a3f00 /nest/config.Y | |
parent | 32d3228d864cb6af8c679a7742f4b0a71c2facc0 (diff) | |
download | bird-bc956fcab678f591137cba2a0ebe80c0812437db.tar bird-bc956fcab678f591137cba2a0ebe80c0812437db.zip |
MD5 authentication in OSPF works. :-)
Diffstat (limited to 'nest/config.Y')
-rw-r--r-- | nest/config.Y | 7 |
1 files changed, 4 insertions, 3 deletions
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 <mj@ucw.cz> + * (c) 2004 Ondrej Filip <feela@network.cz> * * 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; } |