Class CIPCrafter::
ConstructCraftedIPHeader()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ~CIPCrafterNext page: GetCraftedPacket    Show member index
Protected Function Declared in:
IPCrafter.h

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

LPIpHeader ConstructCraftedIPHeader(
    unsigned char ucProtocol,
    unsigned short usFragmentationFlags,
    unsigned char ucTTL,
    unsigned short usIdentification,
    unsigned char ucHeaderLength) const;

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

try
{
    //Get the original header
    LPIpHeader lpHead;

    //Check what header length to pass
    unsigned char ucLength;

    if (m_ucHeaderLength==IPCRAFTER_DEFAULT_HEADER_SIZE)
        ucLength=ucHeaderLength;
    else
        ucLength=m_ucHeaderLength;

    //Get the header
    lpHead=CSpoofSocket::ConstructStaticIPHeader(ucProtocol,
                                                 m_usFragmentationFlags,
                                                 ucTTL,
                                                 m_usIdentification,
                                                 ucLength);

    //Check we have it
    if (!lpHead)
        return NULL;

    //Set the type of service
    //Precedence
    lpHead->ucTypeOfService=m_ucTypeOfService;

    //Done
    return lpHead;
}
ERROR_HANDLER_RETURN("ConstructCraftedIPHeader",NULL)

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

Class Overview Class Overview  |  Private 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.