You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r7 and r8 are used to store the L3 protocol ID (e.g. ETH_P_IP) and the L4 protocol ID (e.g. IPPROTO_TCP). During the L3 and L4 parsing logic, if the protocol is not supported, the register is set to 0 to prevent falsely relying on this header later on:
# Parsing L3 header
if (r7==ETH_P_IP)
l3_size=sizeof(structiphdr);
elseif (r7==ETH_P_IPV6)
l3_size=sizeof(structipv6hdr);
elser7=0# Parse the L3 header
...
However, such behaviour prevents filtering on non-supported protocol: r7 does not contain the ID of unsupported protocols, so meta.l3_proto only works for IPv4 and IPv6.
Prevent the header parsing functions in stub.c from resetting the protocol ID to 0.
The text was updated successfully, but these errors were encountered:
r7
andr8
are used to store the L3 protocol ID (e.g.ETH_P_IP
) and the L4 protocol ID (e.g.IPPROTO_TCP
). During the L3 and L4 parsing logic, if the protocol is not supported, the register is set to 0 to prevent falsely relying on this header later on:However, such behaviour prevents filtering on non-supported protocol:
r7
does not contain the ID of unsupported protocols, someta.l3_proto
only works for IPv4 and IPv6.Prevent the header parsing functions in
stub.c
from resetting the protocol ID to 0.The text was updated successfully, but these errors were encountered: