192
| IPP Module Preset Matches and Transforms | SmartNA-X 1G/10G Modular
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
IP header matches
The following Matches can be used to match IPv4 and IPv6 headers.
The following preset matches test the length of the IPv4 header and check the IPv4 version is indeed 4. Defined matches
on later parts of the packet assume it is 5 words long. No matches are provided for cases where the header has Options.
Table 9: IPv4 header matches
Match name
Match definition (start bit, width, value)
IPv4-IHL=5
112, 8, 69
t-IPv4-IHL=5
144, 8, 69
tt-IPv4-IHL=5
176, 8, 69
Table 10: IPv4 header protocol matches
Match name
Match definition (start bit, width, value)
IPv4-protocol-ICMP
184, 8, 1
IPv4-protocol-TCP
184, 8, 6
IPv4-protocol-UDP
184, 8, 17
IPv4-protocol-GRE
184, 8, 47
t-IPv4-protocol-TCP
216, 8, 6
tt-IPv4-protocol-TCP
248, 8, 6
t-IPv4-protocol-UDP
216, 8, 17
tt-IPv4-protocol-UDP
248, 8, 17
t-IPv4-protocol-GRE
216, 8, 47
tt-IPv4-protocol-GRE
248, 8, 47
The following matches check the IP version is 6.
Table 11: IPv6 header matches
Match name
Match definition (start bit, width, value)
Version-IPv6
112, 4, 6
t-Version-IPv6
144, 4, 6