X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=include%2Ffile.h;h=e2ccc13d2265b8d4c665c0a4b7bc45072852e956;hp=b6b9fe51236e90063eb3d13f775495e8efc04191;hb=caa5b9fc39eab729963d70d9910b6319a866fae4;hpb=2ad0d7649e5042cad43a16b4a03bf53f39948316 diff --git a/include/file.h b/include/file.h index b6b9fe5..e2ccc13 100644 --- a/include/file.h +++ b/include/file.h @@ -39,7 +39,20 @@ struct boot_file_t; struct boot_fspec_t { char* dev; /* OF device path */ int part; /* Partition number or -1 */ + char* siaddr; /* Server address */ char* file; /* File path */ + char* ciaddr; /* Client address */ + char* giaddr; /* Gateway address */ + char* bootp_retries; /* Bootp retries */ + char* tftp_retries; /* TFTP retries */ + char* subnetmask; /* Subnet mask */ + char* addl_params; /* copy all additional parameters */ + char* vtag; /* VLAN tag */ + + /* Following fields are used only in ipv6 format */ + int is_ipv6; /* is ipv6 specified ? */ + char* dhcpv6; /* dhcpv6 string */ + char* blksize; /* blksize string */ }; struct boot_file_t { @@ -63,7 +76,7 @@ struct boot_file_t { }; extern int -open_file(const struct boot_fspec_t* spec, +open_file(struct boot_fspec_t* spec, struct boot_file_t* file); extern int