Changeset 15219 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Dec 10, 2008 2:22:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r15201 r15219 198 198 int icmplen=ip->ip_len; 199 199 int status; 200 #ifdef VBOX_WITH_SLIRP_ICMP 201 uint32_t dst; 202 #endif 203 200 204 /* int code; */ 201 205 … … 242 246 243 247 ip->ip_len += hlen; /* since ip_input subtracts this */ 244 if (ip->ip_dst.s_addr == alias_addr.s_addr) 248 dst = ip->ip_dst.s_addr; 249 if (dst == alias_addr.s_addr) 245 250 { 246 251 #ifdef VBOX_WITH_SLIRP_ICMP 247 252 icp->icmp_type = ICMP_ECHOREPLY; 253 ip->ip_dst.s_addr = ip->ip_src.s_addr; 254 ip->ip_src.s_addr = dst; 248 255 #endif /* VBOX_WITH_SLIRP_ICMP */ 249 256 icmp_reflect(pData, m);
Note:
See TracChangeset
for help on using the changeset viewer.