mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
flow: Adds support for arbitrary ethernet masking
Arbitrary ethernet mask support is one step on the way to support for OpenFlow 1.1+. This patch set seeks to add this capability without breaking current protocol support. Signed-off-by: Joe Stringer <joe@wand.net.nz> [blp@nicira.com made some updates, see http://openvswitch.org/pipermail/dev/2012-May/017585.html] Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -153,7 +153,7 @@ eth_format_masked(const uint8_t eth[ETH_ADDR_LEN],
|
||||
const uint8_t mask[ETH_ADDR_LEN], struct ds *s)
|
||||
{
|
||||
ds_put_format(s, ETH_ADDR_FMT, ETH_ADDR_ARGS(eth));
|
||||
if (mask) {
|
||||
if (mask && !eth_mask_is_exact(mask)) {
|
||||
ds_put_format(s, "/"ETH_ADDR_FMT, ETH_ADDR_ARGS(mask));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user