X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=include%2Ffile.h;h=b2d9c63a71d9082f499382c877fdb3ee074883d5;hp=b6b9fe51236e90063eb3d13f775495e8efc04191;hb=1f0f86b8e9cb113674bec055c2d0f182a28a5bd2;hpb=2ad0d7649e5042cad43a16b4a03bf53f39948316 diff --git a/include/file.h b/include/file.h index b6b9fe5..b2d9c63 100644 --- a/include/file.h +++ b/include/file.h @@ -39,7 +39,19 @@ 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 */ + + /* 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 +75,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