I have a Python project that I need to send a simple TCP SYN message to IPv6 and use a raw socket. My script could be executed without errors, but the syn packet was not sent. I'm not sure about my IPv6 script header, TCP header, or the original IPv6 socket that did the wrong thing. The network was configured for IPv6, so network problems can be eliminated.
Here is my script, I am using Python 2.4 on RHEL 5:
import socket, sys from struct import *
source share