All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Hershberger <joe.hershberger@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] UDP packet sender
Date: Mon, 22 Jan 2018 16:46:15 -0600	[thread overview]
Message-ID: <CANr=Z=a_G=ACLFnqrSwECntf9aEz6=1=XvXiWqujcBsyyMJkUA@mail.gmail.com> (raw)
In-Reply-To: <74a3f6f7-bd28-6676-ca49-8b9a26d3f93b@gmail.com>

Hi Gaëtan,

On Thu, Jan 18, 2018 at 4:56 AM, Gaëtan Carlier <gcembed@gmail.com> wrote:
> Hi,
> I would like to implement a new command and submit it to the mailing list.
> The command will have the following format:
> udpsend <destination/broadcast ip> <destination port> <source port> <text to send>
>
> udpsend 255.255.255.255 4040 0 hello world
>
> If source port is 0, a random port will be used (11000 + (get_timer(0) % 4096))

I'd like to understand the purpose / use-case for this command? Maybe
there is a more appropriate way to solve the problem you have instead.

> Where do I have to place my code : cmd or net directory ?
> For me cmd will be the better directory to keep it away from all more complex stuff like DHCP, TFTP, ...

That's probably true. cmd/ would be the appropriate place.

-Joe

  parent reply	other threads:[~2018-01-22 22:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 10:56 [U-Boot] UDP packet sender Gaëtan Carlier
2018-01-22  9:33 ` Gaëtan Carlier
2018-01-22 21:28   ` Lukasz Majewski
2018-01-22 22:46 ` Joe Hershberger [this message]
2018-01-22 23:28   ` Gaëtan Carlier
2018-01-23  0:54     ` Joe Hershberger
2018-01-23 14:02       ` Gaëtan Carlier
2018-02-02 19:13         ` Joe Hershberger
2018-02-06  7:57           ` Gaëtan Carlier

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='CANr=Z=a_G=ACLFnqrSwECntf9aEz6=1=XvXiWqujcBsyyMJkUA@mail.gmail.com' \
    --to=joe.hershberger@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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.