Changeset 86843 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Nov 10, 2020 4:26:48 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 141292
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/socket.h
r82968 r86843 60 60 * so_mconn, for non-blocking connections */ 61 61 uint8_t *so_ohdr; /* unmolested IP header of the datagram in so_m */ 62 caddr_t so_optp; /* tcp options in so_m */ 63 int so_optlen; /* length of options in so_m */ 62 64 int so_urgc; 63 65 struct in_addr so_faddr; /* foreign host table entry */ -
trunk/src/VBox/Devices/Network/slirp/tcp_input.c
r82968 r86843 324 324 so = inso; 325 325 Log4(("NAT: tcp_input: %R[natsock]\n", so)); 326 326 327 /* Re-set a few variables */ 327 328 tp = sototcpcb(so); 329 328 330 m = so->so_m; 329 so->so_m = 0; 331 optp = so->so_optp; /* points into m if set */ 332 optlen = so->so_optlen; 333 so->so_m = NULL; 334 so->so_optp = 0; 335 so->so_optlen = 0; 330 336 331 337 if (RT_LIKELY(so->so_ohdr != NULL)) … … 826 832 so->so_ti = ti; 827 833 so->so_ohdr = RTMemDup(ohdr, ohdrlen); 834 so->so_optp = optp; 835 so->so_optlen = optlen; 828 836 tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT; 829 837 TCP_STATE_SWITCH_TO(tp, TCPS_SYN_RECEIVED); … … 2015 2023 int mss; 2016 2024 2017 LogFlowFunc(("ENTER: tcp_mss: tp = %R[tcpcb793], offer = %d\n", tp, offer)); 2025 LogFlowFunc(("ENTER: tcp_mss: offer=%u, t_maxseg=%u; tp=%R[natsock]\n", 2026 offer, (unsigned int)tp->t_maxseg, so)); 2018 2027 2019 2028 mss = min(if_mtu, if_mru) - sizeof(struct tcpiphdr); … … 2029 2038 sbreserve(pData, &so->so_rcv, tcp_rcvspace+((tcp_rcvspace%mss)?(mss-(tcp_rcvspace%mss)):0)); 2030 2039 2031 Log2((" returning mss = %d\n", mss)); 2032 2040 LogFlowFunc(("LEAVE: mss=%d\n", mss)); 2033 2041 return mss; 2034 2042 }
Note:
See TracChangeset
for help on using the changeset viewer.