mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
ofproto-dpif-xlate: Identify STP BPDUs more specifically.
Apart from STP, EVB extension of LLDP as well as IEEE 802.1QBG use the Nearest Customer Bridge (NCB) DMAC which has a value of 0180.c200.0000. STP can be distinguished by Ethertype from these protocols. Signed-off-by: Padmanabhan Krishnan <kprad1@yahoo.com> [blp@nicira.com rewrote the details of the patch] Signed-off-by: Ben Pfaff <blp@nicira.com> Tested-by: Padmanabhan Krishnan <kprad1@yahoo.com>
This commit is contained in:
committed by
Ben Pfaff
parent
83709dfafb
commit
bbbca389c0
@@ -617,4 +617,10 @@ static inline bool is_icmpv6(const struct flow *flow)
|
||||
&& flow->nw_proto == IPPROTO_ICMPV6);
|
||||
}
|
||||
|
||||
static inline bool is_stp(const struct flow *flow)
|
||||
{
|
||||
return (eth_addr_equals(flow->dl_dst, eth_addr_stp)
|
||||
&& flow->dl_type == htons(FLOW_DL_TYPE_NONE));
|
||||
}
|
||||
|
||||
#endif /* flow.h */
|
||||
|
Reference in New Issue
Block a user