next part of ipv6-ization is here: wget & httpd
This commit is contained in:
@@ -132,7 +132,7 @@ static int tftp(
|
||||
#endif
|
||||
const len_and_sockaddr *peer_lsa,
|
||||
const char *remotefile, const int localfd,
|
||||
const unsigned port, int tftp_bufsize)
|
||||
unsigned port, int tftp_bufsize)
|
||||
{
|
||||
struct timeval tv;
|
||||
fd_set rfds;
|
||||
@@ -154,6 +154,8 @@ static int tftp(
|
||||
char *xbuf = xmalloc(tftp_bufsize += 4);
|
||||
char *rbuf = xmalloc(tftp_bufsize);
|
||||
|
||||
port = htons(port);
|
||||
|
||||
socketfd = xsocket(peer_lsa->sa.sa_family, SOCK_DGRAM, 0);
|
||||
|
||||
/* build opcode */
|
||||
|
Reference in New Issue
Block a user