Mercurial > hg > freeDiameter
comparison freeDiameter/routing_dispatch.c @ 241:84460aa8d77b
NAI routing became RFC, update the reference...
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 18 Mar 2010 17:24:16 +0900 |
parents | 965f5971dc23 |
children | ad6c0118fb50 |
comparison
equal
deleted
inserted
replaced
240:42e971738a37 | 241:84460aa8d77b |
---|---|
334 } | 334 } |
335 | 335 |
336 return; | 336 return; |
337 } | 337 } |
338 | 338 |
339 /* Test if a User-Name AVP contains a Decorated NAI -- RFC4282, draft-ietf-dime-nai-routing-04 */ | 339 /* Test if a User-Name AVP contains a Decorated NAI -- RFC4282, RFC5729 */ |
340 static int is_decorated_NAI(union avp_value * un) | 340 static int is_decorated_NAI(union avp_value * un) |
341 { | 341 { |
342 int i; | 342 int i; |
343 TRACE_ENTRY("%p", un); | 343 TRACE_ENTRY("%p", un); |
344 | 344 |
686 return 0; | 686 return 0; |
687 } | 687 } |
688 } else { | 688 } else { |
689 /* Destination-Host was not set, and Destination-Realm is matching : we may handle or pass to a fellow peer */ | 689 /* Destination-Host was not set, and Destination-Realm is matching : we may handle or pass to a fellow peer */ |
690 | 690 |
691 /* test for decorated NAI (draft-ietf-dime-nai-routing-04 section 4.4) */ | 691 /* test for decorated NAI (RFC5729 section 4.4) */ |
692 if (is_decorated_NAI(un_val)) { | 692 if (is_decorated_NAI(un_val)) { |
693 /* Handle the decorated NAI */ | 693 /* Handle the decorated NAI */ |
694 CHECK_FCT_DO( process_decorated_NAI(un_val, dr_val), | 694 CHECK_FCT_DO( process_decorated_NAI(un_val, dr_val), |
695 { | 695 { |
696 /* If the process failed, we assume it is because of the AVP format */ | 696 /* If the process failed, we assume it is because of the AVP format */ |