net: helper functions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest1 of 3 patches 0 repliesNew
- v11 of 5 patches 0 repliesSuperseded
1 of 3 patches is in this archive. The cover letter announces 3.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/3 | net: add helper to generate random mac address | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [U-Boot] [PATCH v4 0/3] net: helper functions
Quoted 14 lines · On Friday 11 May 2012 17:22:23 Michael Walle wrote:
Am Freitag 11 Mai 2012, 23:14:25 schrieb Wolfgang Denk:
Quoted 4 lines
Quoted 3 lines · Michael Walle
What about the rand function? I guess that should be two compile time options
Quoted 8 lines
Quoted 4 lines
-
CONFIG_RAND
-CONFIG_RANDOM_HWADDRAny 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.
Quoted 7 lines
from
net/net.c:
unsigned intrandom_port(void){ return 1024 + (get_timer(0) % 0x4000); }
CONFIG_BOOTP_RANDOM_DELAY, innet/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>