M
Marco
I have a problem with the establishement of a three way handshake
through raw socket.
The problem is that if in my application client I use the syscall
socket(AF_INET,SOCK_RAW,IPPROTO_RAW)
the kernel will refuse the server answer because there isn't a
CONNECTED socket.
So I used the syscall connect()
but if I want sent another TCP packet I need to know the sequence
number that the
connect() has utilized and the ack from the server and I don't know how
capture this
information.
Can you help me, please?
Thanks in advantage.
through raw socket.
The problem is that if in my application client I use the syscall
socket(AF_INET,SOCK_RAW,IPPROTO_RAW)
the kernel will refuse the server answer because there isn't a
CONNECTED socket.
So I used the syscall connect()
but if I want sent another TCP packet I need to know the sequence
number that the
connect() has utilized and the ack from the server and I don't know how
capture this
information.
Can you help me, please?
Thanks in advantage.