Browse Source

Add tcp/udp checksum triggers

master
Nico Schottelius 3 years ago
parent
commit
fe9d169bef
  1. 11
      p4src/static-mapping.p4

11
p4src/static-mapping.p4

@ -447,7 +447,10 @@ Echo or Echo Reply Message
}
}
if(hdr.udp.isValid()) {
meta.chk_udp = 1;
meta.chk_udp_v4 = 1;
}
if(hdr.tcp.isValid()) {
meta.chk_tcp_v4 = 1;
}
v4_networks.apply(); /* apply egress for IPv4 */
@ -472,6 +475,12 @@ Echo or Echo Reply Message
hdr.icmp6.type = ICMP6_ECHO_REQUEST;
}
}
if(hdr.udp.isValid()) {
meta.chk_udp_v6 = 1;
}
if(hdr.tcp.isValid()) {
meta.chk_tcp_v6 = 1;
}
v6_networks.apply();
exit;

Loading…
Cancel
Save