Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(25)

Side by Side Diff: src/common/packet-metadata.cc

Issue 117046: Ns-3 Nix-vector Routing
Patch Set: Created 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /* 2 /*
3 * Copyright (c) 2006,2007 INRIA 3 * Copyright (c) 2006,2007 INRIA
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as 6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation; 7 * published by the Free Software Foundation;
8 * 8 *
9 * This program is distributed in the hope that it will be useful, 9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 size -= 4; 1188 size -= 4;
1189 NS_LOG_LOGIC ("size=" << size << ", typeUid="<<item.typeUid << 1189 NS_LOG_LOGIC ("size=" << size << ", typeUid="<<item.typeUid <<
1190 ", size="<<item.size<<", chunkUid="<<item.chunkUid<< 1190 ", size="<<item.size<<", chunkUid="<<item.chunkUid<<
1191 ", fragmentStart="<<extraItem.fragmentStart<<", fragmentEnd="<< 1191 ", fragmentStart="<<extraItem.fragmentStart<<", fragmentEnd="<<
1192 extraItem.fragmentEnd<< ", packetUid="<<extraItem.packetUid); 1192 extraItem.fragmentEnd<< ", packetUid="<<extraItem.packetUid);
1193 uint32_t tmp = AddBig (0xffff, m_tail, &item, &extraItem); 1193 uint32_t tmp = AddBig (0xffff, m_tail, &item, &extraItem);
1194 UpdateTail (tmp); 1194 UpdateTail (tmp);
1195 } 1195 }
1196 NS_ASSERT (size == 0); 1196 NS_ASSERT (size == 0);
1197 return totalSize; 1197 return totalSize;
1198 }
1199
1200 void
1201 PacketMetadata::SetNixVector (Ptr<NixVector> nixVector)
craigdo 2009/09/11 22:38:17 I'm a bit concerned about this. PacketMetadata is
jpelkey 2009/09/12 18:34:14 On 2009/09/11 22:38:17, craigdo wrote: > I'm a bit
1202 {
1203 m_nixVector = nixVector;
1204 }
1205
1206 Ptr<NixVector>
1207 PacketMetadata::GetNixVector (void) const
1208 {
1209 return m_nixVector;
1198 } 1210 }
1199 1211
1200 1212
1201 } // namespace ns3 1213 } // namespace ns3
1202 1214
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r511