X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=blobdiff_plain;f=lib%2Fflow.h;h=e63e4e2b285018bdb96f5cf266d0317b8e6ade27;hp=413ecb5a982a41745da8b6588e3c35942b03973b;hb=bbbca389c002f740dffd0d8c24f13e562efaa876;hpb=83709dfafba5b8b58670cec4a2e95204ef63e6e2 diff --git a/lib/flow.h b/lib/flow.h index 413ecb5a9..e63e4e2b2 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -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 */