Re: Adding Route - Click Router
Eddie Kohler <[email protected]> Fri, 25 Jan 2013 15:43:57 -0500
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <CAF0C5SJzOxaAcY_ycYWJf_4PvS2TtC4qpc9WeWsnuMsoOR31SA@mail.gmail.com> |
Investigate FromIPSummaryDump. On Fri, Jan 25, 2013 at 3:29 PM, Sakshi K <[email protected]> wrote: > Thank you sir. > I have one more doubt. How can I create a packet with source address and > other parameters as packet contents and how do I parse the contents ? > Eg: I want to create a packet with data, "10.0.4.1 1001 publish" as entries. > I am facing difficulty with that. > > I have looked print.cc code for parsing the contents and still finding it > difficult. Please help me, sir. > > > > > On Sat, Jan 26, 2013 at 1:17 AM, Eddie Kohler <[email protected]> wrote: >> >> You need to use a routing table such as RadixIPLookup, and then access its >> "add" or "set" handlers. For example, if using kernel Click, you might do: >> >> echo 1.0.0.0/8 1.0.0.1 2 > /click/radix_ip_lookup/add >> >> See; >> http://read.cs.ucla.edu/click/elements/radixiplookup >> >> >> >> On 1/25/13 7:38 AM, Sakshi K wrote: >>> >>> Hi, >>> >>> I want to add a route in the routing table dynamically. I have read >>> the >>> documentation but did not find any function to do that. Please tell me >>> how >>> can I do the same. >>> _______________________________________________ >>> click mailing list >>> [email protected] >>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click >>> >