From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Mon, 16 May 2011 15:57:49 +0400 Subject: [U-Boot] [PATCHv2] bootp: add ntpserver option to bootp request In-Reply-To: <1305512681-8167-1-git-send-email-judge.packham@gmail.com> References: <1305250162-7328-3-git-send-email-judge.packham@gmail.com> <1305512681-8167-1-git-send-email-judge.packham@gmail.com> Message-ID: <4DD1113D.8070806@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 16-05-2011 6:24, Chris Packham wrote: > From: Luuk Paulussen > Signed-off-by: Luuk Paulussen > Acked-by: Chris Packham > Cc: Ben Warren [...] > diff --git a/net/bootp.c b/net/bootp.c > index 4db63cb..18c743e 100644 > --- a/net/bootp.c > +++ b/net/bootp.c > @@ -228,6 +228,11 @@ static void BootpVendorFieldProcess (u8 * ext) > NetOurNISDomain[size] = 0; > } > break; > +#if defined(CONFIG_CMD_SNTP)&& defined(CONFIG_BOOTP_NTPSERVER) > + case 42: /* NTP server IP */ > + NetCopyIP (&NetNtpServerIP, (IPaddr_t *) (ext + 2)); There should be no space between function name and (. You're now supposed to run your patch thru scripts/checkpatch.pl (from Linux source tree). > + break; > +#endif > /* Application layer fields */ > case 43: /* Vendor specific info - Not yet supported */ > /* > @@ -538,6 +548,11 @@ static int BootpExtended (u8 * e) > *e++ = 32; > e += 32; > #endif > +#if defined(CONFIG_BOOTP_NTPSERVER) > + *e++ = 42; Too many spaces... > + *e++ = 4; > + e += 4; > +#endif WBR, Sergei