42 |
|
* terms and conditions of the copyright. |
43 |
|
*/ |
44 |
|
|
45 |
+ |
#include <stdlib.h> |
46 |
|
#include <slirp.h> |
47 |
|
#include "ip_icmp.h" |
48 |
|
|
206 |
|
/* udp_last_so = so; */ |
207 |
|
so->so_laddr = ip->ip_src; |
208 |
|
so->so_lport = uh->uh_sport; |
208 |
– |
so->so_faddr = ip->ip_dst; /* XXX */ |
209 |
– |
so->so_fport = uh->uh_dport; /* XXX */ |
209 |
|
|
210 |
|
if ((so->so_iptos = udp_tos(so)) == 0) |
211 |
|
so->so_iptos = ip->ip_tos; |
216 |
|
*/ |
217 |
|
} |
218 |
|
|
219 |
+ |
so->so_faddr = ip->ip_dst; /* XXX */ |
220 |
+ |
so->so_fport = uh->uh_dport; /* XXX */ |
221 |
+ |
|
222 |
|
iphlen += sizeof(struct udphdr); |
223 |
|
m->m_len -= iphlen; |
224 |
|
m->m_data += iphlen; |