> Thanks, is there any example to show how to use these handlers? > Furthermore, how let each node know the new routing table from the > central controller?
Check the ControlSocket Element documentation. assuming userlevel: Step A) Use a ControlSocket Element in the config Step B) give the element a name: e.g. " ... -> my_table::RadixIPLookup -> ..." Step B) from central host: telnet node:ctlsock write my_table.set 0.0.0.0 1.1.1.1 1 sets a default route via 1.1.1.1 using output 1 of the routetable element. If using kernel, you cannot directly use a network port, instead you must go through files in the proc-filesystem. I have attached a ruby-class, that parses the text protocol and talks to control-sockets (i.e. userlevel)
click_user_socket.rb
Description: application/ruby
_______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
