Changeset 40421 in vbox
- Timestamp:
- Mar 11, 2012 2:28:13 AM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.c
r40122 r40421 348 348 static int dhcp_send_nack(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m) 349 349 { 350 struct bootp_t *rbp;351 rbp = mtod(m, struct bootp_t *);352 350 NOREF(bc); 353 351 -
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r40048 r40421 201 201 struct socket *last_socket = NULL; 202 202 struct socket *so = NULL; 203 struct in_addr laddr,faddr;203 struct in_addr faddr; 204 204 u_short lport, fport; 205 205 206 laddr.s_addr = ~0;207 206 faddr.s_addr = ~0; 208 207 … … 260 259 faddr.s_addr = ip->ip_dst.s_addr; 261 260 fport = udp->uh_dport; 262 laddr.s_addr = ip->ip_src.s_addr;263 261 lport = udp->uh_sport; 264 262 last_socket = udp_last_so; … … 272 270 faddr.s_addr = ip->ip_dst.s_addr; 273 271 fport = tcp->th_dport; 274 laddr.s_addr = ip->ip_src.s_addr;275 272 lport = tcp->th_sport; 276 273 last_socket = tcp_last_so; … … 709 706 /* DEBUG : append message to ICMP packet */ 710 707 int message_len; 711 char *cpnt;712 708 message_len = strlen(message); 713 709 if (message_len > ICMP_MAXDATALEN) 714 710 message_len = ICMP_MAXDATALEN; 715 cpnt = (char *)m->m_data+m->m_len;716 711 m_append(pData, m, message_len, message); 717 712 }
Note:
See TracChangeset
for help on using the changeset viewer.