anchor.diff:  		'Origin-Host' = PgwHost, 'Origin-Realm' = PgwRealm,
   		'Auth-Request-Type' = ?'3GPP_SWX_AUTH-REQUEST-TYPE_AUTHORIZE_ONLY',
   		'MIP6-Agent-Info' = AgentInfo, 'Visited-Network-Identifier' = VPLMN,
  -		'Service-Selection' = [APN]} = Request, From, StateData) ->
  +		'MIP6-Feature-Vector' = [MIP6FeatureVector],
  +		'Service-Selection' = [APN]} = Request, From, StateData)
  +		when (MIP6FeatureVector band ?GTPv2_SUPPORTED) =:= ?GTPv2_SUPPORTED ->
   	[IMSI | _] = binary:split(Identity, <<$@>>, []),
  -	PGW = case AgentInfo of
  -		[#'3gpp_s6b_MIP6-Agent-Info'{
  -				'MIP-Home-Agent-Address' = HomeAgentAddress,
  -				'MIP-Home-Agent-Host' = [#'3gpp_s6b_MIP-Home-Agent-Host'{
  -						'Destination-Realm' = HomeAgentHostRealm,
  -						'Destination-Host' = HomeAgentHostHost}],
  -				'MIP6-Home-Link-Prefix' = HomeLinkPrefix}] ->
  -			[#'3gpp_swx_MIP6-Agent-Info'{
  -					'MIP-Home-Agent-Address' = HomeAgentAddress,
  -					'MIP-Home-Agent-Host' = [#'3gpp_swx_MIP-Home-Agent-Host'{
  -							'Destination-Realm' = HomeAgentHostRealm,
  -							'Destination-Host' = HomeAgentHostHost}],
  -					'MIP6-Home-Link-Prefix' = HomeLinkPrefix}];
  -		[] ->
  -			[]
  -	end,
  +	PGW = agent_info(AgentInfo),
   	NewStateData = StateData#statedata{from = From, request = Request,
   			identity = Identity, imsi = IMSI,
   			pgw_host = PgwHost, pgw_realm = PgwRealm,
  
positive.code: 			ResultCode = ?'DIAMETER_BASE_RESULT-CODE_UNABLE_TO_COMPLY',
  			Reply = response(ResultCode, NewStateData),
  			{stop, Reason, Reply, NewStateData}
  	end.
  
  -spec register(Event, StateData) -> Result
  	when
  
negative.code: pgw_id(_) ->
  	undefined.
  
  -spec agent_info(AgentInfo) -> Result
  	when
  		AgentInfo :: [#'3gpp_s6b_MIP6-Agent-Info'{}],
  		Result :: [#'3gpp_swx_MIP6-Agent-Info'{}].
  agent_info([#'3gpp_s6b_MIP6-Agent-Info'{
  		'MIP-Home-Agent-Address' = HomeAgentAddress,
  		'MIP-Home-Agent-Host' = [#'3gpp_s6b_MIP-Home-Agent-Host'{
  				'Destination-Realm' = HomeAgentHostRealm,
  				'Destination-Host' = HomeAgentHostHost}],
  		'MIP6-Home-Link-Prefix' = HomeLinkPrefix}]) ->
  	[#'3gpp_swx_MIP6-Agent-Info'{'MIP-Home-Agent-Address' = HomeAgentAddress,
  			'MIP-Home-Agent-Host' = [#'3gpp_swx_MIP-Home-Agent-Host'{
  					'Destination-Realm' = HomeAgentHostRealm,
  					'Destination-Host' = HomeAgentHostHost}],
  			'MIP6-Home-Link-Prefix' = HomeLinkPrefix}];
  agent_info([]) ->
  	[].
  
  