      fprintf(stderr,
  	    "IPTapAgent(%s): sendpkt called while in read-only mode!\n",
  	    name());
-@@ -245,7 +596,7 @@
+@@ -245,7 +543,7 @@
    
    // send packet into the live network
    hdr_cmn* hc = HDR_CMN(p);

 	double now() { return Scheduler::instance().clock(); }
 };
 
--- dist/ns-allinone-2.26/ns-2.26/emulate/tcptap.cc	Wed Feb 26 15:08:42 2003
+++ ns-allinone-2.26/ns-2.26/emulate/tcptap.cc	Tue Aug 12 16:16:17 2003
@@ -97,6 +97,11 @@
       return (TCL_OK);
     }

  */
 int
 IPTapAgent::sendpkt(Packet* p)
@@ -236,7 +534,7 @@
   unsigned short dglen;
   struct ip *ipheader;
 
-  if (net_->mode() != O_RDWR && net_->mode() != O_WRONLY) {
