61
dsdv_nat_gw_kernel.click
// This file is based on the automatically generated file at Thu Dec 29 18:19:01 CST 2005
with the following command:
// make-dsdv-config.pl -i ath0 -a 192.168.0.3 -u
// the DSDV portion of this configuration performs routing lookup *after* the interface
// queue
//The NAT is based off of the mazu-nat and thomer-nat examples available in the
click/conf/ directory
//One device (ath0) will communicate with the grid mesh network using the DSDV protocol,
while the other
//device (eth0) will communicate with an external network.
//This router does not implement any packet forwarding or firewall functions
AddressInfo(
//me is the mesh network address of this router
me 192.168.0.3 00:11:95:FF:FD:DE,
//extern is the address of the non-grid device
extern 130.179.130.175 eth0:eth,
//extern_next_hop is the address of the gateway in the external network
extern_next_hop 00:0D:BD:5B:E9:49
);
//external network (non-mesh) gateway device
elementclass GatewayDevice {
$device |
from :: FromDevice($device)
-> output;
input -> q :: Queue(1024)
-> to :: ToDevice($device);
ScheduleInfo(from .1, to 1);
}
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
Comentarios a estos manuales