[Click] Help, how to route according to source IP address of an IP packet

Eddie Kohler kohler at cs.ucla.edu
Fri Apr 29 14:26:50 EDT 2011


Simply use GetIPAddress to set the "destination IP address annotation" to the 
source address.  You will probably want GetIPAddress(12).
E


On 3/12/11 6:55 AM, wubaochuan wrote:
> hi everyone,
>          The IPv4 Routing elements can route IP packets according to the
> destination address of IP packets, How to route IP packets according to
> source address of IP packets? I want to forward all IP packets from
> 10.2.2.0/24 to a machine.
>         Thank you.
> Yours
> Chuan
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list