From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Ga=c3=abtan_Carlier?= Date: Mon, 22 Jan 2018 10:33:52 +0100 Subject: [U-Boot] UDP packet sender In-Reply-To: <74a3f6f7-bd28-6676-ca49-8b9a26d3f93b@gmail.com> References: <74a3f6f7-bd28-6676-ca49-8b9a26d3f93b@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi, On 01/18/2018 11:56 AM, Gaëtan Carlier 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 > > 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)) > > 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, ... > > Thank you for these informations. > Regards, > Gaëtan. > Ping ?