bridge.cc (6764:668d24eb6e0f) | bridge.cc (7668:aec271db42c9) |
---|---|
1 2/* 3 * Copyright (c) 2006 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 311 unchanged lines hidden (view full) --- 320void 321Bridge::BridgePort::recvFunctional(PacketPtr pkt) 322{ 323 std::list<PacketBuffer*>::iterator i; 324 325 pkt->pushLabel(name()); 326 327 for (i = sendQueue.begin(); i != sendQueue.end(); ++i) { | 1 2/* 3 * Copyright (c) 2006 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 311 unchanged lines hidden (view full) --- 320void 321Bridge::BridgePort::recvFunctional(PacketPtr pkt) 322{ 323 std::list<PacketBuffer*>::iterator i; 324 325 pkt->pushLabel(name()); 326 327 for (i = sendQueue.begin(); i != sendQueue.end(); ++i) { |
328 if (pkt->checkFunctional((*i)->pkt)) | 328 if (pkt->checkFunctional((*i)->pkt)) { 329 pkt->makeResponse(); |
329 return; | 330 return; |
331 } |
|
330 } 331 332 pkt->popLabel(); 333 334 // fall through if pkt still not satisfied 335 otherPort->sendFunctional(pkt); 336} 337 --- 22 unchanged lines hidden --- | 332 } 333 334 pkt->popLabel(); 335 336 // fall through if pkt still not satisfied 337 otherPort->sendFunctional(pkt); 338} 339 --- 22 unchanged lines hidden --- |