US Robotics USR2410 Manual de usuario Pagina 78

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 107
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 77
66
icmp_r_packet_classifier[2] -> ierw; //other icmp
icmp_r_packet_classifier[3] -> [3]rewriter; // stuff for the mesh network
icmp_r2_packet_classifier[0] -> to_host_encap; // icmp ping
icmp_r2_packet_classifier[1] -> [1]irw; //icmp ping reply
icmp_r2_packet_classifier[2] -> ip_to_extern; //other icmp
icmp_r2_packet_classifier[3] -> [2]rewriter; // stuff for the mesh network
// FILTER & REWRITE IP PACKETS FROM NON-GRID dev
arp_class[2] -> Strip(14) //data packets
-> data_chk :: CheckIPHeader
-> extern_for_me :: IPClassifier (dst host extern, -);
// Only forward packets destined for us!
extern_for_me [0] -> icmp_i_packet_classifier :: IPClassifier (icmp type echo-reply,icmp
type echo, proto icmp, -);
icmp_i_packet_classifier[0] -> [1]irw; //icmp ping reply is re-written
icmp_i_packet_classifier[1] -> to_host_encap; // icmp ping
icmp_i_packet_classifier[2] -> ierw; //other icmp
//send packet through [2]rewriter first, to check for previous mappings
//then check if the packet is for this router
//if not, send it to the rewriter
// stuff for the mesh network or for this router
icmp_i_packet_classifier[3] -> [2]rewriter;
//packets for other people don't belong in our network
extern_for_me [1] ->Discard;
// Grid mesh network packets
ls2 :: Idle;
ls :: LinkStat(ETH me:eth, SIZE 148 );
metric :: HopcountMetric();
am_gateway :: GridGatewayInfo(nb, true);
//am_gateway will set the ip address of packets to the best gateway
//BUT this is a gateway router
//so this functionality is not needed
Idle->am_gateway->Idle;
nb :: DSDVRouteTable(60000, 15000, 7500, 1000,
me:eth, me:ip,
MAX_HOPS 100,
METRIC metric,
GW am_gateway,
Vista de pagina 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 106 107

Comentarios a estos manuales

Sin comentarios