Forum Discussion
Altera_Forum
Honored Contributor
19 years agoEthernet
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Hello everybody http://forum.niosforum.com/work2/styl...
Altera_Forum
Honored Contributor
19 years agofor starters... in your first section of code:
pbuf = pbuf_alloc(PBUF_TRANSPORT,30,PBUF_RAM); pbuf_free(pbuf); pbuf -> payload = (int*)pi; I believe that the pbuf_free is used incorrectly! You are freeing the pbuf so it is no longer useable in your statement pbuf->payload = ... What exactly is your goal... and what is your problem. If you could be a little more specific with your questioning we may be able to help better.