Revision 7878ff6b

b/slirp/if.c
8 8
#include <slirp.h>
9 9

  
10 10
int     if_queued = 0;                  /* Number of packets queued so far */
11
int     if_thresh = 10;                 /* Number of packets queued before we start sending
12
					 * (to prevent allocing too many mbufs) */
13 11

  
14 12
struct  mbuf if_fastq;                  /* fast queue (for interactive data) */
15 13
struct  mbuf if_batchq;                 /* queue for non-interactive data */
b/slirp/if.h
33 33
#endif
34 34

  
35 35
extern int	if_queued;	/* Number of packets queued so far */
36
extern int	if_thresh;	/* Number of packets queued before we start sending
37
				 * (to prevent allocing too many mbufs) */
38 36

  
39 37
extern	struct mbuf if_fastq;                  /* fast queue (for interactive data) */
40 38
extern	struct mbuf if_batchq;                 /* queue for non-interactive data */
b/slirp/ip_icmp.c
42 42
#endif
43 43

  
44 44
/* The message sent when emulating PING */
45
/* Be nice and tell them it's just a psuedo-ping packet */
46
char icmp_ping_msg[] = "This is a psuedo-PING packet used by Slirp to emulate ICMP ECHO-REQUEST packets.\n";
45
/* Be nice and tell them it's just a pseudo-ping packet */
46
const char icmp_ping_msg[] = "This is a pseudo-PING packet used by Slirp to emulate ICMP ECHO-REQUEST packets.\n";
47 47

  
48 48
/* list of actions for icmp_error() on RX of an icmp message */
49 49
static const int icmp_flush[19] = {
b/slirp/ip_output.c
46 46

  
47 47
u_int16_t ip_id;
48 48

  
49
/* Number of packets queued before we start sending
50
 * (to prevent allocing too many mbufs) */
51
#define IF_THRESH 10
52

  
49 53
/*
50 54
 * IP output.  The packet in mbuf chain m contains a skeletal IP
51 55
 * header (with len, off, ttl, proto, tos, src, dst).
......
87 91
	 *      the packet or packet fragments
88 92
	 */
89 93
	/* XXX Hmmm... */
90
/*	if (if_queued > if_thresh && towrite <= 0) {
94
/*	if (if_queued > IF_THRESH && towrite <= 0) {
91 95
 *		error = ENOBUFS;
92 96
 *		goto bad;
93 97
 *	}
b/slirp/slirp.h
264 264

  
265 265
void lprint _P((const char *, ...));
266 266

  
267
extern int do_echo;
268

  
269 267
#if SIZEOF_CHAR_P == 4
270 268
# define insque_32 insque
271 269
# define remque_32 remque
b/slirp/tcp_subr.c
592 592
	return 0;
593 593
}
594 594

  
595
#if 0
595 596
int do_echo = -1;
597
#endif
596 598

  
597 599
/*
598 600
 * Emulate programs that try and connect to us

Also available in: Unified diff