Deleted Added
sdiff udiff text old ( 13766:4ecebdee8da4 ) new ( 13784:1941dc118243 )
full compact
1/*
2 * Copyright (c) 2003-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;

--- 145 unchanged lines hidden (view full) ---

154EtherTapBase::stopPolling()
155{
156 assert(event);
157 delete event;
158 event = NULL;
159}
160
161
162Port &
163EtherTapBase::getPort(const std::string &if_name, PortID idx)
164{
165 if (if_name == "tap")
166 return *interface;
167 return SimObject::getPort(if_name, idx);
168}
169
170bool
171EtherTapBase::recvSimulated(EthPacketPtr packet)
172{
173 if (dump)
174 dump->dump(packet);
175

--- 311 unchanged lines hidden ---