Changeset 39894 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jan 27, 2012 6:35:38 AM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/dnsproxy/dnsproxy.c
r37746 r39894 127 127 return; 128 128 } 129 if(udp_attach(pData, so1 , 0) == -1)129 if(udp_attach(pData, so1) == -1) 130 130 { 131 131 LogRel(("NAT: can't attach udp socket\n")); -
trunk/src/VBox/Devices/Network/slirp/udp.c
r39299 r39894 179 179 } 180 180 181 LogFunc(("uh src: %RTnaipv4:%d, dst: %RTnaipv4:%d\n", ip->ip_src, RT_H2N_U16_C(uh->uh_sport), ip->ip_dst, RT_H2N_U16_C(uh->uh_dport))); 181 182 if ( pData->fUseHostResolver 182 183 && uh->uh_dport == RT_H2N_U16_C(53) … … 245 246 goto bad_free_mbuf; 246 247 } 247 if (udp_attach(pData, so , 0) <= 0)248 if (udp_attach(pData, so) <= 0) 248 249 { 249 250 Log2(("NAT: IP(id: %hd) udp_attach errno = %d (%s)\n", … … 447 448 448 449 int 449 udp_attach(PNATState pData, struct socket *so , int service_port)450 udp_attach(PNATState pData, struct socket *so) 450 451 { 451 452 struct sockaddr_in *addr; … … 468 469 #endif 469 470 addr->sin_family = AF_INET; 470 addr->sin_port = service_port;471 471 addr->sin_addr.s_addr = pData->bindIP.s_addr; 472 472 fd_nonblock(so->s); -
trunk/src/VBox/Devices/Network/slirp/udp.h
r28800 r39894 125 125 void udp_input (PNATState, register struct mbuf *, int); 126 126 int udp_output (PNATState, struct socket *, struct mbuf *, struct sockaddr_in *); 127 int udp_attach (PNATState, struct socket * , int service_port);127 int udp_attach (PNATState, struct socket *); 128 128 void udp_detach (PNATState, struct socket *); 129 129 u_int8_t udp_tos (struct socket *);
Note:
See TracChangeset
for help on using the changeset viewer.