Changeset 520:9b5422e5385c in freeDiameter
- Timestamp:
- Aug 27, 2010, 4:20:43 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgw_clients.c
r519 r520 454 454 if (nas_ip || nas_ip6) { 455 455 if (!valid_nas_info) { 456 if ( cli->type == RGW_CLI_NAS) {456 if ((!cli->is_local) && (cli->type == RGW_CLI_NAS)) { 457 457 TRACE_DEBUG(INFO, "Message received with a NAS-IP-Address or NAS-IPv6-Address different \nfrom the sender's. Please configure as Proxy if this is expected.\n Message discarded."); 458 458 return EINVAL; 459 459 } else { 460 /* the peer is configured as a proxy, so accept the message */460 /* the peer is configured as a proxy, or running on localhost, so accept the message */ 461 461 sSS ss; 462 462 … … 479 479 CHECK_SYS_DO( getnameinfo( (sSA *)&ss, sSAlen(&ss), &buf[0], sizeof(buf), NULL, 0, NI_NAMEREQD), 480 480 { 481 if (cli->is_local) { 482 CHECK_FCT( rgw_clients_get_origin(cli, &oh_str, &or_str) ); 483 goto diameter; 484 } 485 481 486 TRACE_DEBUG(INFO, "The NAS-IP*-Address cannot be DNS reversed in order to create the Origin-Host AVP; rejecting the message (translation is impossible)."); 482 487 return EINVAL;
Note: See TracChangeset
for help on using the changeset viewer.