summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2006-12-28 00:09:46 +0100
committerMichael Brown2006-12-28 00:09:46 +0100
commit61ed298bc7dc60c84fea456444e853a73de0c901 (patch)
tree99978dfeb667df0f79356cc4132f99922e2fd803 /src/tests
parentKeep running the main processing loop while waiting for input. (diff)
downloadipxe-61ed298bc7dc60c84fea456444e853a73de0c901.tar.gz
ipxe-61ed298bc7dc60c84fea456444e853a73de0c901.tar.xz
ipxe-61ed298bc7dc60c84fea456444e853a73de0c901.zip
Merge changes from mcb-tcp-fixes branch.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/ftptest.c2
-rw-r--r--src/tests/hellotest.c2
-rw-r--r--src/tests/httptest.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/ftptest.c b/src/tests/ftptest.c
index 6b0002fb..c4795c04 100644
--- a/src/tests/ftptest.c
+++ b/src/tests/ftptest.c
@@ -29,7 +29,7 @@ void test_ftp ( struct sockaddr_tcpip *server, const char *filename ) {
printf ( "FTP fetching %s\n", filename );
memset ( &ftp, 0, sizeof ( ftp ) );
- memcpy ( &ftp.tcp.peer, server, sizeof ( ftp.tcp.peer ) );
+ memcpy ( &ftp.server, server, sizeof ( ftp.server ) );
ftp.filename = filename;
ftp.callback = test_ftp_callback;
diff --git a/src/tests/hellotest.c b/src/tests/hellotest.c
index 4565f13a..a873c03e 100644
--- a/src/tests/hellotest.c
+++ b/src/tests/hellotest.c
@@ -32,7 +32,7 @@ void test_hello ( struct sockaddr_tcpip *server, const char *message ) {
inet_ntoa ( sin->sin_addr ), ntohs ( sin->sin_port ) );
memset ( &hello, 0, sizeof ( hello ) );
- memcpy ( &hello.tcp.peer, server, sizeof ( hello.tcp.peer ) );
+ memcpy ( &hello.server, server, sizeof ( hello.server ) );
hello.message = message;
hello.callback = test_hello_callback;
diff --git a/src/tests/httptest.c b/src/tests/httptest.c
index 4b569e85..7e08f079 100644
--- a/src/tests/httptest.c
+++ b/src/tests/httptest.c
@@ -21,7 +21,7 @@ void test_http ( struct net_device *netdev, struct sockaddr_tcpip *server, const
int rc;
memset ( &http, 0, sizeof ( http ) );
- memcpy ( &http.tcp.peer, server, sizeof ( http.tcp.peer ) );
+ memcpy ( &http.server, server, sizeof ( http.server ) );
http.filename = filename;
http.callback = test_http_callback;