Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlVmDevNet_SetPktFilterPreventMacSpoof Function
PHT_VIRTUAL_DEV_NET_ADAPTER

Allows to specify whether a network adapter in a virtual machine should filter packets through MAC address spoofing.

Syntax
PRL_RESULT PrlVmDevNet_SetPktFilterPreventMacSpoof(
    PRL_HANDLE hVmDev, 
    PRL_BOOL bPktFilterPreventMacSpoof
);
File

PrlApiVm.h

Parameters

hVmDev
A handle of type PHT_VIRTUAL_DEV_NET_ADAPTER identifying the virtual network adapter.
bPktFilterPreventMacSpoof
Specify PRL_TRUE to send packages only from its own MAC address. Specify PRL_FALSE to turn off filtration.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.