Add first test in test.py

This commit is contained in:
Nico Schottelius 2019-03-14 20:19:50 +01:00
commit 602c52d8bb
2 changed files with 35 additions and 400 deletions

View file

@ -724,7 +724,13 @@ p4@ubuntu:~/master-thesis$
***** TODO Add default route for v4 hosts
**** TODO Translate ipv6 --> ipv4 with a (freely programmable) prefix
***** DONE Insert prefix into switch: v6_networks
***** TODO Support multiple ipv6 source networks: need new table w/ 2 keys!
***** TODO Support multiple ipv6 source networks: need new table w/ 2 keys! -> later
***** TODO Write test.py to generate correct destination packets
>>> a = ipaddress.ip_network("2001:db8::/32")
>>> b = ipaddress.ip_address("10.0.0.1")
>>> a[int(b)]
IPv6Address('2001:db8::a00:1')
***** TODO Implement the calculation
***** TODO Sketch the flow for session handling for icmp6 w/o packet loss
- switch receives icmp6 packet for known prefix