BOOL bIncl=1;
If (SOCKET_ERROR==: : setsockopt (sRAW IPPROTO_IP, IP_HDRINCL, (char *) & amp; BIncl, sizeof (bIncl)))
{
}
//fill in the IP header data, etc.
Sendto (... ); Return 10049
Use wireshark capture a packet of data intact in text, sendto again, the same mistake, why?
XP system,
CodePudding user response:
Said the local IP address or port 10049 is not available, has nothing to do with your sending data,CodePudding user response:
To FASM_FASM: this IP header is the custom, some articles online say xp does not support custom IP header, but the setsockopt returns success