 +# The following commented CFLAGS represent all flags that can be used when building even
 +# though many of them are not turned on by default. Some of the options need to be used
 +# together. e.g. STORE_PKTS and NUM_PKTS, USEEVENTS and RESWAP
-+#CFLAGS += -DUSEEVENTS -DADD_ETHER_OVERHEAD -DGETTIME_TSC -DPACKET_DECAPSULATE -DSTORE_PKTS
++#CFLAGS += -DUSEEVENTS -DADD_ETHER_OVERHEAD -DGETTIME_TSC -DSTORE_PKTS
 +#CFLAGS += -DNUM_PKTS=20000 -DBPF_BASED_PACKET_TIME -DRESWAP -DPRINT_SLOP -DDISPATCH_IN_RT
 +#CFLAGS += -DSELECT_TIMEOUT -SCHED_DEBUG -DMEASURE_EVENT_RATE -DMEASURE_DELAYS
 +#CFLAGS += -DHAVE_POLLER -DHAVE_KQUEUE
-+CFLAGS += -DUSEEVENTS -DADD_ETHER_OVERHEAD -DGETTIME_TSC -DPACKET_DECAPSULATE -DSTORE_PKTS 
++CFLAGS += -DUSEEVENTS -DADD_ETHER_OVERHEAD -DGETTIME_TSC -DSTORE_PKTS 
 +CFLAGS += -DRESWAP -DBPF_BASED_PACKET_TIME -DRESWAP -DPRINT_SLOP
 +CFLAGS += -DHAVE_POLLER -DHAVE_KQUEUE
 +LIB += -L../../../lib -L../../../../lib/libtb -levent -ltb -lcrypto

+  ih->daddr() = ntohl(ipheader->ip_dst.s_addr);
+  /* Dunno how to take care of ports yet */  
+
+  // syncing the clock to real-time for every packet
+  // so that further packet scheduling uses a reliable
+  // value of clock instead of some old value.

  protected:
 	int command(int argc, const char*const* argv);
--- dist-ns-allinone-2.26/ns-2.26/emulate/iptap.cc	Wed Feb 26 15:08:40 2003
+++ ns-allinone-2.26/ns-2.26/emulate/iptap.cc	Fri Apr 16 06:07:15 2004
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 1998 The Regents of the University of California.
