anchor.diff:  					confirm_s = ConfirmS},
   			send_diameter_response(SessionID, AuthType,
   					 ?'DIAMETER_BASE_RESULT-CODE_MULTI_ROUND_AUTH', OH, OR,
  -					 EapPacket, PortServer),
  +					 EapPacket, PortServer, Request, StateData),
   			{next_state, confirm, NewStateData, ?TIMEOUT}
   	end.
   
  
positive.code: 			EapPacket = #eap_packet{code = failure, identifier = EapID},
  			send_diameter_response(SessionID, AuthType,
  					 ?'DIAMETER_BASE_RESULT-CODE_UNABLE_TO_COMPLY', OH, OR,
  					 EapPacket, PortServer),
  			{stop, {shutdown, SessionID}, StateData};
  		_ ->
  			commit7(StateData)
  	end.
  %% @hidden
  commit7(#statedata{scalar_p = ScalarP, eap_id = EapID, session_id = SessionID,
  		auth_req_type = AuthType, origin_host = OH, origin_realm = OR,
  	diameter_port_server = PortServer} = StateData)->
  	case ScalarP of
  		<<ScalarP_Valid:256>> when 1 < ScalarP_Valid, ScalarP_Valid < ?R ->
  			commit8(StateData);
  		_ScalarP_Out_of_Range ->
  			EapPacket = #eap_packet{code = failure, identifier = EapID},
  			send_diameter_response(SessionID, AuthType,
  					 ?'DIAMETER_BASE_RESULT-CODE_UNABLE_TO_COMPLY', OH, OR,
  					 EapPacket, PortServer),
  			{stop, {shutdown, SessionID}, StateData}
  	end.
  %% @hidden
  commit8(#statedata{eap_id = EapID, session_id = SessionID, scalar_p = ScalarP,
  		element_p = ElementP, scalar_s = ScalarS, element_s = ElementS,
  		s_rand = Srand, pwe = PWE, group_desc = GroupDesc, rand_func = RandFunc,
  		prf = PRF, auth_req_type = AuthType, origin_host = OH,
  
negative.code: 			EapPacket = #eap_packet{code = success, identifier = EapID},
  			send_diameter_response(SessionID, AuthType,
  					 ?'DIAMETER_BASE_RESULT-CODE_SUCCESS', OH, OR, EapPacket,
  					 PortServer, Request, StateData),
  			{stop, {shutdown, SessionID}, StateData#statedata{mk = MK, msk = MSK}};
  		{error, _Reason} ->
  			EapPacket1 = #eap_packet{code = failure, identifier = EapID},
  			send_diameter_response(SessionID, AuthType,
  					 ?'DIAMETER_BASE_RESULT-CODE_UNABLE_TO_COMPLY', OH, OR,
  					 EapPacket1, PortServer, Request, StateData),
  			{stop, {shutdown, SessionID}, StateData}
  	end.			
  
  