From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 3 Feb 2012 07:42:42 -0500 Subject: [U-Boot] [PATCH 26/28] net: Add link-local addressing support In-Reply-To: <1327020811-1538-27-git-send-email-joe.hershberger@ni.com> References: <1327020811-1538-1-git-send-email-joe.hershberger@ni.com> <1327020811-1538-27-git-send-email-joe.hershberger@ni.com> Message-ID: <201202030742.43438.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 19 January 2012 19:53:29 Joe Hershberger wrote: > --- a/README > +++ b/README > > - CONFIG_CMD_PCMCIA * PCMCIA support > + CONFIG_CMD_PCMCIA * PCMCIA support please omit unrelated whitespace changes > --- a/common/cmd_net.c > +++ b/common/cmd_net.c > > +int do_link_local(cmd_tbl_t *cmdtp, int flag, int argc, char * const static > + NetOurGatewayIP = 0; > + ip_to_string(NetOurGatewayIP, tmp); > + setenv("gatewayip", tmp); > + > + ip_to_string(NetOurSubnetMask, tmp); > + setenv("netmask", tmp); > + > + ip_to_string(NetOurIP, tmp); > + setenv("ipaddr", tmp); i feel like we should add a helper to do this setenv_ip("ipaddr", NetOurIP); > --- a/net/Makefile > +++ b/net/Makefile > > -COBJS := $(COBJS-y) > +COBJS := $(sort $(COBJS-y)) why ? > --- a/net/arp.c > +++ b/net/arp.c > > +#if defined(CONFIG_CMD_LINK_LOCAL) > +#include "link_local.h" > +#endif please push the ifdef down into the header -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: