Revision 7878ff6b slirp/ip_output.c
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 |
* } |
Also available in: Unified diff