Added all UDP sources, sinks, routes-- not working yet

This commit is contained in:
Tom Henderson
2007-02-19 00:44:05 -08:00
parent 17a41557f2
commit 847aca86cf
3 changed files with 66 additions and 5 deletions

View File

@@ -41,7 +41,6 @@ void
ArpIpv4Interface::SendTo (Packet p, Ipv4Address dest)
{
Arp * arp = m_node->GetArp ();
printf("Arp %p\n", arp);
MacAddress hardwareDestination;
bool found = arp->Lookup (p, dest, GetDevice (), &hardwareDestination);
if (found)

View File

@@ -184,7 +184,6 @@ void
Arp::SendArpRequest (ArpCache const *cache, Ipv4Address to)
{
ArpHeader arp;
printf("%p %p %p %p\n", cache->GetDevice(), cache->GetInterface(), cache->GetDevice(), &to);
arp.SetRequest (cache->GetDevice ()->GetAddress (),
cache->GetInterface ()->GetAddress (),
cache->GetDevice ()->GetBroadcast (),