forked from mirrors/tftp-hpa-google

Add support for IPv6 in the server and client. You can force the use of IPv4 or IPv6 only with new -4 and -6 commandline options, if IPv6 support was compiled in. Signed-off-by: Karsten Keil <kkeil@suse.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
23 lines
616 B
C
23 lines
616 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,
|
|
struct sockaddr *from, socklen_t *fromlen,
|
|
union sock_addr *myaddr);
|