I am using the Xilinx petalinux on zynq.
in my project i receive packets from BRAM in the PL area , and send them via the ethernet.
the packets arrive with the ip header, and should be sent as is.( so the dest will know who was the original source sender ).
the packets are not always destined to the subnet my card is connected to, so i want to send it to the default GW.
it's actuall like doing ip forwarding just from the PL to the PS phy..(and not between 2 NIC's ).
does someone know what is the right way to do it ?
i can write some code to simulate myself as a router ( handle ARP's, tables etc ) but i thought that might be a way using the standard kernel for this .
thanks in advance
Could you could check this wiki tip? This is a relavant application for your problem.
Hope this helps.