Disable checksumming in the switch
This commit is contained in:
parent
81f89fe87a
commit
45e2bd4237
1 changed files with 13 additions and 13 deletions
|
@ -22,20 +22,20 @@ control MyVerifyChecksum(inout headers hdr, inout metadata meta) {
|
||||||
control MyComputeChecksum(inout headers hdr, inout metadata meta) {
|
control MyComputeChecksum(inout headers hdr, inout metadata meta) {
|
||||||
apply {
|
apply {
|
||||||
|
|
||||||
bit<32> icmp6_len = 32; /* for icmp6 NS */
|
// GRRRRR bit<32> icmp6_len = 32; /* for icmp6 NS */
|
||||||
|
|
||||||
update_checksum (
|
// GRRRRR update_checksum (
|
||||||
hdr.icmp6.isValid(),
|
// GRRRRR hdr.icmp6.isValid(),
|
||||||
{
|
// GRRRRR {
|
||||||
hdr.ipv6.src_addr, /* 128 */
|
// GRRRRR hdr.ipv6.src_addr, /* 128 */
|
||||||
hdr.ipv6.dst_addr, /* 128 */
|
// GRRRRR hdr.ipv6.dst_addr, /* 128 */
|
||||||
icmp6_len, /* 32 */
|
// GRRRRR icmp6_len, /* 32 */
|
||||||
24w0, /* 24 0's */
|
// GRRRRR 24w0, /* 24 0's */
|
||||||
PROTO_ICMP6 /* 8 */
|
// GRRRRR PROTO_ICMP6 /* 8 */
|
||||||
},
|
// GRRRRR },
|
||||||
hdr.icmp6.checksum,
|
// GRRRRR hdr.icmp6.checksum,
|
||||||
HashAlgorithm.csum16
|
// GRRRRR HashAlgorithm.csum16
|
||||||
);
|
// GRRRRR );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue