equal
deleted
inserted
replaced
13 * |
13 * |
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 */ |
17 */ |
|
18 |
|
19 #define NS_LOG_APPEND_CONTEXT \ |
|
20 { \ |
|
21 if (m_node) \ |
|
22 { \ |
|
23 std::clog << "[node " << m_node->GetId () << " "; \ |
|
24 } \ |
|
25 else \ |
|
26 { \ |
|
27 std::clog << "["; \ |
|
28 } \ |
|
29 std::clog << "dev " << GetIfIndex () << "] "; \ |
|
30 } |
|
31 |
18 |
32 |
19 #include "ns3/log.h" |
33 #include "ns3/log.h" |
20 #include "ns3/queue.h" |
34 #include "ns3/queue.h" |
21 #include "ns3/simulator.h" |
35 #include "ns3/simulator.h" |
22 #include "ns3/mac48-address.h" |
36 #include "ns3/mac48-address.h" |
155 |
169 |
156 bool |
170 bool |
157 PointToPointNetDevice::TransmitStart (Ptr<Packet> p) |
171 PointToPointNetDevice::TransmitStart (Ptr<Packet> p) |
158 { |
172 { |
159 NS_LOG_FUNCTION (this << p); |
173 NS_LOG_FUNCTION (this << p); |
160 NS_LOG_LOGIC ("UID is " << p->GetUid () << ")"); |
174 NS_LOG_LOGIC ("UID is " << p->GetUid () << ", size=" << p->GetSize ()); |
161 // |
175 // |
162 // This function is called to start the process of transmitting a packet. |
176 // This function is called to start the process of transmitting a packet. |
163 // We need to tell the channel that we've started wiggling the wire and |
177 // We need to tell the channel that we've started wiggling the wire and |
164 // schedule an event that will be executed when the transmission is complete. |
178 // schedule an event that will be executed when the transmission is complete. |
165 // |
179 // |