Commit 7cd3b489 authored by berge's avatar berge
Browse files

Fixed some other padding problems in CN TCs

Fixed nonceIndex handling in f_setMipHeader() (do not do anything if values are allready non-zero)
Fixed wrong H flags in CN BU
parent 5fa63aba
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -166,6 +166,8 @@ group rfc3775Mipv6_ExtHdrFunctions {

			// TODO Check this 
			if (f_isPresentNonceIndices(p_mobileHeader.mobileMessage.bindingUpdateMsg, v_position) == e_success) {
				if (p_mobileHeader.mobileMessage.bindingUpdateMsg.mobileOptions[v_position].mobileOptNonceIndices.homeNonceIndex == c_uInt16Zero
					and p_mobileHeader.mobileMessage.bindingUpdateMsg.mobileOptions[v_position].mobileOptNonceIndices.careOfNonceIndex == c_uInt16Zero) {
					if(vc_mobileSec.mnSimuParams.receivedHomeNonceIndex != c_uInt16Zero
						and vc_mobileSec.mnSimuParams.receivedCareOfNonceIndex != c_uInt16Zero) {
							p_mobileHeader.mobileMessage.bindingUpdateMsg.mobileOptions[v_position].mobileOptNonceIndices.homeNonceIndex
@@ -178,6 +180,7 @@ group rfc3775Mipv6_ExtHdrFunctions {
						return e_error;	
					}
				}
			}	
			if (f_isPresentBindingAuthorizationDataOption(p_mobileHeader.mobileMessage.bindingUpdateMsg, v_position) == e_success) {
				if(vc_mobileSec.mnSimuParams.receivedHomeKeygenToken != c_64ZeroBits
					and vc_mobileSec.mnSimuParams.receivedCareOfKeygenToken != c_64ZeroBits) {