Class CIPOptions::
AddOption_Route()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: AddOption_RecordRouteNext page: AddOption_Security    Show member index
Protected Function Declared in:
SpoofSocket.h

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

void AddOption_Route(
    tOptionType tRouteType,
    tRouting tRoute);

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

Add option route

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

try
{
    //Option for strict routine
    //Add option strict route
    tOptionType OT;

    //Get the option
    OT=GetOption(IPOption_COPY,IPOption_CONTROL,tRouteType);

    //Add it to buffer
    AddToBuffer((char*)&OT,sizeof(OT));

    //Add the length
    OT=tRoute.iRoutes*4+IPOption_STRICT_ROUTING_LENGTH;
    AddToBuffer((char*)&OT,sizeof(OT));

    //Add the pointer
    OT=IPOption_STRICT_ROUTING_POINTER;
    AddToBuffer((char*)&OT,sizeof(OT));

    //Add the routing table
    AddToBuffer((char*)tRoute.ulRoutes,tRoute.iRoutes*4);
}
ERROR_HANDLER("AddOption_Route")

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

Class Overview Class Overview  |  Protected 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 © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001.