10 |
|
* 2. Redistributions in binary form must reproduce the above copyright |
11 |
|
* notice, this list of conditions and the following disclaimer in the |
12 |
|
* documentation and/or other materials provided with the distribution. |
13 |
< |
* 3. All advertising materials mentioning features or use of this software |
14 |
< |
* must display the following acknowledgement: |
15 |
< |
* This product includes software developed by the University of |
16 |
< |
* California, Berkeley and its contributors. |
17 |
< |
* 4. Neither the name of the University nor the names of its contributors |
13 |
> |
* 3. Neither the name of the University nor the names of its contributors |
14 |
|
* may be used to endorse or promote products derived from this software |
15 |
|
* without specific prior written permission. |
16 |
|
* |
38 |
|
* terms and conditions of the copyright. |
39 |
|
*/ |
40 |
|
|
41 |
+ |
#include <stdlib.h> |
42 |
|
#include <slirp.h> |
43 |
|
#include "ip_icmp.h" |
44 |
|
|
202 |
|
/* udp_last_so = so; */ |
203 |
|
so->so_laddr = ip->ip_src; |
204 |
|
so->so_lport = uh->uh_sport; |
208 |
– |
so->so_faddr = ip->ip_dst; /* XXX */ |
209 |
– |
so->so_fport = uh->uh_dport; /* XXX */ |
205 |
|
|
206 |
|
if ((so->so_iptos = udp_tos(so)) == 0) |
207 |
|
so->so_iptos = ip->ip_tos; |
212 |
|
*/ |
213 |
|
} |
214 |
|
|
215 |
+ |
so->so_faddr = ip->ip_dst; /* XXX */ |
216 |
+ |
so->so_fport = uh->uh_dport; /* XXX */ |
217 |
+ |
|
218 |
|
iphlen += sizeof(struct udphdr); |
219 |
|
m->m_len -= iphlen; |
220 |
|
m->m_data += iphlen; |