From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 0/3] net: helper functions
Date: Mon, 14 May 2012 01:42:49 -0400 [thread overview]
Message-ID: <201205140142.51231.vapier@gentoo.org> (raw)
In-Reply-To: <201205112322.23891.michael@walle.cc>
On Friday 11 May 2012 17:22:23 Michael Walle wrote:
> Am Freitag 11 Mai 2012, 23:14:25 schrieb Wolfgang Denk:
> > Michael Walle wrote:
> > > What about the rand function? I guess that should be two
> > > compile time options
> > >
> > > - CONFIG_RAND
> > > - CONFIG_RANDOM_HWADDR
> > >
> > > Any better names?
> >
> > Please make this a single option, CONFIG_RANDOM_MACADDR. It appears
> > nobody else ever needed a random number before, and we can still
> > factor this out if another user pops up after another 12 years.
>
> from net/net.c:
> unsigned int random_port(void)
> {
> return 1024 + (get_timer(0) % 0x4000);
> }
>
> CONFIG_BOOTP_RANDOM_DELAY, in net/bootp.c
note that if you do change this code, the 0x4000 clamp is important. read the
git history of this file/func fore more details.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120514/ef9e58c9/attachment.pgp>
prev parent reply other threads:[~2012-05-14 5:42 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 17:32 [U-Boot] [PATCH v4 0/3] net: helper functions Michael Walle
2012-05-10 17:32 ` [U-Boot] [PATCH v4 1/3] lib: add rand() function Michael Walle
2012-05-11 19:20 ` Wolfgang Denk
2012-05-11 20:32 ` Michael Walle
2012-05-11 20:43 ` Wolfgang Denk
[not found] ` <201205112249.27871.michael@walle.cc>
2012-05-11 21:11 ` Wolfgang Denk
2012-05-11 21:20 ` Michael Walle
2012-05-11 21:29 ` Wolfgang Denk
2012-05-11 21:34 ` Michael Walle
2012-05-10 17:32 ` [U-Boot] [PATCH v4 2/3] net: add helper to generate random mac address Michael Walle
2012-05-11 19:21 ` Wolfgang Denk
2012-05-14 5:43 ` Mike Frysinger
2012-05-10 17:32 ` [U-Boot] [PATCH v4 3/3] net: add eth_setenv_enetaddr_by_index() Michael Walle
2012-05-11 19:25 ` Wolfgang Denk
2012-05-11 21:01 ` Michael Walle
2012-05-11 21:16 ` Wolfgang Denk
2012-05-11 22:12 ` Michael Walle
2012-05-11 16:32 ` [U-Boot] [PATCH v4 0/3] net: helper functions Michael Walle
2012-05-11 16:46 ` Joe Hershberger
2012-05-11 16:51 ` Prafulla Wadaskar
2012-05-21 20:52 ` Michael Walle
2012-05-11 19:18 ` Wolfgang Denk
2012-05-11 20:29 ` Michael Walle
2012-05-11 20:43 ` Wolfgang Denk
2012-05-11 20:54 ` Michael Walle
2012-05-11 21:14 ` Wolfgang Denk
2012-05-11 21:22 ` Michael Walle
2012-05-11 21:30 ` Wolfgang Denk
2012-05-11 21:42 ` Michael Walle
2012-05-11 21:55 ` Wolfgang Denk
2012-05-14 5:42 ` Mike Frysinger [this message]
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=201205140142.51231.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox