summaryrefslogtreecommitdiff
path: root/slirp/ip_output.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 19:34:46 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 19:34:46 +0000
commit7878ff6bc7c9bc4091d19a51a1dc4bac2df23560 (patch)
tree530fe0abc37ba5b90cdac67d9698b1bc27ce228a /slirp/ip_output.c
parent9634d9031c140b24c7ca0d8872632207f6ce7275 (diff)
Add const etc. to places forgotten from the previous commit
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3453 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/ip_output.c')
-rw-r--r--slirp/ip_output.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/slirp/ip_output.c b/slirp/ip_output.c
index 86cf3a0339..a8a6067bda 100644
--- a/slirp/ip_output.c
+++ b/slirp/ip_output.c
@@ -46,6 +46,10 @@
u_int16_t ip_id;
+/* Number of packets queued before we start sending
+ * (to prevent allocing too many mbufs) */
+#define IF_THRESH 10
+
/*
* IP output. The packet in mbuf chain m contains a skeletal IP
* header (with len, off, ttl, proto, tos, src, dst).
@@ -87,7 +91,7 @@ ip_output(so, m0)
* the packet or packet fragments
*/
/* XXX Hmmm... */
-/* if (if_queued > if_thresh && towrite <= 0) {
+/* if (if_queued > IF_THRESH && towrite <= 0) {
* error = ENOBUFS;
* goto bad;
* }