Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Hi guys. I am still trying to use the example, which has been uploaded by BillA (thank you very much), but i am in trouble. Finally,i know the port number to connect.But, as i understand,this example is low-level example.I mean,that the packets, which i catch, i catch them not on Transport layer(TCP, UDP).I catch them on IP layer or even ARP. Is it correctly? --- Quote End --- You're welcome (for the example). You catch the packets you want by specifying the callback. For example, if you call tcp_recv you will be called back with data as it arrives from the connection on the pcb. There is also udp_recv and raw_recv if you want those callbacks. raw has to be enabled with a# define and only it will allow seeing all packets. I've never had reason to use this. --- Quote Start --- Another question. As i understand, i catch the packet in "ethernetif_input" function and i am trying to watch with breakpoints the content of packet, but i do not see nothing. What am i doing not correctly? --- Quote End --- If you put breakpoint on: ethhdr = p->payload; and it doesn't stop here, then you are not receiving packets. Run in Debug build and look at the PHY output messages to be sure the PHY initializes OK. If you get through that, I would expect the TSE to be OK but if it won't breakpoint you're not getting any packets. You should see broadcast packets at all times so if you're on a network you should see packets without doing anything. If you are direct to a PC I still think you see a few broadcasts. BillA