Revision eb38c52c slirp/ip_icmp.c
b/slirp/ip_icmp.c | ||
---|---|---|
228 | 228 |
/* check msrc */ |
229 | 229 |
if(!msrc) goto end_error; |
230 | 230 |
ip = mtod(msrc, struct ip *); |
231 |
#if DEBUG |
|
231 |
#ifdef DEBUG
|
|
232 | 232 |
{ char bufa[20], bufb[20]; |
233 | 233 |
strcpy(bufa, inet_ntoa(ip->ip_src)); |
234 | 234 |
strcpy(bufb, inet_ntoa(ip->ip_dst)); |
... | ... | |
285 | 285 |
HTONS(icp->icmp_ip.ip_id); |
286 | 286 |
HTONS(icp->icmp_ip.ip_off); |
287 | 287 |
|
288 |
#if DEBUG |
|
288 |
#ifdef DEBUG
|
|
289 | 289 |
if(message) { /* DEBUG : append message to ICMP packet */ |
290 | 290 |
int message_len; |
291 | 291 |
char *cpnt; |
Also available in: Unified diff