udp.c revision 74853b3588bff974298f37b7cb5a1811e8ff9ac1
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Copyright (c) 1982, 1986, 1988, 1990, 1993
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * The Regents of the University of California. All rights reserved.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Redistribution and use in source and binary forms, with or without
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * modification, are permitted provided that the following conditions
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * 1. Redistributions of source code must retain the above copyright
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * notice, this list of conditions and the following disclaimer.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * 2. Redistributions in binary form must reproduce the above copyright
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * notice, this list of conditions and the following disclaimer in the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * documentation and/or other materials provided with the distribution.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * 3. All advertising materials mentioning features or use of this software
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * must display the following acknowledgement:
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * This product includes software developed by the University of
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * California, Berkeley and its contributors.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * 4. Neither the name of the University nor the names of its contributors
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * may be used to endorse or promote products derived from this software
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * without specific prior written permission.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * SUCH DAMAGE.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * udp_usrreq.c,v 1.4 1994/10/02 17:48:45 phk Exp
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Changes and additions relating to SLiRP
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Copyright (c) 1995 Danny Gasparovski.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Please read the file COPYRIGHT for the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * terms and conditions of the copyright.
int len;
goto bad;
goto bad;
goto bad;
goto bad;
goto bad;
bad:
int iptos)
int error = 0;
if (udpcksum) {
return (error);
#ifdef _WIN32
return(so->s);
#ifdef EMULATE_TALK
#include "talkd.h"
#ifdef EMULATE_TALK
struct talk_request {
} *req;
struct cu_header {
} *cu_head;
#ifdef EMULATE_TALK
case EMU_TALK:
case EMU_NTALK:
&addrlen);
closesocket(s) ;
closesocket(s);
case EMU_CUSEEME:
struct socket *
return NULL;
return NULL;
return so;