VirtualBox

Changeset 21112 in vbox for trunk


Ignore:
Timestamp:
Jul 1, 2009 4:55:22 AM (16 years ago)
Author:
vboxsync
Message:

NAT: use constant

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r21048 r21112  
    2828#define __STDC_CONSTANT_MACROS
    2929#include "slirp/libslirp.h"
     30#include "slirp/ctl.h"
    3031#include <VBox/pdmdrv.h>
    3132#include <iprt/assert.h>
     
    730731        struct in_addr GuestIP;
    731732        /* @todo (vvl) use CTL_* */
    732         GETIP_DEF(rc, pThis, pNode, GuestIP, htonl(Network | 15));
     733        GETIP_DEF(rc, pThis, pNode, GuestIP, htonl(Network | CTL_GUEST));
    733734
    734735        /*
  • trunk/src/VBox/Devices/Network/slirp/ctl.h

    r16213 r21112  
    44#define CTL_DNS         3
    55#define CTL_TFTP        4
     6#define CTL_GUEST       15
    67#define CTL_BROADCAST   255
    78
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