mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-26 01:49:52 +03:00

We cannot canonicalize myaddr and not the from address. We need to canonicalize both of them, or else we'll try to create an IPv4 socket and bind an IPv6-mapped IPv4 address to it, which is going to fail. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
22 lines
585 B
C
22 lines
585 B
C
/* ----------------------------------------------------------------------- *
|
|
*
|
|
* Copyright 2001-2006 H. Peter Anvin - All Rights Reserved
|
|
*
|
|
* This program is free software available under the same license
|
|
* as the "OpenBSD" operating system, distributed at
|
|
* http://www.openbsd.org/.
|
|
*
|
|
* ----------------------------------------------------------------------- */
|
|
|
|
/*
|
|
* recvfrom.h
|
|
*
|
|
* Header for recvfrom substitute
|
|
*
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
int
|
|
myrecvfrom(int s, void *buf, int len, unsigned int flags,
|
|
union sock_addr *from, union sock_addr *myaddr);
|