Преглед на файлове

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;
 
         if(isSegmented()){
-            throw std::logic_error("A segmented packet cannot be segmented again!");
+            return vector<UlsoPacket>();
         }
         unsigned int segmentSize = mQmapHeader.mSegmentSize.to_ulong();
         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;
 
     for(int i = N-1; i >= 0; i--){
-	    outVect.push_back(bits[i]);
+	    outVec.push_back(bits[i]);
     }
     return outVec;
 }