[Click] Address Translation

khalid mengal khalid_mengal at yahoo.com
Sun Jun 14 18:41:04 EDT 2009


Hello,

I want to use click to translate IPv4 packets into IPv6. Protocol translation is working fine but I have some problems in address translation. The ProtocolTranslator46 converts IPv4 addresses into "IPv4-competible IPv6 addresses" (::d.d.d.d) however I want to modify the addresses as well, e.g. into the form 2001::d.d.d.d. Can some body guide me how to do (probably using AddressTranslator)?

FromDevice(eth0)->
Classifier(12/0800)->          /* ignore non-IP packets */
Strip(14)->
CheckIPHeader() ->
IPPrint->
ProtocolTranslator46()->
//AddressTranslator(....)->
CheckIP6Header()->
IP6Print ->
Queue->
EtherEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2)->
ToDevice(eth1)


best regards,
Khalid


      


More information about the click mailing list