]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: bootp: as CONFIG_BOOTP_SERVERIP is defined, keep bootfile not changed
authorWu, Josh <Josh.wu@atmel.com>
Tue, 18 Nov 2014 05:07:08 +0000 (13:07 +0800)
committerTom Rini <trini@ti.com>
Mon, 8 Dec 2014 14:35:41 +0000 (09:35 -0500)
commitecec4e9c820a2faa2115adb9a8259aa6ba5da68d
tree5020d864e6d21883b0de7265480c77fdf66f802a
parent27e77183a1d1c355d225cb08fb35cdce54b87198
net: bootp: as CONFIG_BOOTP_SERVERIP is defined, keep bootfile not changed

Currenly when CONFIG_BOOTP_SERVERIP is defined, the SERVERIP is not changed
when receive the BOOTP packet. But BOOTFILE is changed via BOOTP packet.

As we will load the BOOTFILE from SERVERIP, if the BOOTFILE is modified
by bootp packet but SERVERIP is not, that is not make sense.

This patch make SERVERIP and BOOTFILE be consistent. If we define the
CONFIG_BOOTP_SERVERIP, then SERVERIP and BOOTFILE will not changed by
BOOTP packet. Only IP address is changed.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
net/bootp.c