yuanye
asked on
About RAW Socket
When I used WinSock 2 to write some program, I get a problem, that is:
setsockopt(sockRaw, IPPROTO_IP, IP_HDRINCL, (char *)&nOptVal, sizeof(nOptVal);
I get a error code 10042, that means: no support now.
Is current socket 2 can not support this type RAW_SOCK call? If it is true, can you give me a method about how to send all IP packet(include ip header)?
Thanks
Yuanye
setsockopt(sockRaw, IPPROTO_IP, IP_HDRINCL, (char *)&nOptVal, sizeof(nOptVal);
I get a error code 10042, that means: no support now.
Is current socket 2 can not support this type RAW_SOCK call? If it is true, can you give me a method about how to send all IP packet(include ip header)?
Thanks
Yuanye
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.