ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/udp.c
(Generate patch)

Comparing BasiliskII/src/slirp/udp.c (file contents):
Revision 1.5 by gbeauche, 2007-11-03T11:11:42Z vs.
Revision 1.8 by asvitkine, 2012-03-30T01:10:28Z

# Line 10 | Line 10
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   *
# Line 42 | Line 38
38   * terms and conditions of the copyright.
39   */
40  
41 + #include <stdlib.h>
42   #include <slirp.h>
43   #include "ip_icmp.h"
44  
# Line 205 | Line 202 | udp_input(m, iphlen)
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;
# Line 217 | Line 212 | udp_input(m, iphlen)
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines