try 42: ndp in the switch. this episode is with checksums...

This commit is contained in:
Nico Schottelius 2019-03-19 23:49:49 +01:00
commit c89441001b
3 changed files with 55 additions and 37 deletions

View file

@ -49,6 +49,10 @@ control MyIngress(inout headers hdr,
hdr.ipv6.dst_addr = hdr.ipv6.src_addr;
hdr.ipv6.src_addr = addr;
hdr.icmp6.type = ICMP6_NA;
/* checksum trigger / content */
meta.do_cksum = 1;
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
}
action icmp6_echo_reply() {