Changeset 45356 in vbox
- Timestamp:
- Apr 5, 2013 7:01:27 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84772
- Location:
- trunk/src/VBox
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp
r44529 r45356 5 5 6 6 /* 7 * Copyright (C) 2007-201 2Oracle Corporation7 * Copyright (C) 2007-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 383 383 384 384 #elif defined(RT_OS_HAIKU) 385 /* The ioctl hook in Haiku does take the len parameter when specified, 386 * so just use it. 387 */ 385 /* The ioctl hook in Haiku does take the len parameter when specified, 386 * so just use it. */ 388 387 int rc = ioctl((int)g_File, iFunction, pvData, cbData); 389 388 if (RT_LIKELY(rc == 0)) -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r44912 r45356 5 5 6 6 /* 7 * Copyright (C) 2009-201 2Oracle Corporation7 * Copyright (C) 2009-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 393 393 static dbus_bool_t vboxService_dbus_message_get_args(DBusMessage *message, 394 394 DBusError *error, 395 int 395 int first_arg_type, 396 396 ...) 397 397 { -
trunk/src/VBox/Additions/haiku/VBoxTray/VBoxGuestDeskbarView.h
r43364 r45356 5 5 6 6 /* 7 * Copyright (C) 2012 Oracle Corporation7 * Copyright (C) 2012-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 72 72 virtual ~VBoxGuestDeskbarView(); 73 73 74 74 static BArchivable* Instantiate(BMessage *data); 75 75 virtual status_t Archive(BMessage *data, bool deep = true) const; 76 76 -
trunk/src/VBox/Additions/haiku/VBoxVideo/driver/driver.cpp
r43415 r45356 5 5 6 6 /* 7 * Copyright (C) 2012 Oracle Corporation7 * Copyright (C) 2012 Oracle-2013 Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 114 114 struct DeviceInfo 115 115 { 116 uint32 openCount; 117 uint32 flags; 118 area_id sharedArea; 119 SharedInfo *sharedInfo; 120 pci_info pciInfo; 116 uint32 openCount; /* Count of how many times device has been opened */ 117 uint32 flags; /* Device flags */ 118 area_id sharedArea; /* Area shared between driver and all accelerants */ 119 SharedInfo *sharedInfo; /* Pointer to shared info area memory */ 120 pci_info pciInfo; /* Copy of pci info for this device */ 121 121 char name[B_OS_NAME_LENGTH]; /* Name of device */ 122 122 }; -
trunk/src/VBox/Additions/linux/drm/vboxvideo.h
r44529 r45356 5 5 6 6 /* 7 * Copyright (C) 2011-201 2Oracle Corporation7 * Copyright (C) 2011-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 68 68 struct vboxvideo_mode_info mode_info; 69 69 70 int 70 int num_crtc; 71 71 }; 72 72 73 #endif 73 #endif /* __DRM_VBOXVIDEO_H__ */ -
trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse.c
r44528 r45356 4 4 5 5 /* 6 * Copyright (C) 2006-201 2Oracle Corporation6 * Copyright (C) 2006-2013 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 117 117 #elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 118 118 VBoxPtrCtrlProc, GetMotionHistorySize(), 119 119 2 /* Number of axes */ 120 120 #else 121 121 # error Unsupported version of X.Org -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r45000 r45356 6 6 7 7 /* 8 * Copyright (C) 2006-201 2Oracle Corporation8 * Copyright (C) 2006-2013 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 157 157 { 158 158 {VBOX_DEVICEID, "vbox"}, 159 {-1, 159 {-1, NULL} 160 160 }; 161 161 162 162 static PciChipsets VBOXPCIchipsets[] = { 163 163 { VBOX_DEVICEID, VBOX_DEVICEID, RES_SHARED_VGA }, 164 { -1, -1,RES_UNDEFINED },164 { -1, -1, RES_UNDEFINED }, 165 165 }; 166 166 … … 199 199 /* No options for now */ 200 200 static const OptionInfoRec VBOXOptions[] = { 201 { -1, NULL, OPTV_NONE, {0},FALSE }201 { -1, NULL, OPTV_NONE, {0}, FALSE } 202 202 }; 203 203 … … 391 391 /* We always like modes specified by the user in the configuration 392 392 * file and modes requested by the host, as doing otherwise is likely to 393 393 * annoy people. */ 394 394 if ( !(mode->type & M_T_USERDEF) 395 395 && !(mode->type & M_T_PREFERRED) … … 576 576 0, /* Module minor version. Xorg-specific */ 577 577 1, /* Module patchlevel. Xorg-specific */ 578 ABI_CLASS_VIDEODRV, 578 ABI_CLASS_VIDEODRV, /* This is a video driver */ 579 579 ABI_VIDEODRV_VERSION, 580 580 MOD_CLASS_VIDEODRV, … … 1131 1131 /* colourmap code */ 1132 1132 if (!miCreateDefColormap(pScreen)) 1133 1133 return (FALSE); 1134 1134 1135 1135 if(!xf86HandleColormaps(pScreen, 256, 8, vboxLoadPalette, NULL, 0)) -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r45000 r45356 102 102 #include "xf86Cursor.h" 103 103 104 #define VBOX_VERSION 105 #define VBOX_NAME 106 #define VBOX_DRIVER_NAME 104 #define VBOX_VERSION 4000 /* Why? */ 105 #define VBOX_NAME "VBoxVideo" 106 #define VBOX_DRIVER_NAME "vboxvideo" 107 107 108 108 #ifdef VBOX_DRI -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_dri.c
r44528 r45356 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 251 251 sprintf(pDRIInfo->busIdString, "PCI:%d:%d:%d", 252 252 ((pciConfigPtr)pVBox->pciInfo->thisCard)->busnum, 253 253 ((pciConfigPtr)pVBox->pciInfo->thisCard)->devnum, 254 254 ((pciConfigPtr)pVBox->pciInfo->thisCard)->funcnum); 255 255 #endif -
trunk/src/VBox/Devices/Network/DevINIP.cpp
r45025 r45356 339 339 PDMDEV_SET_ERROR(pDevIns, rc, 340 340 N_("Configuration error: Failed to get the \"IP\" value")); 341 342 343 341 /* @todo: perhaps we should panic if IPv4 address isn't specify, with assumtion that 342 * ISCSI target specified in IPv6 form. 343 */ 344 344 return rc; 345 345 } … … 445 445 } 446 446 #else 447 448 449 447 /* We've setup flags NETIF_FLAG_ETHARP and NETIF_FLAG_ETHERNET 448 so this should be thread-safe. */ 449 tcpip_input(p,iface); 450 450 #endif 451 451 } -
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r44824 r45356 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 4998 4998 case kIntNetTrunkType_WhateverNone: 4999 4999 #ifdef VBOX_WITH_NAT_SERVICE 5000 5001 5002 5003 5004 5000 /* 5001 * Well, here we don't want load anything special, 5002 * just communicate between processes via internal network. 5003 */ 5004 case kIntNetTrunkType_SrvNat: 5005 5005 #endif 5006 5006 return VINF_SUCCESS; … … 5024 5024 break; 5025 5025 #ifndef VBOX_WITH_NAT_SERVICE 5026 5027 5026 case kIntNetTrunkType_SrvNat: 5027 pszName = "VBoxSrvNat"; 5028 5028 break; 5029 5029 #endif … … 5488 5488 if ( enmTrunkType == kIntNetTrunkType_WhateverNone 5489 5489 #ifdef VBOX_WITH_NAT_SERVICE 5490 5490 || enmTrunkType == kIntNetTrunkType_SrvNat /* @todo: what does it mean */ 5491 5491 #endif 5492 5492 || ( pCur->enmTrunkType == enmTrunkType 5493 5493 && !strcmp(pCur->szTrunk, pszTrunk))) 5494 5494 { 5495 5495 rc = intnetR0CheckOpenNetworkFlags(pCur, fFlags); … … 5588 5588 if ( enmTrunkType == kIntNetTrunkType_WhateverNone 5589 5589 #ifdef VBOX_WITH_NAT_SERVICE 5590 5590 || enmTrunkType == kIntNetTrunkType_SrvNat /* simialar security */ 5591 5591 #endif 5592 5592 || enmTrunkType == kIntNetTrunkType_None) … … 5756 5756 case kIntNetTrunkType_WhateverNone: 5757 5757 #ifdef VBOX_WITH_NAT_SERVICE 5758 5758 case kIntNetTrunkType_SrvNat: 5759 5759 #endif 5760 5760 if (*pszTrunk) -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r45061 r45356 931 931 } 932 932 #endif 933 933 else 934 934 return VERR_NET_ADDRESS_FAMILY_NOT_SUPPORTED; 935 935 return VINF_SUCCESS; … … 959 959 } 960 960 #ifdef VBOX_WITH_NEW_LWIP 961 961 else if ( cbAddr == sizeof(struct sockaddr_in6) 962 962 && u.Addr.sa_family == AF_INET6) 963 963 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r45156 r45356 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 517 517 { "dhcpserver", USAGE_DHCPSERVER, handleDHCPServer}, 518 518 #ifdef VBOX_WITH_NAT_SERVICE 519 519 { "natnetwork", USAGE_NATNETWORK, handleNATNetwork}, 520 520 #endif 521 521 { "extpack", USAGE_EXTPACK, handleExtPack}, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageNATNetwork.cpp
r45156 r45356 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 204 204 CHECK_ERROR(net, COMSETTER(Network)(Bstr(pNetworkCidr).raw())); 205 205 if(FAILED(rc)) 206 206 return errorArgument("Failed to set configuration"); 207 207 } 208 208 if (dhcp >= 0) … … 224 224 CHECK_ERROR(net, COMSETTER(Enabled) ((BOOL)enable)); 225 225 if(FAILED(rc)) 226 227 228 } 229 226 return errorArgument("Failed to set configuration"); 227 228 } 229 break; 230 230 } 231 231 case OP_REMOVE: … … 233 233 CHECK_ERROR(a->virtualBox, RemoveNATNetwork(net)); 234 234 if(FAILED(rc)) 235 236 235 return errorArgument("Failed to remove nat network"); 236 break; 237 237 } 238 238 case OP_START: 239 239 { 240 240 CHECK_ERROR(net, Start(Bstr("whatever").raw())); 241 241 if(FAILED(rc)) 242 243 242 return errorArgument("Failed to start network"); 243 break; 244 244 } 245 245 case OP_STOP: 246 246 { 247 247 CHECK_ERROR(net, Stop()); 248 248 if(FAILED(rc)) 249 250 249 return errorArgument("Failed to start network"); 250 break; 251 251 } 252 252 default:; -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r45157 r45356 212 212 allDHCPServers(lockDHCPServers), 213 213 lockNATNetworks(LOCKCLASS_LISTOFOTHEROBJECTS), 214 214 allNATNetworks(lockNATNetworks), 215 215 mtxProgressOperations(LOCKCLASS_PROGRESSLIST), 216 216 updateReq(UPDATEREQARG), … … 509 509 } 510 510 511 512 511 /* net services - nat networks */ 512 for (settings::NATNetworksList::const_iterator it = m->pMainConfigFile->llNATNetworks.begin(); 513 513 it != m->pMainConfigFile->llNATNetworks.end(); 514 514 ++it) … … 3181 3181 } 3182 3182 void VirtualBox::onNATNetworkSetting(IN_BSTR aNetworkName, BOOL aEnabled, 3183 3184 3185 3183 IN_BSTR aNetwork, IN_BSTR aGateway, 3184 BOOL aAdvertiseDefaultIpv6RouteEnabled, 3185 BOOL fNeedDhcpServer) 3186 3186 { 3187 3187 fireNATNetworkSettingEvent(m->pEventSource, aNetworkName, aEnabled, 3188 aNetwork, aGateway, 3189 3188 aNetwork, aGateway, 3189 aAdvertiseDefaultIpv6RouteEnabled, fNeedDhcpServer); 3190 3190 } 3191 3191 3192 3192 void VirtualBox::onNATNetworkPortForward(IN_BSTR aNetworkName, BOOL create, BOOL fIpv6, 3193 3194 3195 3193 IN_BSTR aRuleName, NATProtocol_T proto, 3194 IN_BSTR aHostIp, LONG aHostPort, 3195 IN_BSTR aGuestIp, LONG aGuestPort) 3196 3196 { 3197 3197 fireNATNetworkPortForwardEvent(m->pEventSource, aNetworkName, create, 3198 3199 3200 3198 fIpv6, aRuleName, proto, 3199 aHostIp, aHostPort, 3200 aGuestIp, aGuestPort); 3201 3201 } 3202 3202 … … 4279 4279 4280 4280 #ifdef VBOX_WITH_NAT_SERVICE 4281 4281 /* Saving NAT Network configuration */ 4282 4282 m->pMainConfigFile->llNATNetworks.clear(); 4283 4283 { -
trunk/src/VBox/Runtime/VBox/log-vbox.cpp
r43387 r45356 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 375 375 if (get_team_info(0, &info) == B_OK) 376 376 { 377 377 /* there is an info.argc, but no way to know arg boundaries */ 378 378 RTLogLoggerEx(pLogger, 0, ~0U, "Commandline: %.64s\n", info.args); 379 379 } -
trunk/src/VBox/Runtime/common/checksum/md5.cpp
r44528 r45356 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 31 31 /* 32 32 * This code implements the MD5 message-digest algorithm. 33 * The algorithm is due to Ron Rivest. 33 * The algorithm is due to Ron Rivest. This code was 34 34 * written by Colin Plumb in 1993, no copyright is claimed. 35 35 * This code is in the public domain; do with it what you wish. … … 52 52 #include "internal/iprt.h" 53 53 54 #include <iprt/string.h> 54 #include <iprt/string.h> /* for memcpy() */ 55 55 #if defined(RT_BIG_ENDIAN) 56 56 # include <iprt/asm.h> /* RT_LE2H_U32 uses ASMByteSwapU32. */ … … 240 240 ctx->bits[1] += (uint32_t)(len >> 29); 241 241 242 t = (t >> 3) & 0x3f; 242 t = (t >> 3) & 0x3f; /* Bytes already in shsInfo->data */ 243 243 244 244 /* Handle any leading odd-sized chunks */ -
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r45116 r45356 103 103 { 104 104 if (RT_FAILURE(RTNetStrToIPv4Addr(pszValue, pAddr))) 105 105 return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; 106 106 return VINF_SUCCESS; 107 107 } … … 412 412 } 413 413 414 415 416 417 418 419 420 421 422 423 414 case RTGETOPT_REQ_IPV4CIDR: 415 { 416 RTNETADDRIPV4 network; 417 RTNETADDRIPV4 netmask; 418 if (RT_FAILURE(RTCidrStrToIPv4(pszValue, &network, &netmask))) 419 return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; 420 pValueUnion->CidrIPv4.IPv4Network.u = network.u; 421 pValueUnion->CidrIPv4.IPv4Netmask.u = netmask.u; 422 break; 423 } 424 424 425 425 case RTGETOPT_REQ_MACADDR: -
trunk/src/VBox/Runtime/r3/haiku/time-haiku.cpp
r43363 r45356 5 5 6 6 /* 7 * Copyright (C) 2012 Oracle Corporation7 * Copyright (C) 2012-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 44 44 DECLINLINE(uint64_t) rtTimeGetSystemNanoTS(void) 45 45 { 46 46 return (uint64_t)system_time() * 1000; 47 47 } 48 48 … … 79 79 { 80 80 struct timeval tv; 81 82 83 81 RTTimeSpecGetTimeval(pTime, &tv); 82 set_real_time_clock(tv.tv_sec); 83 return VINF_SUCCESS; 84 84 } -
trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp
r44528 r45356 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 254 254 } 255 255 256 256 RTMpOnAll(cpumR0CheckCpuid, pVM, NULL); 257 257 } 258 258
Note:
See TracChangeset
for help on using the changeset viewer.