Revision 31a60e22 slirp/ip_output.c
b/slirp/ip_output.c | ||
---|---|---|
80 | 80 |
ip->ip_off &= IP_DF; |
81 | 81 |
ip->ip_id = htons(ip_id++); |
82 | 82 |
ip->ip_hl = hlen >> 2; |
83 |
ipstat.ips_localout++;
|
|
83 |
STAT(ipstat.ips_localout++);
|
|
84 | 84 |
|
85 | 85 |
/* |
86 | 86 |
* Verify that we have any chance at all of being able to queue |
... | ... | |
112 | 112 |
*/ |
113 | 113 |
if (ip->ip_off & IP_DF) { |
114 | 114 |
error = -1; |
115 |
ipstat.ips_cantfrag++;
|
|
115 |
STAT(ipstat.ips_cantfrag++);
|
|
116 | 116 |
goto bad; |
117 | 117 |
} |
118 | 118 |
|
... | ... | |
137 | 137 |
m = m_get(); |
138 | 138 |
if (m == 0) { |
139 | 139 |
error = -1; |
140 |
ipstat.ips_odropped++;
|
|
140 |
STAT(ipstat.ips_odropped++);
|
|
141 | 141 |
goto sendorfree; |
142 | 142 |
} |
143 | 143 |
m->m_data += if_maxlinkhdr; |
... | ... | |
170 | 170 |
mhip->ip_sum = cksum(m, mhlen); |
171 | 171 |
*mnext = m; |
172 | 172 |
mnext = &m->m_nextpkt; |
173 |
ipstat.ips_ofragments++;
|
|
173 |
STAT(ipstat.ips_ofragments++);
|
|
174 | 174 |
} |
175 | 175 |
/* |
176 | 176 |
* Update first fragment by trimming what's been copied out |
... | ... | |
193 | 193 |
} |
194 | 194 |
|
195 | 195 |
if (error == 0) |
196 |
ipstat.ips_fragmented++;
|
|
196 |
STAT(ipstat.ips_fragmented++);
|
|
197 | 197 |
} |
198 | 198 |
|
199 | 199 |
done: |
Also available in: Unified diff