mirror of
https://github.com/ipxe/ipxe
synced 2026-04-04 03:00:20 +03:00
Merge changes from mcb-tcp-fixes branch.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user