mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
nicira-ext: Support matching IPv6 Neighbor Discovery messages.
IPv6 uses Neighbor Discovery messages in a similar manner to how IPv4
uses ARP. This commit adds support for matching deeper into the
payloads of Neighbor Solicitation (NS) and Neighbor Advertisement (NA)
messages. Currently, the matching fields include:
- NS and NA Target (nd_target)
- NS Source Link Layer Address (nd_sll)
- NA Target Link Layer Address (nd_tll)
When defining IPv6 Neighbor Discovery rules, the Nicira Extensible Match
(NXM) extension to OVS must be used.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -95,15 +95,17 @@ nxm_decode_n_bits(ovs_be16 ofs_nbits)
|
||||
* NXM_OF_IP_PROTO 4 2 -- 6
|
||||
* NXM_OF_IPV6_SRC_W 4 16 16 36
|
||||
* NXM_OF_IPV6_DST_W 4 16 16 36
|
||||
* NXM_OF_TCP_SRC 4 2 -- 6
|
||||
* NXM_OF_TCP_DST 4 2 -- 6
|
||||
* NXM_OF_ICMP_TYPE 4 1 -- 5
|
||||
* NXM_OF_ICMP_CODE 4 1 -- 5
|
||||
* NXM_NX_ND_TARGET 4 16 -- 20
|
||||
* NXM_NX_ND_SLL 4 6 -- 10
|
||||
* NXM_NX_REG_W(0) 4 4 4 12
|
||||
* NXM_NX_REG_W(1) 4 4 4 12
|
||||
* NXM_NX_REG_W(2) 4 4 4 12
|
||||
* NXM_NX_REG_W(3) 4 4 4 12
|
||||
* NXM_NX_TUN_ID_W 4 8 8 20
|
||||
* -------------------------------------------
|
||||
* total 209
|
||||
* total 237
|
||||
*
|
||||
* So this value is conservative.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user