linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Using sys_sendto() in Kernel instead of sendto() in app
@ 2002-11-11 16:18 Steven Vacca
  2002-11-11 23:39 ` Murray Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Vacca @ 2002-11-11 16:18 UTC (permalink / raw)
  To: LinuxEmbeddedMailList (E-mail)


MPC860T, QMC-mode on SCC2.

When QMC data is available to be read from a particular
QMC channel, the SCC2 interrupts, and I want to
immediately read and send that data out to a destination
unit on the LAN using sys_sendto(), from within the ISR.
I already know the destination IP addr and UDP port, but
not the dest MAC addr.  So ARP is needed.

Using a network sniffer, after executing the 1st sys_sendto(),
I see that the IP stack ARPs for the dest unit's MAC addr,
and receives the ARP response which contains the MAC addr.
But then the IP stack sends an ICMP msg stating
"Destination Unreachable", and does not send any pkts to the
dest unit after that.

When I do the above using the usual sendto() from within my
app, it works fine, and after receiving the ARP response, the
sendto()'s send recd QMC pkts out onto the LAN continuously,
as normal.

Could I have some guidance on using sendto()'s (sys_sendto()'s)
from within the kernel?

Thanks,

Steven


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-11 23:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-11 16:18 Using sys_sendto() in Kernel instead of sendto() in app Steven Vacca
2002-11-11 23:39 ` Murray Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).