US Robotics USR2410 Manual do Utilizador Página 77

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 107
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 76
65
// Rewriting rules for ICMP packets
irw :: ICMPPingRewriter(extern, -);
// Rewriting rules for ICMP error packets
ierw :: ICMPRewriter(rewriter irw);
//output path for packets destined for the non-grid network
ip_to_extern :: GetIPAddress(16)
-> CheckIPHeader
-> EtherEncap(0x0800, extern:eth, extern_next_hop:eth)
-> extern_dev;
//ip_to_extern :: GetIPAddress(16)
// -> CheckIPHeader
// -> [0]arpq
// -> extern_dev;
rewriter[3]->ip_to_extern_class :: IPClassifier(dst host extern,dst host me, -);
ip_to_extern_class[0]->to_host_encap; //packets addressed to the router
ip_to_extern_class[1]->to_host_encap; //packets addressed to the router
ip_to_extern_class[2]->[0]rewriter; //packets for the outside
rewriter[0] -> ip_to_extern;
rewriter[2] -> ip_to_grid_class :: IPClassifier(dst host extern,dst host me, -);
ip_to_grid_class[0]->to_host_encap; //packets addressed to the router
ip_to_grid_class[1]-> to_host_encap;
ip_to_grid_class[2]-> [1]rewriter; //packets addressed to another machine go to
the grid mesh network
rewriter[1] -> ip_demux;
//ICMP Ping packets:
irw[0] -> ip_to_extern;
irw[1] -> ip_demux;
//OTHER ICMP packets
ierw[0] -> ip_demux;
ierw[1] -> to_host_encap; //packets that were not re-written
//FILTER PACKETS FROM THIS ROUTER
router_class [0]->icmp_r2_packet_classifier;
router_class [1]-> icmp_r_packet_classifier;
router_class [2]-> ip_input; //other packets
icmp_r_packet_classifier[0] -> to_host_encap; // icmp ping
icmp_r_packet_classifier[1] -> ip_input; //icmp ping reply
Vista de página 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 106 107

Comentários a estes Manuais

Sem comentários