简体   繁体   中英

Custom IP protocol with ACK

I would like to explorer the possibilites of creating a custom IP procotol. Perhaps with scapy in Python.

I've got a tunnel where I receive all packet s, so would like to see if I can dismiss destination IP, ports etc. and keep an absolut minimum - but with ACK .

Anyway this is possible with scapy or similar?

I've tried some simple stuff like:

p = IP(dst="192.168.0.2")/"My payload"

But it seems not doable in that manner.

What are you trying to achieve? Forgoing transport layer port numbers limits communication to a single process on each node.

You'll need to register a protocol (number) with the IP stack to make it pass everything with that protocol to your handler. Most often, it's much easier to use UDP transport and build your own stuff on top. You can also simply number your UDP datagrams and ACK them on the application level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM