# HG changeset patch # User Sebastien Decugis # Date 1272333011 -32400 # Node ID 50aaa4028967405b6da0a21b2a6e709d2942a69a # Parent 3019f6220122346965f8bf5d915aab3586a50aac Fix erroneous ABNF rules diff -r 3019f6220122 -r 50aaa4028967 extensions/dict_nasreq/dict_nasreq.c --- a/extensions/dict_nasreq/dict_nasreq.c Tue Apr 27 10:44:43 2010 +0900 +++ b/extensions/dict_nasreq/dict_nasreq.c Tue Apr 27 10:50:11 2010 +0900 @@ -3713,14 +3713,14 @@ struct dict_object * cmd; struct local_rules_definition rules[] = { { "Origin-AAA-Protocol", RULE_OPTIONAL, -1, 1 } - ,{ "NAS-Identifier", RULE_REQUIRED, -1, 1 } - ,{ "NAS-IP-Address", RULE_REQUIRED, -1, 1 } - ,{ "NAS-IPv6-Address", RULE_REQUIRED, -1, 1 } - ,{ "NAS-Port", RULE_REQUIRED, -1, 1 } - ,{ "NAS-Port-Id", RULE_REQUIRED, -1, 1 } - ,{ "NAS-Port-Type", RULE_REQUIRED, -1, 1 } - ,{ "Service-Type", RULE_REQUIRED, -1, 1 } - ,{ "Termination-Cause", RULE_REQUIRED, -1, 1 } + ,{ "NAS-Identifier", RULE_OPTIONAL, -1, 1 } + ,{ "NAS-IP-Address", RULE_OPTIONAL, -1, 1 } + ,{ "NAS-IPv6-Address", RULE_OPTIONAL, -1, 1 } + ,{ "NAS-Port", RULE_OPTIONAL, -1, 1 } + ,{ "NAS-Port-Id", RULE_OPTIONAL, -1, 1 } + ,{ "NAS-Port-Type", RULE_OPTIONAL, -1, 1 } + ,{ "Service-Type", RULE_OPTIONAL, -1, 1 } + ,{ "Termination-Cause", RULE_OPTIONAL, -1, 1 } }; CHECK_dict_search( DICT_COMMAND, CMD_BY_NAME, "Accounting-Answer", &cmd);