VirtualBox

Ignore:
Timestamp:
Oct 16, 2007 5:00:04 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25365
Message:

Make PXE booting in NAT mode work without much hassle.

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

Legend:

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

    r2938 r5332  
    187187    }
    188188
    189     if (bootp_filename)
     189    if (tftp_prefix && RTDirExists(tftp_prefix) && bootp_filename)
    190190        RTStrPrintf((char*)rbp->bp_file, sizeof(rbp->bp_file), "%s", bootp_filename);
    191191
  • trunk/src/VBox/Devices/Network/slirp/libslirp.h

    r5266 r5332  
    2727#endif
    2828
    29 int slirp_init(PNATState *, const char *, bool, void *);
     29int slirp_init(PNATState *, const char *, bool, const char *, const char *, void *);
    3030void slirp_term(PNATState);
    3131void slirp_link_up(PNATState);
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r3693 r5332  
    169169#endif
    170170
    171 int slirp_init(PNATState *ppData, const char *pszNetAddr, bool fPassDomain, void *pvUser)
     171int slirp_init(PNATState *ppData, const char *pszNetAddr, bool fPassDomain,
     172               const char *pszTFTPPrefix, const char *pszBootFile,
     173               void *pvUser)
    172174{
    173175    int fNATfailed = 0;
     
    182184    pData->cpvHashUsed = 1;
    183185#endif
     186    tftp_prefix = pszTFTPPrefix;
     187    bootp_filename = pszBootFile;
    184188
    185189#ifdef _WIN32
  • trunk/src/VBox/Devices/Network/slirp/slirp.h

    r3693 r5332  
    3232#include <iprt/assert.h>
    3333#include <iprt/string.h>
     34#include <iprt/dir.h>
    3435#include <VBox/types.h>
    3536
Note: See TracChangeset for help on using the changeset viewer.

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