pktfifo.cc (11263:8dcc6b40f164) | pktfifo.cc (11701:5e7599457b97) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 63 unchanged lines hidden (view full) --- 72 paramOut(cp, base + ".slack", slack); 73 paramOut(cp, base + ".number", number); 74 paramOut(cp, base + ".priv", priv); 75} 76 77void 78PacketFifoEntry::unserialize(const string &base, CheckpointIn &cp) 79{ | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 63 unchanged lines hidden (view full) --- 72 paramOut(cp, base + ".slack", slack); 73 paramOut(cp, base + ".number", number); 74 paramOut(cp, base + ".priv", priv); 75} 76 77void 78PacketFifoEntry::unserialize(const string &base, CheckpointIn &cp) 79{ |
80 packet = make_shared<EthPacketData>(16384); | 80 packet = make_shared |
81 packet->unserialize(base + ".packet", cp); 82 paramIn(cp, base + ".slack", slack); 83 paramIn(cp, base + ".number", number); 84 paramIn(cp, base + ".priv", priv); 85} 86 87void 88PacketFifo::serialize(const string &base, CheckpointOut &cp) const --- 28 unchanged lines hidden --- | 81 packet->unserialize(base + ".packet", cp); 82 paramIn(cp, base + ".slack", slack); 83 paramIn(cp, base + ".number", number); 84 paramIn(cp, base + ".priv", priv); 85} 86 87void 88PacketFifo::serialize(const string &base, CheckpointOut &cp) const --- 28 unchanged lines hidden --- |