[Click] how to get the source ip address and destination ip address ?

束传军 shuchuanjun at gmail.com
Wed Aug 12 10:50:46 EDT 2009


I want to get the both source ip address and destination ip address from a
packet received from FromDevice in click router? It is possible to do it
using the Annotaions of a Packet or another possible method? I have tried to
study the struct of the Anno, but unfortunately I failed to find anything
that can help me except that I got to know that it has 48-byte size ! So, I
turn to the click mail list, hoping that sombody can help me!
PS: I want to get both IPv4 and IPv6 addresses. And I am afraid that it
needs diferent jobs to get the two different types of ip addresses.
Best Regards!


More information about the click mailing list