aboutsummaryrefslogtreecommitdiff
path: root/include/helpers.h
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2017-09-26 09:12:32 +0530
committerAlexey Kardashevskiy <aik@ozlabs.ru>2017-09-26 17:54:00 +1000
commit3beb9c32d45fc4a0d69e6c84911c4521be272f18 (patch)
treeaf49e108b18178ceae99561998d420b009dedc07 /include/helpers.h
parent6f4ed1c01c5b2c0f347870ccefba514eac10234c (diff)
downloadSLOF-3beb9c32d45fc4a0d69e6c84911c4521be272f18.zip
SLOF-3beb9c32d45fc4a0d69e6c84911c4521be272f18.tar.gz
SLOF-3beb9c32d45fc4a0d69e6c84911c4521be272f18.tar.bz2
netboot: Create bootp-response when bootp is used
According to TFTP Booting extension, after the success of BOOTP, BOOTREPLY packet should be copied to bootp-response property under "/chosen" While in current case, even when DHCP was used, bootp-response was being set. So set bootp-response when BOOTP is used and dhcp-response for DHCP Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'include/helpers.h')
-rw-r--r--include/helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/helpers.h b/include/helpers.h
index c86c468..04ee771 100644
--- a/include/helpers.h
+++ b/include/helpers.h
@@ -36,6 +36,8 @@ extern void SLOF_pci_config_write16(long offset, long value);
extern void SLOF_pci_config_write8(long offset, long value);
extern void *SLOF_translate_my_address(void *addr);
extern int write_mm_log(char *data, unsigned int len, unsigned short type);
+extern void SLOF_encode_bootp_response(void *addr, size_t size);
+extern void SLOF_encode_dhcp_response(void *addr, size_t size);
#define offset_of(type, member) ((long) &((type *)0)->member)
#define container_of(ptr, type, member) ({ \