48
Click Modular Router Configuration Files
dsdv_kernel.click
// This file automatically generated at Thu Feb 2 10:57:28 CST 2006 with the following
command:
// make-dsdv-config.pl -k -i ath0 -a 192.168.0.2
// this configuration performs routing lookup *after* the interface
// queue, and only works with one interface.
AddressInfo(me 192.168.0.2 ath0:eth);
elementclass TTLChecker {
// expects grid packets with MAC headers --- place on output path to
// decrement the IP TTL for next hop and provide traceroute support.
//
// push -> push
//
// output [0] passes through the Grid MAC packets
//
// output [1] produces ICMP error packets to be passed back to IP
// routing layer
input -> cl :: Classifier(19/03, -);
cl [1] -> output; // don't try to dec ttl for non-IP packets...
cl [0]
-> MarkIPHeader(82)
-> cl2 :: IPClassifier(src host != me, -);
cl2 [0]-> dec :: DecIPTTL; // only decrement ttl for packets we don't originate
cl2 [1] -> output;
dec [0] -> output;
dec [1] -> ICMPError(me, 11, 0) -> [1] output;
};
li :: GridLocationInfo2(0, 0, LOC_GOOD false);
elementclass FixupGridHeaders {
$li | // LocationInfo element
input
-> FixSrcLoc($li)
-> SetGridChecksum
-> output;
Kommentare zu diesen Handbüchern