mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-30 05:50:09 +00:00
64 bits slirp ?
This commit is contained in:
parent
7b8beab25a
commit
000ec0f135
@ -292,7 +292,11 @@ void tcp_input(register struct mbuf *m, int iphlen, struct socket *inso)
|
|||||||
* Checksum extended TCP header and data.
|
* Checksum extended TCP header and data.
|
||||||
*/
|
*/
|
||||||
tlen = ((struct ip *)ti)->ip_len;
|
tlen = ((struct ip *)ti)->ip_len;
|
||||||
ti->ti_next = ti->ti_prev = 0;
|
//ti->ti_next = ti->ti_prev = 0;
|
||||||
|
|
||||||
|
tcpiphdr2qlink(ti)->next = tcpiphdr2qlink(ti)->prev = 0;
|
||||||
|
memset(&ti->ti_i.ih_mbuf, 0 , sizeof(struct mbuf_ptr));
|
||||||
|
|
||||||
ti->ti_x1 = 0;
|
ti->ti_x1 = 0;
|
||||||
ti->ti_len = htons((u_int16_t)tlen);
|
ti->ti_len = htons((u_int16_t)tlen);
|
||||||
len = sizeof(struct ip) + tlen;
|
len = sizeof(struct ip) + tlen;
|
||||||
|
@ -272,7 +272,10 @@ int udp_output2(struct socket *so, struct mbuf *m,
|
|||||||
* and addresses and length put into network format.
|
* and addresses and length put into network format.
|
||||||
*/
|
*/
|
||||||
ui = mtod(m, struct udpiphdr *);
|
ui = mtod(m, struct udpiphdr *);
|
||||||
ui->ui_next = ui->ui_prev = 0;
|
//ui->ui_next = ui->ui_prev = 0;
|
||||||
|
|
||||||
|
memset(&ui->ui_i.ih_mbuf, 0 , sizeof(struct mbuf_ptr));
|
||||||
|
|
||||||
ui->ui_x1 = 0;
|
ui->ui_x1 = 0;
|
||||||
ui->ui_pr = IPPROTO_UDP;
|
ui->ui_pr = IPPROTO_UDP;
|
||||||
ui->ui_len = htons((u_short) (m->m_len - sizeof(struct ip))); /* + sizeof (struct udphdr)); */
|
ui->ui_len = htons((u_short) (m->m_len - sizeof(struct ip))); /* + sizeof (struct udphdr)); */
|
||||||
|
Loading…
Reference in New Issue
Block a user