VirtualBox

Ignore:
Timestamp:
Jan 27, 2009 7:01:51 AM (16 years ago)
Author:
vboxsync
Message:

NAT: returning router to CTL_ALIAS, next server now is CTL_TFTP

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bootp.c

    r16226 r16249  
    215215        RTStrPrintf((char*)rbp->bp_file, sizeof(rbp->bp_file), "%s", bootp_filename);
    216216
    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;
    218218    saddr.sin_port = htons(BOOTP_SERVER);
    219219
     
    228228    rbp->bp_yiaddr = daddr.sin_addr; /* Client IP address */
    229229    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);
    230233
    231234    q = rbp->bp_vend;
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r16226 r16249  
    374374    bootp_filename = pszBootFile;
    375375    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);
    376378
    377379#ifdef RT_OS_WINDOWS
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r16226 r16249  
    105105    struct dns_list_head dns_list_head;
    106106#endif
     107    struct in_addr tftp_server;
    107108    struct in_addr loopback_addr;
    108109    uint32_t netmask;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette