Add tcp/udp checksum triggers

This commit is contained in:
Nico Schottelius 2019-04-11 10:15:37 +02:00
parent 1afcd82e42
commit fe9d169bef

View file

@ -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;