try 42: ndp in the switch. this episode is with checksums...
This commit is contained in:
parent
492888fd2f
commit
c89441001b
3 changed files with 55 additions and 37 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue