Changeset 15845 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Jan 7, 2009 7:51:29 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.c
r15407 r15845 319 319 struct bootp_t *bp = mtod(m, struct bootp_t *); 320 320 321 if (bp->bp_op == BOOTP_REQUEST) {321 if (bp->bp_op == BOOTP_REQUEST) 322 322 bootp_reply(pData, bp); 323 } 324 } 323 } -
trunk/src/VBox/Devices/Network/slirp/ip_input.c
r15792 r15845 526 526 fpp = fp; 527 527 fp = TAILQ_NEXT(fp, ipq_list); 528 if(--fpp->ipq_ttl == 0) { 528 if(--fpp->ipq_ttl == 0) 529 { 529 530 ipstat.ips_fragtimeout += fpp->ipq_nfrags; 530 531 ip_freef(pData, &ipq[i], fpp); -
trunk/src/VBox/Devices/Network/slirp/tcp_input.c
r15792 r15845 515 515 #if 0 516 516 if (ts_present && SEQ_LEQ(ti->ti_seq, tp->last_ack_sent) && 517 SEQ_LT(tp->last_ack_sent, ti->ti_seq + ti->ti_len)) { 517 SEQ_LT(tp->last_ack_sent, ti->ti_seq + ti->ti_len)) 518 { 518 519 tp->ts_recent_age = tcp_now; 519 520 tp->ts_recent = ts_val; -
trunk/src/VBox/Devices/Network/slirp/tcp_timer.c
r14964 r15845 279 279 goto dropit; 280 280 /* if (tp->t_socket->so_options & SO_KEEPALIVE && */ 281 if ((so_options) && tp->t_state <= TCPS_CLOSE_WAIT) { 281 if ((so_options) && tp->t_state <= TCPS_CLOSE_WAIT) 282 { 282 283 if (tp->t_idle >= tcp_keepidle + tcp_maxidle) 283 284 goto dropit; -
trunk/src/VBox/Devices/Network/slirp/tftp.c
r14964 r15845 305 305 if ( !strncmp((const char*)spt->filename, "../", 3) 306 306 || (spt->filename[strlen((const char *)spt->filename) - 1] == '/') 307 || strstr((const char *)spt->filename, "/../")) { 307 || strstr((const char *)spt->filename, "/../")) 308 { 308 309 tftp_send_error(pData, spt, 2, "Access violation", tp); 309 310 return; -
trunk/src/VBox/Devices/Network/slirp/udp.c
r15792 r15845 238 238 239 239 ttl = ip->ip_ttl = save_ip.ip_ttl; 240 ret = setsockopt(so->s, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl));241 if (ret < 0) {242 LogRel(("NAT: Error (%s) occurred while setting TTL(%d) attribute of IP packet to socket %R[natsock]\n", strerror(errno), ip->ip_ttl, so));243 }240 ret = setsockopt(so->s, IPPROTO_IP, IP_TTL, (const char*)&ttl, sizeof(ttl)); 241 if (ret < 0) 242 LogRel(("NAT: Error (%s) occurred while setting TTL(%d) attribute " 243 "of IP packet to socket %R[natsock]\n", strerror(errno), ip->ip_ttl, so)); 244 244 245 245 if (sosendto(pData, so, m) == -1)
Note:
See TracChangeset
for help on using the changeset viewer.