Commit graph

197 commits

Author SHA1 Message Date
Nico Schottelius
236bd8e7d6 Debug send ipv4 packets to controller 2019-03-25 13:09:29 +01:00
Nico Schottelius
ccf7e15241 Change NAT64 prefix in test.py 2019-03-25 12:18:15 +01:00
Nico Schottelius
0ad6fa9a36 Use correct generator 2019-03-25 12:16:22 +01:00
Nico Schottelius
56c09f1fda +) 2019-03-25 12:15:10 +01:00
Nico Schottelius
ad19b5ac4b Remove comment 2019-03-25 12:14:35 +01:00
Nico Schottelius
6e40043c71 +, 2019-03-25 12:13:10 +01:00
Nico Schottelius
4a280716a6 Rewrite code to use unique destination networks 2019-03-25 12:11:20 +01:00
Nico Schottelius
42f5e00e74 Document double/triple matching 2019-03-25 11:51:36 +01:00
Nico Schottelius
a408d7a803 + reorg +add simple nat64 w/o protocol specific translations 2019-03-23 16:20:13 +01:00
Nico Schottelius
4d610a5cb5 Remove unecessary arg to icmp6_echo_reply 2019-03-23 15:14:17 +01:00
Nico Schottelius
4d3641fc50 Also add required icmp6_type 2019-03-23 15:07:07 +01:00
Nico Schottelius
5f14967a32 Introduce the icmp6 table 2019-03-23 15:03:42 +01:00
Nico Schottelius
a8ce370997 Auto git add & push 2019-03-23 14:33:50 +01:00
Nico Schottelius
9f05e57509 Update table handling for NDP in the switch 2019-03-23 14:18:48 +01:00
Nico Schottelius
c95cb4ce3a name first in filename 2019-03-21 20:39:42 +01:00
Nico Schottelius
d146b8a66b +argcheck 2019-03-21 20:37:25 +01:00
Nico Schottelius
6f752f3f02 ++ update in modes 2019-03-21 20:36:39 +01:00
Nico Schottelius
ece52e4915 ++ sniff-host command 2019-03-21 20:36:01 +01:00
Nico Schottelius
42c68b1808 disable icmp6 in controller 2019-03-20 00:08:32 +01:00
Nico Schottelius
87d4154753 Rename test && fix return 2019-03-20 00:04:21 +01:00
Nico Schottelius
0fe1adda11 Extend test with switch icmp6 test 2019-03-20 00:02:52 +01:00
Nico Schottelius
c89441001b try 42: ndp in the switch. this episode is with checksums... 2019-03-19 23:49:49 +01:00
Nico Schottelius
492888fd2f s/layer/field/ 2019-03-19 23:23:54 +01:00
Nico Schottelius
2a623a0807 ++ info ++ link local 2019-03-19 23:21:40 +01:00
Nico Schottelius
cfba26632a Import all from scapy.all 2019-03-19 23:03:56 +01:00
Nico Schottelius
880db528e7 Mute multicast registrations (MLDv2) 2019-03-19 23:01:55 +01:00
Nico Schottelius
4d90fd46a8 Disable printing raw (undecoded) packet 2019-03-19 21:14:17 +01:00
Nico Schottelius
fd3263d731 Try to mute debugging a bit to focus on messages we have to answer 2019-03-19 21:12:40 +01:00
Nico Schottelius
e0e98535ac Use ping6 on old systems 2019-03-14 20:21:31 +01:00
Nico Schottelius
602c52d8bb Add first test in test.py 2019-03-14 20:19:50 +01:00
Nico Schottelius
adac2c92d5 Begin to add test.py for testing stuff 2019-03-14 17:32:51 +01:00
Nico Schottelius
74f5575cd0 Reduce routing size for testing 2019-03-14 17:26:40 +01:00
Nico Schottelius
336ff2901c Correct table name (v4_networks) 2019-03-14 17:12:55 +01:00
Nico Schottelius
bd222a1009 Use correct argument names 2019-03-14 17:06:39 +01:00
Nico Schottelius
3d154f0326 Cast/change to network_address later 2019-03-14 17:03:56 +01:00
Nico Schottelius
532f1be6ba Convert network -> network_address 2019-03-14 16:59:55 +01:00
Nico Schottelius
dfb50aefd7 dict->network 2019-03-14 16:56:49 +01:00
Nico Schottelius
71c8155cd2 Adjust table parameters 2019-03-14 16:43:57 +01:00
Nico Schottelius
353ed9e5e6 -nat 2019-03-14 16:38:45 +01:00
Nico Schottelius
1dd33177f1 eUpdate prefix/network for mapped v4 network 2019-03-14 14:56:52 +01:00
Nico Schottelius
7c8f019b2a ++ nat64 update, discussion update 2019-03-14 14:37:45 +01:00
Nico Schottelius
472a104e2b ++ doc update ++ nat64_static / P4 begin 2019-03-14 14:05:17 +01:00
Nico Schottelius
126434a6b9 Add readmes, add .json extension 2019-03-06 19:55:04 +01:00
Nico Schottelius
5fe76ef9bd Adjust paths + README 2019-03-06 19:50:48 +01:00
Nico Schottelius
a2e01a39b1 Add p4app.json for bug2 2019-03-06 19:48:42 +01:00
Nico Schottelius
a5a75da6b4 Try to reproduce bool bug try #2 2019-03-06 19:45:27 +01:00
Nico Schottelius
5c0fa7e566 Add json definition for testing bug1 2019-03-06 19:34:35 +01:00
Nico Schottelius
e0a9d28606 Introduce mixed mode NDP/ICMP6 echo reply
- Controller: NDP
- Switch: icmp6 echo reply
2019-03-06 17:23:01 +01:00
Nico Schottelius
f7fc8ef412 ++notes ++begin nat64 prefix 2019-03-06 14:07:47 +01:00
Nico Schottelius
25405a6ae1 [controller] stringify router 2019-03-06 14:00:35 +01:00
Nico Schottelius
22da39377e Begin router support 2019-03-06 13:48:02 +01:00
Nico Schottelius
5620add27f Phasing in icmp6 in the switch 2019-03-05 22:31:05 +01:00
Nico Schottelius
7e2262cab5 Create answer 2019-03-05 22:06:17 +01:00
Nico Schottelius
6123dbfe86 self focused 2019-03-05 22:05:26 +01:00
Nico Schottelius
c9f8831865 icmp6 echo reply 2019-03-05 22:04:04 +01:00
Nico Schottelius
81f89fe87a try resetting cksum (again) 2019-03-05 21:49:50 +01:00
Nico Schottelius
7d53abef6d Try deleting all chksums 2019-03-05 21:37:38 +01:00
Nico Schottelius
12097d0085 ++ unchecked checksums 2019-03-05 21:22:55 +01:00
Nico Schottelius
e4dd6eee93 Try v6 checksum instead of icmp6 2019-03-05 21:04:07 +01:00
Nico Schottelius
6f28013bb3 Change icmp6 (sub-)type 2019-03-05 20:15:55 +01:00
Nico Schottelius
3c215f6054 Unset router bit 2019-03-05 20:12:24 +01:00
Nico Schottelius
ec8d8abff4 Checksum in scapy: none = recalc 2019-03-05 19:56:11 +01:00
Nico Schottelius
23fa17d01d answer -> pkg 2019-03-05 17:09:17 +01:00
Nico Schottelius
253353daf5 Introduce more logging levels 2019-03-05 17:08:31 +01:00
Nico Schottelius
481675372d lladdr == src in this context 2019-03-05 17:01:21 +01:00
Nico Schottelius
a139ad6e83 Initial icmp6_na support in controller 2019-03-05 16:59:27 +01:00
Nico Schottelius
dd6986cf60 Disable multicast catchall by default 2019-03-05 16:19:43 +01:00
Nico Schottelius
69e483caf7 Use correct switch suffix 2019-03-05 16:15:54 +01:00
Nico Schottelius
3acbf88242 ++ todos 2019-03-05 16:14:36 +01:00
Nico Schottelius
29ff9e2333 Correct suffix to hex 2019-03-04 19:06:09 +01:00
Nico Schottelius
e51ed3ffcd Change action argument order
Fixing:

Invalid runtime data: Error while parsing 2001:db8::2a - Invalid input, could not cast to integer, try in hex with 0x prefix
Invalid runtime data: Error while parsing ff02::1:ff00:2a - Invalid input, could not cast to integer, try in hex with 0x prefix
Invalid runtime data: Error while parsing 2001:db8:0:1::2a - Invalid input, could not cast to integer, try in hex with 0x prefix
Invalid runtime data: Error while parsing ff02::1:ff00:2a - Invalid input, could not cast to integer, try in hex with 0x prefix
2019-03-04 19:02:28 +01:00
Nico Schottelius
cb67188780 Begin switching in controler based on task 2019-03-04 18:58:22 +01:00
Nico Schottelius
a274dcbcb8 commit correct stuff 2019-03-04 18:55:25 +01:00
Nico Schottelius
59655e0d32 Include correct offset AND debug info 2019-03-04 18:54:00 +01:00
Nico Schottelius
766dbba5c3 ++ 2019-03-04 18:41:10 +01:00
Nico Schottelius
7338580517 ++fix 2019-03-04 18:40:12 +01:00
Nico Schottelius
9771591a9d -bug 2019-03-04 18:39:09 +01:00
Nico Schottelius
6c1da54035 syntax 2019-03-04 18:38:08 +01:00
Nico Schottelius
816f11c864 Get shift from cpuheader def 2019-03-04 18:37:33 +01:00
Nico Schottelius
b465b366ea Adjust payload shift 2019-03-04 18:31:20 +01:00
Nico Schottelius
877359aaca Correct length of task field 2019-03-04 18:16:18 +01:00
Nico Schottelius
7ff09db32a Shift payload / ipv6 in cpu packet 2019-03-04 18:15:00 +01:00
Nico Schottelius
f9925ce4c2 Import XShortEnumField 2019-03-04 18:08:10 +01:00
Nico Schottelius
e2b382119a use header type from switch 2019-03-04 18:07:00 +01:00
Nico Schottelius
60a3c8d8c5 include ether type in cpu package 2019-03-04 18:05:56 +01:00
Nico Schottelius
440782c569 I am confused 2019-03-04 17:50:38 +01:00
Nico Schottelius
46b0f16f0d ++debug 2019-03-04 16:40:05 +01:00
Nico Schottelius
542b4ddd50 rename to v4networks 2019-03-04 16:38:06 +01:00
Nico Schottelius
d558537367 -typo 2019-03-04 16:26:03 +01:00
Nico Schottelius
ea1873c14c Use types for signalling expected action 2019-03-04 16:23:28 +01:00
Nico Schottelius
da7fda57bf ++ 2019-03-04 15:38:42 +01:00
Nico Schottelius
c60b5f2d9e pass in prefix len 2019-03-04 15:38:16 +01:00
Nico Schottelius
cf844477a9 typo 2019-03-04 15:34:46 +01:00
Nico Schottelius
4b52b12846 + debug + stringify 2019-03-04 15:34:12 +01:00
Nico Schottelius
615e0f89ef Use int for masks 2019-03-04 15:32:27 +01:00
Nico Schottelius
77e92b12be Refactor code for ipaddress support 2019-03-04 15:30:38 +01:00
Nico Schottelius
3047750add use network_address for multicast base 2019-03-04 15:01:12 +01:00
Nico Schottelius
3dc56677a1 derive addr from addr not dict 2019-03-04 14:59:44 +01:00
Nico Schottelius
7c3cb5a368 +args fix 2019-03-04 14:57:27 +01:00
Nico Schottelius
6fea6ed19f -import error 2019-03-04 14:56:52 +01:00