View | Details | Raw Unified | Return to bug 14
Collapse All | Expand All

(-)a/samples/main-p2p-net-device-if.cc (-6 / +2 lines)
 Lines 125-140   int main (int argc, char *argv[]) Link Here 
125
   
125
   
126
  PointToPointNetDevice neta(&a);
126
  PointToPointNetDevice neta(&a);
127
127
128
  DropTailQueue dtqa;
128
  neta.AddQueue(new DropTailQueue);
129
130
  neta.AddQueue(&dtqa);
131
  neta.SetName("a.eth0"); 
129
  neta.SetName("a.eth0"); 
132
130
133
  PointToPointNetDevice netb(&b);
131
  PointToPointNetDevice netb(&b);
134
132
135
  DropTailQueue dtqb;
133
  netb.AddQueue(new DropTailQueue);
136
137
  netb.AddQueue(&dtqb);
138
  netb.SetName("b.eth0"); 
134
  netb.SetName("b.eth0"); 
139
135
140
  // bind the two NetDevices together by using a simple Channel
136
  // bind the two NetDevices together by using a simple Channel

Return to bug 14