projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initialize _reserved
[gem5.git]
/
dev
/
etherint.hh
diff --git
a/dev/etherint.hh
b/dev/etherint.hh
index dfc9f6fd6350ed62329860a244797ca512370366..bcdf0ae0652f614464c948786585f43777770fb5 100644
(file)
--- a/
dev/etherint.hh
+++ b/
dev/etherint.hh
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 200
3
The Regents of The University of Michigan
+ * Copyright (c) 200
2-2004
The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-31,8
+31,8
@@
* components.
*/
* components.
*/
-#ifndef __ETHERINT_HH__
-#define __ETHERINT_HH__
+#ifndef __
DEV_
ETHERINT_HH__
+#define __
DEV_
ETHERINT_HH__
#include <string>
#include <string>
@@
-54,13
+54,13
@@
class EtherInt : public SimObject
virtual ~EtherInt() {}
void setPeer(EtherInt *p);
virtual ~EtherInt() {}
void setPeer(EtherInt *p);
- virtual bool recvPacket(PacketPtr packet) = 0;
+
void recvDone() { peer->sendDone(); }
void recvDone() { peer->sendDone(); }
- bool sendPacket(PacketPtr packet)
- {
- return peer ? peer->recvPacket(packet) : true;
- }
virtual void sendDone() = 0;
virtual void sendDone() = 0;
+
+ bool sendPacket(PacketPtr packet)
+ { return peer ? peer->recvPacket(packet) : true; }
+ virtual bool recvPacket(PacketPtr packet) = 0;
};
};
-#endif // __ETHERINT_HH__
+#endif // __
DEV_
ETHERINT_HH__