this might be a little late but could it be that the ethernet header was
also needed?
Just curious, but what exactly do you need a raw IP socket for?
Am 08.02.2012 19:35, schrieb Eyyub:
BUMP,
I really need help please !
Eyyub.
what are you trying to archive? did you got an
Ethernet-Frame+IP-Frame+(your replacement for tcp or udp) - or are your
trying to change the tcp frame before sending?
and if your using Windows:
BUMP,
I really need help please !
Eyyub.
Use SocketType.STREAM if you want TCP. SOCK_RAW is for cases
where you want a raw IP socket
Yes, I want a raw IP socket, but when I sendTo my datagram(ip and
tcp headers) with a raw IP socket, Wireshark say that my datagram
is IPv4 type protocol:unknow(255)...
In C or C++ programming
If the source code can help :
http://paste.pocoo.org/show/OJK11zDw6jAaurlKLT3Z/ .
Eyyub,
On 2/4/12 11:42 PM, Eyyub wrote:
I'm trying to use a raw socket, […]
Use SocketType.STREAM if you want TCP. SOCK_RAW is for cases where you
want a raw IP socket (for the exact details, look it up in your OS docs).
David