![]() |
SetIPHeaderAddress() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Protected Function |
Declared in: SpoofSocket.h |
Declaration
virtual void SetIPHeaderAddress(
LPIpHeader lpHead,
LPCSTR lpSourceAddress,
LPCSTR lpDestinationAddress);
DescriptionSet the address in the IP header
Function Body
try
{
//We need to place the header
//If source is NULL then we need to use default source
if (!lpSourceAddress)
{
//We will implement it
}
else
//Use sockets2
lpHead->sourceIPAddress=inet_addr(lpSourceAddress);
//Place destination address
lpHead->destIPAddress=inet_addr(lpDestinationAddress);
//Done
}
ERROR_HANDLER("SetIPHeaderAddress")
See Also
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. |