Jacob B Schwartz: more click

Eddie Kohler eddietwo at cag.lcs.mit.edu
Wed May 17 17:55:33 EDT 2000


------- Forwarded Message

Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28])
	by amsterdam.lcs.mit.edu (8.8.7/8.8.7) with SMTP id PAA24979
	for <eddietwo at amsterdam.lcs.mit.edu>; Wed, 17 May 2000 15:18:41 -0400 (EDT)
Received: from GRAND-CENTRAL-STATION.MIT.EDU by MIT.EDU with SMTP
	id AA11588; Wed, 17 May 00 15:20:54 EDT
Received: from melbourne-city-street.MIT.EDU (MELBOURNE-CITY-STREET.MIT.EDU [18.69.0.45])
	by grand-central-station.MIT.EDU (8.9.2/8.9.2) with ESMTP id PAA15574
	for <eddietwo at MIT.EDU>; Wed, 17 May 2000 15:18:08 -0400 (EDT)
Received: from home-on-the-dome.mit.edu (HOME-ON-THE-DOME.MIT.EDU [18.184.0.46])
	by melbourne-city-street.MIT.EDU (8.9.3/8.9.2) with ESMTP id PAA14337
	for <eddietwo at MIT.EDU>; Wed, 17 May 2000 15:18:07 -0400 (EDT)
Received: (from quark at localhost) by home-on-the-dome.mit.edu (8.9.3)
	id PAA19409; Wed, 17 May 2000 15:18:07 -0400 (EDT)
Message-Id: <200005171918.PAA19409 at home-on-the-dome.mit.edu>
To: eddietwo at MIT.EDU
Subject: more click
Date: Wed, 17 May 2000 15:18:07 -0400
From: Jacob B Schwartz <quark at MIT.EDU>


Also, what is this line doing in the ICMP Error code:
    ((struct icmp_redirect *) icp)->gateway = p->dst_ip_anno().saddr();

It's setting the gateway field in the redirect ICMP packet that's
going out.  But where does that gateway address come from?
Hrm, so I see that the gateway is the result of the lookupIPRoute,
only--in my examination of the click LookupIPRoute--the result is
to decide which device to send the packet out on, but not to actually
encode in the packet the IP of any gateway on that device.  I don't
see this info in the config file.  How does LookupIPRoute know the
IP's of the gateways?

------- End of Forwarded Message




More information about the click mailing list