All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Vacca <svacca@valcom.com>
To: "LinuxEmbeddedMailList (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
Subject: Using sys_sendto() in Kernel instead of sendto() in app
Date: Mon, 11 Nov 2002 11:18:46 -0500	[thread overview]
Message-ID: <01C28974.1A34BA30.svacca@valcom.com> (raw)


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/

             reply	other threads:[~2002-11-11 16:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-11 16:18 Steven Vacca [this message]
2002-11-11 23:39 ` Using sys_sendto() in Kernel instead of sendto() in app Murray Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=01C28974.1A34BA30.svacca@valcom.com \
    --to=svacca@valcom.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.