forked from Imagelibrary/rtems
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1566/filesystem * libnetworking/rtems/mkrootfs.c, libnetworking/rtems/mkrootfs.h: Let rtems_rootfs_append_host_rec take an in_addr_t as first arg. * libnetworking/rtems/rtems_dhcp.c, libnetworking/nfs/bootp_subr.c: Reflect changes above.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
PR 1566/filesystem
|
||||||
|
* libnetworking/rtems/mkrootfs.c, libnetworking/rtems/mkrootfs.h:
|
||||||
|
Let rtems_rootfs_append_host_rec take an in_addr_t as first arg.
|
||||||
|
* libnetworking/rtems/rtems_dhcp.c, libnetworking/nfs/bootp_subr.c:
|
||||||
|
Reflect changes above.
|
||||||
|
|
||||||
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libfs/src/rfs/rtems-rfs-dir.c: Various 64bit compatibility fixes.
|
* libfs/src/rfs/rtems-rfs-dir.c: Various 64bit compatibility fixes.
|
||||||
|
|||||||
@@ -1153,7 +1153,7 @@ bootpc_init(bool update_files, bool forever)
|
|||||||
dn = "mydomain";
|
dn = "mydomain";
|
||||||
if (!hn)
|
if (!hn)
|
||||||
hn = "me";
|
hn = "me";
|
||||||
rtems_rootfs_append_host_rec(*((unsigned long*) &myaddr.sin_addr), hn, dn);
|
rtems_rootfs_append_host_rec(myaddr.sin_addr.s_addr, hn, dn);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Should the given domainname be used here ?
|
* Should the given domainname be used here ?
|
||||||
@@ -1163,12 +1163,12 @@ bootpc_init(bool update_files, bool forever)
|
|||||||
hn = rtems_bsdnet_bootp_server_name;
|
hn = rtems_bsdnet_bootp_server_name;
|
||||||
else
|
else
|
||||||
hn = "bootps";
|
hn = "bootps";
|
||||||
rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_bootp_server_address),
|
rtems_rootfs_append_host_rec(rtems_bsdnet_bootp_server_address.s_addr,
|
||||||
hn, dn);
|
hn, dn);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dhcp_gotlogserver) {
|
if (dhcp_gotlogserver) {
|
||||||
rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_log_host_address),
|
rtems_rootfs_append_host_rec(rtems_bsdnet_log_host_address.s_addr,
|
||||||
"logs", dn);
|
"logs", dn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ rtems_rootfs_file_append (const char *file,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
rtems_rootfs_append_host_rec (unsigned long cip,
|
rtems_rootfs_append_host_rec (in_addr_t cip,
|
||||||
const char *cname,
|
const char *cname,
|
||||||
const char *dname)
|
const char *dname)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ rtems_rootfs_file_append (const char *file,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
rtems_rootfs_append_host_rec (unsigned long cip,
|
rtems_rootfs_append_host_rec (in_addr_t cip,
|
||||||
const char *cname,
|
const char *cname,
|
||||||
const char *dname);
|
const char *dname);
|
||||||
|
|
||||||
|
|||||||
@@ -1048,7 +1048,7 @@ dhcp_init (int update_files)
|
|||||||
hn = "me";
|
hn = "me";
|
||||||
sethostname (hn, strlen (hn));
|
sethostname (hn, strlen (hn));
|
||||||
}
|
}
|
||||||
rtems_rootfs_append_host_rec(*((unsigned long*) &myaddr.sin_addr), hn, dn);
|
rtems_rootfs_append_host_rec(myaddr.sin_addr.s_addr, hn, dn);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Should the given domainname be used here ?
|
* Should the given domainname be used here ?
|
||||||
@@ -1058,12 +1058,12 @@ dhcp_init (int update_files)
|
|||||||
hn = rtems_bsdnet_bootp_server_name;
|
hn = rtems_bsdnet_bootp_server_name;
|
||||||
else
|
else
|
||||||
hn = "bootps";
|
hn = "bootps";
|
||||||
rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_bootp_server_address),
|
rtems_rootfs_append_host_rec(rtems_bsdnet_bootp_server_address.s_addr,
|
||||||
hn, dn);
|
hn, dn);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dhcp_gotlogserver) {
|
if (dhcp_gotlogserver) {
|
||||||
rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_log_host_address),
|
rtems_rootfs_append_host_rec(rtems_bsdnet_log_host_address.s_addr,
|
||||||
"logs", dn);
|
"logs", dn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user