From: Michael Walle <michael@walle.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 02/21] net: Move MAC-seeded rand out of bootp.c
Date: Tue, 29 May 2012 20:23:33 +0200 [thread overview]
Message-ID: <201205292023.33124.michael@walle.cc> (raw)
In-Reply-To: <CANr=Z=bHEw4XXt6dgauxGDeNFtCro1LxCro+3sHO39sXypwA9Q@mail.gmail.com>
Hi Joe,
Am Dienstag 29 Mai 2012, 20:08:26 schrieb Joe Hershberger:
> Hi Michael,
>
> On Mon, May 28, 2012 at 5:03 PM, Michael Walle <michael@walle.cc> wrote:
> > [sorry for my first mail.. wasn't intented to be send]
> >
> >
> > Sorry for being too late on this.
> >
> > Am Mittwoch 23 Mai 2012, 19:57:58 schrieb Joe Hershberger:
> >> Make the MAC-seeded random number generator available to /net in
> >> general. MAC-seeded rand will be needed by link-local as well, so
> >> give it an interface.
> >>
> >> Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
> >> Cc: Joe Hershberger <joe.hershberger@gmail.com>
> >> ---
> >> Changes for v3:
> >> - Lowercase hex
> >> - Add blank line
> >> - Always include header, even when it isn't needed
> >> - Add function comments
> >>
> >> net/Makefile | 1 +
> >> net/bootp.c | 67
> >> ++++++++++--------------------------------------------- net/bootp.h |
> >> 3 --
> >> net/net_rand.c | 68
> >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ net/net_rand.h
> >> | 26 +++++++++++++++++++++
> >> 5 files changed, 107 insertions(+), 58 deletions(-)
> >> create mode 100644 net/net_rand.c
> >> create mode 100644 net/net_rand.h
> >
> > [..]
> >
> >> diff --git a/net/net_rand.c b/net/net_rand.c
> >> new file mode 100644
> >> index 0000000..5387aba
> >> --- /dev/null
> >> +++ b/net/net_rand.c
> >> @@ -0,0 +1,68 @@
> >> +/*
> >> + * Based on LiMon - BOOTP.
> >> + *
> >> + * Copyright 1994, 1995, 2000 Neil Russell.
> >> + * (See License)
> >> + * Copyright 2000 Roland Borde
> >> + * Copyright 2000 Paolo Scaffardi
> >> + * Copyright 2000-2004 Wolfgang Denk, wd at denx.de
> >> + */
> >> +
> >> +#include <common.h>
> >> +#include <net.h>
> >> +#include "net_rand.h"
> >> +
> >> +static ulong seed1, seed2;
> >> +
> >> +void srand_mac(void)
> >> +{
> >> + ulong tst1, tst2, m_mask;
> >> + ulong m_value = 0;
> >> + int reg;
> >> + unsigned char bi_enetaddr[6];
> >> +
> >> + /* get our mac */
> >> + eth_getenv_enetaddr("ethaddr", bi_enetaddr);
> >> +
> >> + debug("BootpRequest => Our Mac: ");
> >
> > mh? this shouldn't be here anymore should it?
>
> Yes... It's not very appropriate any longer.
>
> >> + for (reg = 0; reg < 6; reg++)
> >> + debug("%x%c", bi_enetaddr[reg], reg == 5 ? '\n' : ':');
> >> +
> >> + /* Mac-Manipulation 2 get seed1 */
> >> + tst1 = 0;
> >> + tst2 = 0;
> >> + for (reg = 2; reg < 6; reg++) {
> >> + tst1 = tst1 << 8;
> >> + tst1 = tst1 | bi_enetaddr[reg];
> >> + }
> >> + for (reg = 0; reg < 2; reg++) {
> >> + tst2 = tst2 | bi_enetaddr[reg];
> >> + tst2 = tst2 << 8;
> >> + }
> >> +
> >> + seed1 = tst1^tst2;
> >> +
> >> + /* Mirror seed1*/
> >> + m_mask = 0x1;
> >> + for (reg = 1; reg <= 32; reg++) {
> >> + m_value |= (m_mask & seed1);
> >> + seed1 = seed1 >> 1;
> >> + m_value = m_value << 1;
> >> + }
> >> + seed1 = m_value;
> >> + seed2 = 0xb78d0945;
> >> +}
> >> +
> >> +unsigned long rand(void)
> >> +{
> >> + ulong sum;
> >> +
> >> + /* Random Number Generator */
> >> + sum = seed1 + seed2;
> >> + if (sum < seed1 || sum < seed2)
> >> + sum++;
> >> + seed2 = seed1;
> >> + seed1 = sum;
> >> +
> >> + return sum;
> >> +}
> >
> > is this really random?
>
> It was the implementation used for bootp delays. It is some form of
> PRNG... just not the same as what you've implemented.
>
> > this conflicts with my patch (lib/rand.c) i'm trying to
> > put into upstream.
>
> True.
>
> >> diff --git a/net/net_rand.h b/net/net_rand.h
> >> new file mode 100644
> >> index 0000000..c98db64
> >> --- /dev/null
> >> +++ b/net/net_rand.h
> >> @@ -0,0 +1,26 @@
> >> +/*
> >> + * Copied from LiMon - BOOTP.
> >> + *
> >> + * Copyright 1994, 1995, 2000 Neil Russell.
> >> + * (See License)
> >> + * Copyright 2000 Paolo Scaffardi
> >> + */
> >> +
> >> +#ifndef __NET_RAND_H__
> >> +#define __NET_RAND_H__
> >> +
> >> +#define RAND_MAX 0xffffffff
> >> +
> >> +/*
> >> + * Seed the random number generator using the eth0 MAC address
> >> + */
> >> +void srand_mac(void);
> >> +
> >> +/*
> >> + * Get a random number (after seeding with MAC address)
> >> + *
> >> + * @return random number
> >> + */
> >> +unsigned long rand(void);
> >> +
> >> +#endif /* __NET_RAND_H__ */
> >
> > if this is unconditionally included, my patch fails because there are
> > multiple declarations of rand().
> >
> > Can we unify this with my patch, which is based on a paper about PRNGs?
> > Eg. use the rand()/srand() from my patch and create an srand_mac()
> > inline function which uses srand() from lib/rand.c ?
>
> If you can verify that the functionality of the
> CONFIG_BOOTP_RANDOM_DELAY and CONFIG_CMD_LINK_LOCAL are uneffected,
> then I'm OK with it.
>
> One thing to note is that the link-local implementation needs to use a
> MAC seeded random number. That means we can't have other things
> coming in and seeding it with a time. It is nice that it is separate
> for that reason. Can you solve that and integrate it with your PRNG?
I'm in a hurry, short answer for now:
I thought of sth like this:
static inline void srand_mac(void)
{
unsigned char enetaddr[6];
unsigned int seed;
/* get our mac */
eth_getenv_enetaddr("ethaddr", enetaddr);
seed = enetaddr[5];
seed |= enetaddr[4] << 8;
seed |= enetaddr[3] << 16;
seed |= enetaddr[2] << 24;
srand(seed);
}
--
Michael
next prev parent reply other threads:[~2012-05-29 18:23 UTC|newest]
Thread overview: 281+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 0:53 [U-Boot] [PATCH 00/28] Add link-local addressing support Joe Hershberger
2012-01-20 0:53 ` [U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface Joe Hershberger
2012-01-20 16:22 ` Simon Glass
2012-01-20 20:15 ` Joe Hershberger
2012-01-24 6:09 ` Simon Glass
2012-01-24 6:27 ` Joe Hershberger
2012-02-03 11:39 ` Mike Frysinger
2012-02-03 11:44 ` Mike Frysinger
2012-02-07 17:41 ` Joe Hershberger
2012-01-20 0:53 ` [U-Boot] [PATCH 02/28] net: cosmetic: checkpatch compliance Joe Hershberger
2012-01-20 16:30 ` Simon Glass
2012-01-20 20:21 ` Joe Hershberger
2012-01-24 6:12 ` Simon Glass
2012-01-25 11:00 ` Stefano Babic
2012-02-03 11:45 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 03/28] net: Move mv64x6x_eth_initialize() to board_eth_init() Joe Hershberger
2012-02-03 11:49 ` Mike Frysinger
2012-02-03 12:03 ` Stefan Roese
2012-01-20 0:53 ` [U-Boot] [PATCH 04/28] net: Make the MAC-seeded random number generator available to /net Joe Hershberger
2012-01-24 5:30 ` Simon Glass
2012-02-03 11:51 ` Mike Frysinger
2012-02-10 21:51 ` Joe Hershberger
2012-02-14 6:49 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 05/28] net: Move CDP out of net.c Joe Hershberger
2012-01-24 5:31 ` Simon Glass
2012-02-03 11:55 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 06/28] net: Move ARP " Joe Hershberger
2012-01-24 5:35 ` Simon Glass
2012-02-03 11:56 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 07/28] net: Move PING " Joe Hershberger
2012-01-24 5:37 ` Simon Glass
2012-02-03 11:57 ` Mike Frysinger
2012-02-03 11:58 ` Mike Frysinger
2012-02-03 12:07 ` Mike Frysinger
2012-02-13 23:54 ` Joe Hershberger
2012-02-14 6:51 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 08/28] net: Move RARP receive logic " Joe Hershberger
2012-01-24 5:45 ` Simon Glass
2012-02-03 11:59 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 09/28] net: cosmetic: Un-typedef variables in net Joe Hershberger
2012-02-03 12:05 ` Mike Frysinger
2012-02-09 23:03 ` Joe Hershberger
2012-01-20 0:53 ` [U-Boot] [PATCH 10/28] net: cosmetic: Improve variable names and code readability Joe Hershberger
2012-01-24 6:19 ` Simon Glass
2012-02-03 12:10 ` Mike Frysinger
2012-02-03 12:09 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 11/28] net: Refactor IP, UPD, and ICMP header writing functions Joe Hershberger
2012-01-24 6:51 ` Simon Glass
2012-02-03 12:12 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 12/28] net: Refactor packet length computations Joe Hershberger
2012-01-24 6:58 ` Simon Glass
2012-02-03 12:12 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 13/28] net: Refactor bootp " Joe Hershberger
2012-01-24 7:05 ` Simon Glass
2012-01-24 7:15 ` Joe Hershberger
2012-02-03 12:13 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 14/28] net: Refactor ping recieve handler Joe Hershberger
2012-02-03 12:07 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 15/28] net: Refactor to call NetSendPacket() instead of calling eth_send() Joe Hershberger
2012-02-03 12:16 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 16/28] net: Refactor to protect access to the NetState variable Joe Hershberger
2012-02-03 12:17 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 17/28] net: Refactor to separate the UDP handler from the ARP handler Joe Hershberger
2012-02-03 12:21 ` Mike Frysinger
2012-02-08 22:52 ` Joe Hershberger
2012-02-09 3:35 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 18/28] net: Add NetUpdateEther() to handle ARP or Ping replies (VLAN or SNAP) Joe Hershberger
2012-02-03 12:25 ` Mike Frysinger
2012-02-10 0:36 ` Joe Hershberger
2012-01-20 0:53 ` [U-Boot] [PATCH 19/28] net: Don't write the "serverip" env var if told not to in the config Joe Hershberger
2012-02-03 12:27 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 20/28] net: Fix compile warning if CONFIG_BOOTP_SERVERIP is not defined Joe Hershberger
2012-02-03 12:28 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 21/28] net: Remove unneeded static allocation for MAC address in PingSend() Joe Hershberger
2012-02-03 12:31 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 22/28] net: Fix net buffer initialization Joe Hershberger
2012-02-03 12:37 ` Mike Frysinger
2012-02-10 20:34 ` Joe Hershberger
2012-01-20 0:53 ` [U-Boot] [PATCH 23/28] net: Refactor NetSendUDPPacket to share more code Joe Hershberger
2012-01-20 0:53 ` [U-Boot] [PATCH 24/28] net: Don't copy every packet that waits for an ARP Joe Hershberger
2012-01-20 0:53 ` [U-Boot] [PATCH 25/28] net: Add option CONFIG_BOOTP_CAN_FAIL Joe Hershberger
2012-02-03 12:38 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 26/28] net: Add link-local addressing support Joe Hershberger
2012-02-03 12:42 ` Mike Frysinger
2012-02-13 20:21 ` Joe Hershberger
2012-02-14 6:46 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 27/28] net: Work-around for brain-damaged Cisco routers with arp-proxy Joe Hershberger
2012-02-03 12:44 ` Mike Frysinger
2012-01-20 0:53 ` [U-Boot] [PATCH 28/28] net: Allow filtering on debug traces in the net subsystem Joe Hershberger
2012-02-03 12:45 ` Mike Frysinger
2012-01-25 10:27 ` [U-Boot] [PATCH 00/28] Add link-local addressing support Stefano Babic
2012-01-25 23:40 ` Joe Hershberger
2012-01-26 9:21 ` Stefano Babic
2012-02-03 11:34 ` Mike Frysinger
2012-02-03 16:19 ` Stefano Babic
2012-02-03 19:33 ` Mike Frysinger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 00/10] Network stack checkpatch.pl compliance Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 01/10] net: Remove volatile from net API Joe Hershberger
2012-05-21 7:05 ` Wolfgang Denk
2012-05-21 14:32 ` Joe Hershberger
2012-05-21 19:05 ` Wolfgang Denk
2012-05-21 19:06 ` Joe Hershberger
2012-05-21 19:11 ` Wolfgang Denk
2012-05-21 7:14 ` [U-Boot] [PATCH] MPC8xx: fix "Remove volatile from net API" aftermath Wolfgang Denk
2012-05-21 20:50 ` Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 02/10] net: cosmetic: net.h checkpatch compliance Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 03/10] net: cosmetic: bootp.* " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 04/10] net: cosmetic: eth.c " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 05/10] net: cosmetic: net.c " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 06/10] net: cosmetic: nfs.* " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 07/10] net: cosmetic: rarp.* " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 08/10] net: cosmetic: sntp.* " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 09/10] net: cosmetic: tftp.* " Joe Hershberger
2012-05-15 18:59 ` [U-Boot] [PATCH v3 10/10] net: cosmetic: netconsole.c " Joe Hershberger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 01/10] net: Remove volatile from net API Joe Hershberger
2012-03-31 8:03 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 02/10] net: cosmetic: net.h checkpatch compliance Joe Hershberger
2012-03-31 8:06 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 03/10] net: cosmetic: net.c " Joe Hershberger
2012-04-02 6:04 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 04/10] net: cosmetic: eth.c " Joe Hershberger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 05/10] net: cosmetic: net.c " Joe Hershberger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 06/10] net: cosmetic: nfs.* " Joe Hershberger
2012-04-02 6:06 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 07/10] net: cosmetic: rarp.* " Joe Hershberger
2012-04-02 6:07 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 08/10] net: cosmetic: sntp.* " Joe Hershberger
2012-04-02 6:10 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 09/10] net: cosmetic: tftp.* " Joe Hershberger
2012-04-02 6:12 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 10/10] net: cosmetic: netconsole.c " Joe Hershberger
2012-04-02 6:14 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 00/21] Network stack cosmetic improvements Joe Hershberger
2012-05-23 17:57 ` [U-Boot] [PATCH v3 " Joe Hershberger
2012-05-23 17:57 ` [U-Boot] [PATCH v3 01/21] net: Remove CMD_PING where there's no CMD_NET Joe Hershberger
2012-05-23 17:57 ` [U-Boot] [PATCH v3 02/21] net: Move MAC-seeded rand out of bootp.c Joe Hershberger
2012-05-28 21:53 ` Michael Walle
2012-05-28 22:03 ` Michael Walle
2012-05-29 18:08 ` Joe Hershberger
2012-05-29 18:23 ` Michael Walle [this message]
2012-05-29 21:08 ` Joe Hershberger
2012-05-29 22:06 ` Michael Walle
2012-05-29 22:40 ` Joe Hershberger
2012-05-29 22:54 ` Michael Walle
2012-05-23 17:57 ` [U-Boot] [PATCH v3 03/21] net: Move CDP out of net.c Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 04/21] net: Encapsulate CDP packet identification Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 05/21] net: Move ARP out of net.c Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 06/21] net: Move PING " Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 07/21] net: Move RARP receive logic " Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 08/21] net: cosmetic: Un-typedef IP_t Joe Hershberger
2012-05-23 22:36 ` Anatolij Gustschin
2012-05-23 22:43 ` Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 09/21] net: cosmetic: Split struct ip_udp_hdr into ip_hdr Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 10/21] net: cosmetic: Un-typedef Ethernet_t Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 11/21] net: cosmetic: Un-typedef VLAN_Ethernet_t Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 12/21] net: cosmetic: Un-typedef ARP_t Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 13/21] net: cosmetic: Un-typedef ICMP_t Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 14/21] net: cosmetic: Rename parameter len to payload_len Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 15/21] net: cosmetic: Add a more explicit comment about 802.2 Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 16/21] net: cosmetic: Rename "x" to "eth_proto" Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 17/21] net: cosmetic: Rename CDPHandler to cdp_receive Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 18/21] net: cosmetic: Rename OPT_SIZE to OPT_FIELD_SIZE Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 19/21] net: cosmetic: Alphabetize includes in net.c Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 20/21] net: cosmetic: Rename tmp to reply_ip_addr in arp.c Joe Hershberger
2012-05-23 17:58 ` [U-Boot] [PATCH v3 21/21] net: cosmetic: Replace magic numbers in arp.c with constants Joe Hershberger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 01/21] net: Remove CMD_PING where there's no CMD_NET Joe Hershberger
2012-04-21 2:47 ` Simon Glass
2012-05-16 15:54 ` Joe Hershberger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 02/21] net: Remove redefinitions of net.h functions Joe Hershberger
2012-04-21 2:49 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 03/21] net: Move MAC-seeded rand out of bootp.c Joe Hershberger
2012-04-21 2:54 ` Simon Glass
2012-05-16 20:30 ` Joe Hershberger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 04/21] net: Move CDP out of net.c Joe Hershberger
2012-04-21 2:59 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 05/21] net: Encapsulate CDP packet identification Joe Hershberger
2012-04-21 3:01 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 06/21] net: Move ARP out of net.c Joe Hershberger
2012-04-21 3:04 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 07/21] net: Move PING " Joe Hershberger
2012-04-21 3:06 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 08/21] net: Move RARP receive logic " Joe Hershberger
2012-04-26 22:53 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 09/21] net: cosmetic: Un-typedef IP_t Joe Hershberger
2012-04-27 0:06 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 10/21] net: cosmetic: Un-typedef Ethernet_t Joe Hershberger
2012-04-27 0:12 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 11/21] net: cosmetic: Un-typedef VLAN_Ethernet_t Joe Hershberger
2012-04-27 0:14 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 12/21] net: cosmetic: Un-typedef ARP_t Joe Hershberger
2012-04-27 0:17 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 13/21] net: cosmetic: Un-typedef ICMP_t Joe Hershberger
2012-04-27 6:36 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 14/21] net: cosmetic: Rename parameter len to payload_len Joe Hershberger
2012-04-27 0:20 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 15/21] net: cosmetic: Add a more explicit comment about 802.2 Joe Hershberger
2012-04-27 0:21 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 16/21] net: cosmetic: Rename "x" to "eth_proto" Joe Hershberger
2012-04-27 0:22 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 17/21] net: cosmetic: Rename CDPHandler to CDPReceive Joe Hershberger
2012-04-27 6:23 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 18/21] net: cosmetic: Rename OPT_SIZE to OPT_FIELD_SIZE Joe Hershberger
2012-04-27 6:23 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 19/21] net: cosmetic: Alphabetize includes in net.c Joe Hershberger
2012-04-27 6:25 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 00/18] Network stack refactoring Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 " Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 01/18] net: Refactor IP, UPD, and ICMP header writing functions Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 02/18] net: Refactor NetSendUDPPacket to share more code Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 03/18] net: Refactor packet length computations Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 04/18] net: Refactor bootp " Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 05/18] net: Move debug trace to point of action Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 06/18] net: Refactor ping receive handler Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 07/18] net: Refactor to use NetSendPacket instead of eth_send directly Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 08/18] net: Refactor to protect access to the NetState variable Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 09/18] net: Refactor to separate the UDP handler from the ARP handler Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 10/18] net: Add net_update_ether() to handle ARP and Ping replies Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 11/18] net: Don't write the "serverip" env var if configured not to Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 12/18] net: Fix unused variable compile warning Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 13/18] net: Add option CONFIG_BOOTP_MAY_FAIL Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 14/18] net: Remove static allocation for MAC address in PingSend() Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 15/18] net: Remove unused parameter from NetInitLoop() Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 16/18] net: Fix net buffer initialization Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 17/18] net: Make sure NetLoop is initialized when using NetConsole Joe Hershberger
2012-05-23 17:59 ` [U-Boot] [PATCH v3 18/18] net: Don't copy every packet that waits for an ARP Joe Hershberger
2012-03-27 23:42 ` [U-Boot] [PATCH v2 20/21] net: cosmetic: Rename tmp to reply_ip_addr in arp.c Joe Hershberger
2012-04-27 6:25 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 01/18] net: Refactor IP, UPD, and ICMP header writing functions Joe Hershberger
2012-04-02 6:21 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 21/21] net: cosmetic: Replace magic numbers in arp.c with constants Joe Hershberger
2012-04-27 6:26 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 02/18] net: Refactor NetSendUDPPacket to share more code Joe Hershberger
2012-04-02 6:26 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 03/18] net: Refactor packet length computations Joe Hershberger
2012-04-02 6:28 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 04/18] net: Refactor bootp " Joe Hershberger
2012-04-02 6:30 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 05/18] net: Move debug trace to point of action Joe Hershberger
2012-04-02 6:31 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 06/18] net: Refactor ping receive handler Joe Hershberger
2012-04-04 1:04 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 07/18] net: Refactor to use NetSendPacket instead of eth_send directly Joe Hershberger
2012-04-04 1:06 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 08/18] net: Refactor to protect access to the NetState variable Joe Hershberger
2012-04-04 1:11 ` Simon Glass
2012-03-27 23:42 ` [U-Boot] [PATCH v2 09/18] net: Refactor to separate the UDP handler from the ARP handler Joe Hershberger
2012-04-12 4:22 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 10/18] net: Add NetUpdateEther() to handle ARP and Ping replies Joe Hershberger
2012-04-12 4:25 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 11/18] net: Don't write the "serverip" env var if configured not to Joe Hershberger
2012-04-12 4:26 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 12/18] net: Fix unused variable compile warning Joe Hershberger
2012-04-12 4:29 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 13/18] net: Add option CONFIG_BOOTP_MAY_FAIL Joe Hershberger
2012-04-12 4:31 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 14/18] net: Remove static allocation for MAC address in PingSend() Joe Hershberger
2012-03-27 23:43 ` [U-Boot] [PATCH v2 15/18] net: Remove unused parameter from NetInitLoop() Joe Hershberger
2012-04-12 4:34 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 16/18] net: Fix net buffer initialization Joe Hershberger
2012-04-21 2:35 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 17/18] net: Make sure NetLoop is initialized when using NetConsole Joe Hershberger
2012-04-21 2:35 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 18/18] net: Don't copy every packet that waits for an ARP Joe Hershberger
2012-04-21 2:41 ` Simon Glass
2012-03-27 23:43 ` [U-Boot] [PATCH v2 0/3] Add link-local addressing support Joe Hershberger
2012-05-23 18:00 ` [U-Boot] [PATCH v3 " Joe Hershberger
2012-05-23 18:00 ` [U-Boot] [PATCH v3 1/3] net: Separate ArpRequest() into lower-level func Joe Hershberger
2012-05-23 18:00 ` [U-Boot] [PATCH v3 2/3] net: Add link-local addressing support Joe Hershberger
2012-05-23 18:00 ` [U-Boot] [PATCH v3 3/3] net: Work-around for brain-damaged Cisco equipment with arp-proxy Joe Hershberger
2012-03-27 23:43 ` [U-Boot] [PATCH v2 1/3] net: Separate ArpRequest() into lower-level func Joe Hershberger
2012-03-27 23:43 ` [U-Boot] [PATCH v2 2/3] net: Add link-local addressing support Joe Hershberger
2012-03-27 23:43 ` [U-Boot] [PATCH v2 3/3] net: Work-around for brain-damaged Cisco equipment with arp-proxy Joe Hershberger
2012-04-21 2:44 ` Simon Glass
2012-05-22 23:19 ` Joe Hershberger
2012-03-27 23:43 ` [U-Boot] [PATCH v2] net: Allow filtering on debug traces in the net subsystem Joe Hershberger
2012-05-23 18:01 ` [U-Boot] [PATCH v3] " Joe Hershberger
2012-03-31 20:11 ` [U-Boot] [PATCH 00/28] Add link-local addressing support Marek Vasut
2012-03-31 21:20 ` Joe Hershberger
2012-03-31 21:40 ` Marek Vasut
2012-04-01 3:23 ` Joe Hershberger
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=201205292023.33124.michael@walle.cc \
--to=michael@walle.cc \
--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