[Click] Adding Route - Click Router

Eddie Kohler ekohler at gmail.com
Fri Jan 25 15:43:57 EST 2013


Investigate FromIPSummaryDump.


On Fri, Jan 25, 2013 at 3:29 PM, Sakshi K <sakship1234 at gmail.com> 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 <ekohler at gmail.com> 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
>>> click at amsterdam.lcs.mit.edu
>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>>
>


More information about the click mailing list