소스 검색

dataipa: network-traffic: typo fix

* Typo in variable name

Change-Id: I08c7d6b04972c148f200bedd6538b532645ce718
Signed-off-by: Eliad Ben Yishay <[email protected]>
Eliad Ben Yishay 2 년 전
부모
커밋
ebe9383206
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      kernel-tests/network_traffic/UlsoPacket.h
  2. 1 1
      kernel-tests/network_traffic/bits_utils.h

+ 1 - 1
kernel-tests/network_traffic/UlsoPacket.h

@@ -205,7 +205,7 @@ public:
         uint32_t seqNum = 0;
         uint32_t seqNum = 0;
 
 
         if(isSegmented()){
         if(isSegmented()){
-            throw std::logic_error("A segmented packet cannot be segmented again!");
+            return vector<UlsoPacket>();
         }
         }
         unsigned int segmentSize = mQmapHeader.mSegmentSize.to_ulong();
         unsigned int segmentSize = mQmapHeader.mSegmentSize.to_ulong();
         vector<vector<uint8_t>> payloads = segmentPayload(segmentSize, mPayload);
         vector<vector<uint8_t>> payloads = segmentPayload(segmentSize, mPayload);

+ 1 - 1
kernel-tests/network_traffic/bits_utils.h

@@ -98,7 +98,7 @@ static vector<bool> bitsetToVector(const bitset<N>& bits){
     vector<bool> outVec;
     vector<bool> outVec;
 
 
     for(int i = N-1; i >= 0; i--){
     for(int i = N-1; i >= 0; i--){
-	    outVect.push_back(bits[i]);
+	    outVec.push_back(bits[i]);
     }
     }
     return outVec;
     return outVec;
 }
 }