I'm trying to build a simple router prototype in python with which I could test new routed protocols; let's say newly made up IPv7. From what I understood I cannot use sockets (socket.AF_INET) without modifying sys/socket.h file. If so, how would I serialise newly made up routed protocol?
The raw_socket would also not do trick as the packets isn't IPv4. I would envision IPv7 to be like encapsulation protocol for IPv4. I wonder how folks are implementing new protocols, or re-implementing old ones, let's say IPX or AppleTalk, in Python?
Any ideas on how can I approach this? Or the only way to go is hard-core C?