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.7 by asvitkine, 2010-08-22T19:43:29Z

# Line 42 | Line 42
42   * terms and conditions of the copyright.
43   */
44  
45 + #include <stdlib.h>
46   #include <slirp.h>
47   #include "ip_icmp.h"
48  
# Line 205 | Line 206 | udp_input(m, iphlen)
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;
# Line 217 | Line 216 | udp_input(m, iphlen)
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines