William Hoey(deleted)
|
Buffer handling within an io-pkt transmit routine
|
William Hoey(deleted)
02/18/2015 2:44 PM
post113328
|
Buffer handling within an io-pkt transmit routine
Firstly pardon my lack of knowledge on this subject. I am attempting to write my first io-pkt driver, I have written
some io-net drivers a number of years ago (10). I have looked at the sam example code and my driver appears to be
mounted under io-pkt. I am having some problems with the transmit routine.
The hardware is in effect a SLIP interface, I am attempting to port from another well know RTOS towards QNX. On the
other RTOS I registered the driver as an Ethernet Interface and then in the Transmit routine jump over the Ethernet
Header. The hardware does not support DMA so the packet needs to be copied into a memory mapped transmit buffer. I was
hoping to be able to do the same under QNX.
I appear to have got some way towards this; the transmit routine is called but I am unable to successfully transmit the
mbuf data to the transmit buffer. I am however able to transmit a hardcoded buffer containing an ICMP echo request
packet. I de-fragment the received mbuf and have attempt to copy the packet into the transmit buffer using memcpy or
m_copydata without success.
Any help gratefully received.
|
|
|