Changeset 16249 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Jan 27, 2009 7:01:51 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.c
r16226 r16249 215 215 RTStrPrintf((char*)rbp->bp_file, sizeof(rbp->bp_file), "%s", bootp_filename); 216 216 217 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_TFTP);217 saddr.sin_addr.s_addr = pData->tftp_server.s_addr; 218 218 saddr.sin_port = htons(BOOTP_SERVER); 219 219 … … 228 228 rbp->bp_yiaddr = daddr.sin_addr; /* Client IP address */ 229 229 rbp->bp_siaddr = saddr.sin_addr; /* Server IP address */ 230 231 /*XXX: latter it used for initialization of gateway*/ 232 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS); 230 233 231 234 q = rbp->bp_vend; -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r16226 r16249 374 374 bootp_filename = pszBootFile; 375 375 pData->netmask = u32Netmask; 376 /* @todo: add ability to configurate this staff */ 377 pData->tftp_server.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_TFTP); 376 378 377 379 #ifdef RT_OS_WINDOWS -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r16226 r16249 105 105 struct dns_list_head dns_list_head; 106 106 #endif 107 struct in_addr tftp_server; 107 108 struct in_addr loopback_addr; 108 109 uint32_t netmask;
Note:
See TracChangeset
for help on using the changeset viewer.