tcp_subr.c revision 56ce5cb366159dd5df5d864239dcc0327f262671
893N/A * available from http://www.virtualbox.org. This file is free software;
893N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
3471N/A * @(#)tcp_subr.c 8.1 (Berkeley) 6/10/93
893N/A * tcp_subr.c,v 1.5 1994/10/08 22:39:58 phk Exp
893N/A#define WANT_SYS_IOCTL_H
3471N/Atcp_respond(PNATState pData, struct tcpcb *tp, struct tcpiphdr *ti, struct mbuf *m, tcp_seq ack, tcp_seq seq, int flags)
893N/A#ifndef VBOX_WITH_SLIRP_BSD_MBUF
3471N/A#ifdef TCP_COMPAT_42
struct tcpcb *
return ((struct tcpcb *)0);
return (tp);
struct tcpcb *
return ((struct tcpcb *)0);
if (tp)
case TCPS_CLOSED:
case TCPS_LISTEN:
case TCPS_SYN_SENT:
case TCPS_SYN_RECEIVED:
case TCPS_ESTABLISHED:
case TCPS_CLOSE_WAIT:
if ( tp
* (see slirp.c for details about setting so_close member).
if ( tp
int ret = 0;
fd_nonblock(s);
case CTL_DNS:
case CTL_ALIAS:
"addr.sin_addr.s_addr=%.16s\n",
return(ret);
int s, opt;
int status;
fd_nonblock(s);
optlen = sizeof(int);
if (status < 0)
goto no_sockopt;
if (cVerbose > 0)
if (status < 0)
goto no_sockopt;
optlen = sizeof(int);
if (status < 0)
goto no_sockopt;
if (cVerbose > 0)
if (status < 0)
goto no_sockopt;
if (cVerbose > 0)
cVerbose--;
so->s = s;
* && (TCP_MAXWIN << tp->request_r_scale) < so->so_rcv.sb_hiwat)
NSOCK_INC();