[Click] (no subject)

Cécile SAQUET cecile58 at hotmail.com
Thu Jul 19 09:57:08 EDT 2007


Dear Sir or Madam,
I would like to start click by adding olsr routing protocol.
So, I downloaded click-1.4.2, and OLSR Click I found on this web site:
http://www.olsr.org/click/
Now, I would like to start Click, so I have compile Click as a userlevel, and I copied the files /userlevel/click and conf/olsr_node.click
The problem is that when I do:
./click olsr_node.click, I have this error:
Router could not be initialized!

I show you the file olsr_node.click if that could help.

//node 1

elementclass OLSRnode{
$my_ip, $hello_period, $tc_period, $jitter |

AddressInfo(my_ip $my_ip);
AddressInfo(my_ether eth0:eth);

tun::KernelTun(my_ip/255.255.255.0)
todevice::ToDevice(eth0);
fromdevice::FromDevice(eth0);

arpclassifier::Classifier(20/0001, 20/0002, -)
arpquerier::ARPQuerier(my_ip, my_ether)
duplicate_set::OLSRDuplicateSet
olsrclassifier::OLSRClassifier(duplicate_set, my_ip)
check_header::OLSRCheckPacketHeader(duplicate_set);

//Input
classifier::Classifier(12/0800, 12/0806, -)
ip_classifier::IPClassifier(udp port 698,-)
get_src_addr::GetIPAddress(12)

fromdevice->
//Print("from net")->
HostEtherFilter(my_ether, DROP_OWN false, DROP_OTHER true)->
classifier[0]->Strip(14)->MarkIPHeader->
ip_classifier
classifier[1]->arpclassifier
classifier[2]->Discard

ip_classifier[0]->Print("got olsr pkt", 70)->
get_src_addr->Strip(28)->
check_header->
olsrclassifier

check_header[1]->Discard

//arphandling
arpclassifier[0]->ARPResponder(my_ip my_ether)->Print("arp_res to net")->todevice
arpclassifier[1]->[1]arpquerier
arpclassifier[2]->Discard


//olsr control message handling
neighbor_info::OLSRNeighborInfoBase(routing_table, tc_generator);
interface_info::OLSRInterfaceInfoBase(routing_table);
topology_info::OLSRTopologyInfoBase(routing_table);
link_info::OLSRLinkInfoBase(neighbor_info, interface_info, duplicate_set, routing_table)
routing_table::OLSRRoutingTable(neighbor_info, link_info, topology_info, interface_info);

process_hello::OLSRProcessHello(link_info, neighbor_info, interface_info, routing_table, tc_generator, my_ip);
process_tc::OLSRProcessTC(topology_info, neighbor_info, routing_table, my_ip);
process_mid::OLSRProcessMID(interface_info, routing_table);
forward::OLSRForward(duplicate_set, neighbor_info, my_ip)

olsrclassifier[0]->Discard
olsrclassifier[1]->process_hello->Discard
olsrclassifier[2]->process_tc
olsrclassifier[3]->process_mid
olsrclassifier[4]->[0]forward
olsrclassifier[5]->[0]forward

process_tc[0]->[0]forward
process_tc[1]->Discard

process_mid[0]->[0]forward
process_mid[1]->Discard

forward[0]->
OLSRAddPacketSeq(my_ip)->
UDPIPEncap(my_ip, 698, 255.255.255.255, 698)->
EtherEncap(0x0800, my_ether, ff:ff:ff:ff:ff:ff)->
Jitter($jitter,0)->
//Print("olsr_msg to net")->
todevice

forward[1]->Discard

//handling of other ip packets

dst_classifier::IPClassifier(dst my_ip, -);
get_next_hop::OLSRGetNextHop(routing_table)

tun->Print(from_kernel)->dst_classifier
ip_classifier[1]->dst_classifier
dst_classifier[0]->Print(to_kernel)->tun
dst_classifier[1]->get_next_hop
get_next_hop[0]->[0]arpquerier
get_next_hop[1]->Discard
arpquerier[0]->Print("ip_pkt to net")->todevice
arpquerier[1]->Print("arp_query to net")->todevice


tc_generator::OLSRTCGenerator($tc_period, neighbor_info, my_ip )
hello_generator::OLSRHelloGenerator( $hello_period, link_info, neighbor_info, interface_info, my_ip);

tc_generator->[1]forward
hello_generator->[1]forward
} //end of compound element

//insert node_address, hello_interval, tc_interval, jitter
OLSRnode(10.0.0.1, 1500, 4500, 0.5);

Thank you very much
Yours faithfully.




_________________________________________________________________
Le blog Messenger de Michel, candidat de la Nouvelle Star : analyse, news, coulisses… A découvrir !
http://michel-nouvelle-star2007.spaces.live.com/


More information about the click mailing list