Class CSpoofSocket::
SetIPHeaderAddress()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: SetConnectedToNext page: SetOptions    Show member index
Protected Function Declared in:
SpoofSocket.h

'Declaration' icon -- Shortcut to top of page. Declaration

virtual void SetIPHeaderAddress(
    LPIpHeader lpHead,
    IP aSourceAddress,
    IP aDestinationAddress) const;

'Description' icon -- Shortcut to top of page. Description

Set the address in the IP header

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //We need to place the header
    //If source is NULL then we need to use default source
    if (!aSourceAddress || !aDestinationAddress)
    {
        //Report it
        ReportError("SetIPHeaderAddress","Recieved empty source or destination address!");

        //Exit
        return;
    }

    //Place source address
    lpHead->ulSourceAddress=aSourceAddress;

    //Place destination address
    lpHead->ulDestinationAddress=aDestinationAddress;

    //Done
}
ERROR_HANDLER("SetIPHeaderAddress")

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CSpoofBase  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.