mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Allow general masking of IPv4 addresses rather than just CIDR masks.
OF1.1 and later make these fields fully maskable so we might as well also. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -175,7 +175,7 @@ static const struct mf_field mf_fields[MFF_N_IDS] = {
|
||||
{
|
||||
MFF_IPV4_SRC, "ip_src", "nw_src",
|
||||
MF_FIELD_SIZES(be32),
|
||||
MFM_CIDR, 0,
|
||||
MFM_FULLY, 0,
|
||||
MFS_IPV4,
|
||||
MFP_IPV4,
|
||||
true,
|
||||
@@ -184,7 +184,7 @@ static const struct mf_field mf_fields[MFF_N_IDS] = {
|
||||
}, {
|
||||
MFF_IPV4_DST, "ip_dst", "nw_dst",
|
||||
MF_FIELD_SIZES(be32),
|
||||
MFM_CIDR, 0,
|
||||
MFM_FULLY, 0,
|
||||
MFS_IPV4,
|
||||
MFP_IPV4,
|
||||
true,
|
||||
@@ -281,7 +281,7 @@ static const struct mf_field mf_fields[MFF_N_IDS] = {
|
||||
}, {
|
||||
MFF_ARP_SPA, "arp_spa", NULL,
|
||||
MF_FIELD_SIZES(be32),
|
||||
MFM_CIDR, 0,
|
||||
MFM_FULLY, 0,
|
||||
MFS_IPV4,
|
||||
MFP_ARP,
|
||||
false,
|
||||
@@ -290,7 +290,7 @@ static const struct mf_field mf_fields[MFF_N_IDS] = {
|
||||
}, {
|
||||
MFF_ARP_TPA, "arp_tpa", NULL,
|
||||
MF_FIELD_SIZES(be32),
|
||||
MFM_CIDR, 0,
|
||||
MFM_FULLY, 0,
|
||||
MFS_IPV4,
|
||||
MFP_ARP,
|
||||
false,
|
||||
|
Reference in New Issue
Block a user