![]() |
AddOption_Route() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protected Function |
Declared in: SpoofSocket.h |
void AddOption_Route( OptionType aRouteType, Routing aRoute);
Add option route
try { //Option for strict routine //Add option strict route OptionType aOptionType; //Get the option aOptionType=GetOption(IPOption_COPY, IPOption_CONTROL, aRouteType); //Add it to buffer AddToBuffer((char*)&aOptionType, sizeof(aOptionType)); //Add the length aOptionType=aRoute.iRoutes*4+IPOption_STRICT_ROUTING_LENGTH; AddToBuffer((char*)&aOptionType, sizeof(aOptionType)); //Add the pointer aOptionType=IPOption_STRICT_ROUTING_POINTER; AddToBuffer((char*)&aOptionType, sizeof(aOptionType)); //Add the routing table AddToBuffer((char*)aRoute.ulRoutes, aRoute.iRoutes*4); } ERROR_HANDLER("AddOption_Route")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |