thanks i think i am going in the right direction. i created a sink to FIFO block so i can take the source of the SGDMA and send it out to the external FIFO.
Now i have another question. How fast dose the DMA work? Because i have data packet of around 2000 char in size coming every 1ms for example (i might get faster). I modified the Simple socket server example and used the recvfrom function. now after i have to make my descriptor for the DMA and send it. I am just afraid that by the time the packet actually gets sent a new packet would have came in and change the data at that address.
now to make sure that there is no problem should i forget about the TCP/IP stack and use the UDP_packet_extractor in the UDP Offload example so the packets wont have the go trough the NIOS at all?