anchor.diff:  
   -type state() :: #state{}.
   -type capabilities() :: #diameter_caps{}.
  +
  +-define(NAS_APPLICATION_ID, 1).
  +-define(EAP_APPLICATION_ID, 5).
   
   %%----------------------------------------------------------------------
   %%  The ocs_diameter_auth_port_server API
  
positive.code: %% @hidden
  request2({_, _Identity}, SessionId, AuthRequestType, none, Address, Port,
  		PasswordReq, OHost, ORealm, DHost, DRealm, Request, CbProc,
  		#state{pwd_sup = Sup, method_prefer = pwd} = State) ->
  	start_fsm(Sup, Address, Port, 5, PasswordReq, SessionId,
  			AuthRequestType, OHost, ORealm, DHost, DRealm, [], CbProc, Request, State);
  request2(none, SessionId, AuthRequestType, none, Address, Port,
  		PasswordReq, OHost, ORealm, DHost, DRealm,
  		#diameter_nas_app_AAR{'User-Name' = [UserName], 'User-Password' = [Password]} = Request,
  		CbProc, #state{simple_auth_sup = Sup} = State) ->
  	start_fsm(Sup, Address, Port, 1, PasswordReq, SessionId,
  			AuthRequestType, OHost, ORealm, DHost, DRealm, [UserName, Password],
  			CbProc, Request, State);
  request2({legacy_nak, EapId, AlternateMethods},
  
negative.code: 		AuthSup :: pid(),
  		ClientAddress :: inet:ip_address(),
  		ClientPort :: inet:port_number(),
  		AppId :: ?NAS_APPLICATION_ID | ?EAP_APPLICATION_ID,
  		PasswordReq :: boolean(),
  		SessionId :: string(),
  		AuthRequestType :: 1..3,
  