Changeset 25336 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Dec 11, 2009 5:09:23 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55929
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
r25302 r25336 58 58 VBoxNetFlt_LDFLAGS.win.x86 = -Entry:DriverEntry@8 59 59 VBoxNetFlt_LDFLAGS.win.amd64 = -Entry:DriverEntry 60 VBoxNetFlt_SOURCES.win.amd64 += win/VBoxNetFltA-win.asm61 VBoxNetFlt_DEFS.win.amd64 += RT_WITH_W64_UNWIND_HACK62 60 VBoxNetFlt_LIBS.win = \ 63 61 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \ … … 261 259 VBoxNetAdp_LDFLAGS.win.x86 = -Entry:DriverEntry@8 262 260 VBoxNetAdp_LDFLAGS.win.amd64 = -Entry:DriverEntry 263 VBoxNetAdp_SOURCES.win.amd64 += win/VBoxNetFltA-win.asm264 VBoxNetAdp_DEFS.win.amd64 += RT_WITH_W64_UNWIND_HACK265 261 VBoxNetAdp_LIBS.win = \ 266 262 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \ -
trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c
r24673 r25336 382 382 } 383 383 384 #ifdef RT_WITH_W64_UNWIND_HACK385 # if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64)386 # define NETFLT_DECL_CALLBACK(type) DECLASM(DECLHIDDEN(type))387 # define NETFLT_CALLBACK(_n) netfltNtWrap##_n388 389 NETFLT_DECL_CALLBACK(int) NETFLT_CALLBACK(vboxNetFltPortXmit)(PINTNETTRUNKIFPORT pIfPort, PINTNETSG pSG, uint32_t fDst);390 NETFLT_DECL_CALLBACK(bool) NETFLT_CALLBACK(vboxNetFltPortIsPromiscuous)(PINTNETTRUNKIFPORT pIfPort);391 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortGetMacAddress)(PINTNETTRUNKIFPORT pIfPort, PRTMAC pMac);392 NETFLT_DECL_CALLBACK(bool) NETFLT_CALLBACK(vboxNetFltPortIsHostMac)(PINTNETTRUNKIFPORT pIfPort, PCRTMAC pMac);393 NETFLT_DECL_CALLBACK(int) NETFLT_CALLBACK(vboxNetFltPortWaitForIdle)(PINTNETTRUNKIFPORT pIfPort, uint32_t cMillies);394 NETFLT_DECL_CALLBACK(bool) NETFLT_CALLBACK(vboxNetFltPortSetActive)(PINTNETTRUNKIFPORT pIfPort, bool fActive);395 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortDisconnectAndRelease)(PINTNETTRUNKIFPORT pIfPort);396 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortRetain)(PINTNETTRUNKIFPORT pIfPort);397 NETFLT_DECL_CALLBACK(void) NETFLT_CALLBACK(vboxNetFltPortRelease)(PINTNETTRUNKIFPORT pIfPort);398 399 # else400 # error "UNSUPPORTED (RT_WITH_W64_UNWIND_HACK)"401 # endif402 #else403 # define NETFLT_DECL_CALLBACK(type) static DECLCALLBACK(type)404 # define NETFLT_CALLBACK(_n) _n405 #endif406 384 407 385 /** 408 386 * @copydoc INTNETTRUNKIFPORT::pfnXmit 409 387 */ 410 NETFLT_DECL_CALLBACK(int) vboxNetFltPortXmit(PINTNETTRUNKIFPORT pIfPort, PINTNETSG pSG, uint32_t fDst)388 static DECLCALLBACK(int) vboxNetFltPortXmit(PINTNETTRUNKIFPORT pIfPort, PINTNETSG pSG, uint32_t fDst) 411 389 { 412 390 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 439 417 * @copydoc INTNETTRUNKIFPORT::pfnIsPromiscuous 440 418 */ 441 NETFLT_DECL_CALLBACK(bool) vboxNetFltPortIsPromiscuous(PINTNETTRUNKIFPORT pIfPort)419 static DECLCALLBACK(bool) vboxNetFltPortIsPromiscuous(PINTNETTRUNKIFPORT pIfPort) 442 420 { 443 421 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 461 439 * @copydoc INTNETTRUNKIFPORT::pfnGetMacAddress 462 440 */ 463 NETFLT_DECL_CALLBACK(void) vboxNetFltPortGetMacAddress(PINTNETTRUNKIFPORT pIfPort, PRTMAC pMac)441 static DECLCALLBACK(void) vboxNetFltPortGetMacAddress(PINTNETTRUNKIFPORT pIfPort, PRTMAC pMac) 464 442 { 465 443 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 483 461 * @copydoc INTNETTRUNKIFPORT::pfnIsHostMac 484 462 */ 485 NETFLT_DECL_CALLBACK(bool) vboxNetFltPortIsHostMac(PINTNETTRUNKIFPORT pIfPort, PCRTMAC pMac)463 static DECLCALLBACK(bool) vboxNetFltPortIsHostMac(PINTNETTRUNKIFPORT pIfPort, PCRTMAC pMac) 486 464 { 487 465 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 505 483 * @copydoc INTNETTRUNKIFPORT::pfnWaitForIdle 506 484 */ 507 NETFLT_DECL_CALLBACK(int) vboxNetFltPortWaitForIdle(PINTNETTRUNKIFPORT pIfPort, uint32_t cMillies)485 static DECLCALLBACK(int) vboxNetFltPortWaitForIdle(PINTNETTRUNKIFPORT pIfPort, uint32_t cMillies) 508 486 { 509 487 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 536 514 * @copydoc INTNETTRUNKIFPORT::pfnSetActive 537 515 */ 538 NETFLT_DECL_CALLBACK(bool) vboxNetFltPortSetActive(PINTNETTRUNKIFPORT pIfPort, bool fActive)516 static DECLCALLBACK(bool) vboxNetFltPortSetActive(PINTNETTRUNKIFPORT pIfPort, bool fActive) 539 517 { 540 518 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 571 549 * @copydoc INTNETTRUNKIFPORT::pfnDisconnectAndRelease 572 550 */ 573 NETFLT_DECL_CALLBACK(void) vboxNetFltPortDisconnectAndRelease(PINTNETTRUNKIFPORT pIfPort)551 static DECLCALLBACK(void) vboxNetFltPortDisconnectAndRelease(PINTNETTRUNKIFPORT pIfPort) 574 552 { 575 553 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 726 704 * @copydoc INTNETTRUNKIFPORT::pfnRetain 727 705 */ 728 NETFLT_DECL_CALLBACK(void) vboxNetFltPortRelease(PINTNETTRUNKIFPORT pIfPort)706 static DECLCALLBACK(void) vboxNetFltPortRelease(PINTNETTRUNKIFPORT pIfPort) 729 707 { 730 708 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 778 756 * @copydoc INTNETTRUNKIFPORT::pfnRetain 779 757 */ 780 NETFLT_DECL_CALLBACK(void) vboxNetFltPortRetain(PINTNETTRUNKIFPORT pIfPort)758 static DECLCALLBACK(void) vboxNetFltPortRetain(PINTNETTRUNKIFPORT pIfPort) 781 759 { 782 760 PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort); … … 862 840 pNew->pNext = NULL; 863 841 pNew->MyPort.u32Version = INTNETTRUNKIFPORT_VERSION; 864 pNew->MyPort.pfnRetain = NETFLT_CALLBACK(vboxNetFltPortRetain);865 pNew->MyPort.pfnRelease = NETFLT_CALLBACK(vboxNetFltPortRelease);866 pNew->MyPort.pfnDisconnectAndRelease= NETFLT_CALLBACK(vboxNetFltPortDisconnectAndRelease);867 pNew->MyPort.pfnSetActive = NETFLT_CALLBACK(vboxNetFltPortSetActive);868 pNew->MyPort.pfnWaitForIdle = NETFLT_CALLBACK(vboxNetFltPortWaitForIdle);869 pNew->MyPort.pfnGetMacAddress = NETFLT_CALLBACK(vboxNetFltPortGetMacAddress);870 pNew->MyPort.pfnIsHostMac = NETFLT_CALLBACK(vboxNetFltPortIsHostMac);871 pNew->MyPort.pfnIsPromiscuous = NETFLT_CALLBACK(vboxNetFltPortIsPromiscuous);872 pNew->MyPort.pfnXmit = NETFLT_CALLBACK(vboxNetFltPortXmit);842 pNew->MyPort.pfnRetain = vboxNetFltPortRetain; 843 pNew->MyPort.pfnRelease = vboxNetFltPortRelease; 844 pNew->MyPort.pfnDisconnectAndRelease= vboxNetFltPortDisconnectAndRelease; 845 pNew->MyPort.pfnSetActive = vboxNetFltPortSetActive; 846 pNew->MyPort.pfnWaitForIdle = vboxNetFltPortWaitForIdle; 847 pNew->MyPort.pfnGetMacAddress = vboxNetFltPortGetMacAddress; 848 pNew->MyPort.pfnIsHostMac = vboxNetFltPortIsHostMac; 849 pNew->MyPort.pfnIsPromiscuous = vboxNetFltPortIsPromiscuous; 850 pNew->MyPort.pfnXmit = vboxNetFltPortXmit; 873 851 pNew->MyPort.u32VersionEnd = INTNETTRUNKIFPORT_VERSION; 874 852 pNew->pSwitchPort = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.