lib/match.c
/* Converts a flow into a match.  It sets the wildcard masks based on
 * the packet contents.  It will not set the mask for fields that do not
 * make sense for the packet type. */
Converts a flow into a match.  It sets the wildcard masks based on
the packet contents.  It will not set the mask for fields that do not
make sense for the packet type.
Converts a flow into a match . It sets the wildcard masks based on the packet contents . It will not set the mask for fields that do not make sense for the packet type .
void
match_wc_init(struct match *match, const struct flow *flow)
{
    match->flow = *flow;
    flow_wildcards_init_for_packet(&match->wc, flow);
    WC_MASK_FIELD(&match->wc, regs);
    WC_MASK_FIELD(&match->wc, metadata);
    memset(&match->tun_md, 0, sizeof match->tun_md);
}
void match_wc_init ( struct match * match , const struct flow * flow ) { match -> flow = * flow ; flow_wildcards_init_for_packet ( & match -> wc , flow ) ; WC_MASK_FIELD ( & match -> wc , regs ) ; WC_MASK_FIELD ( & match -> wc , metadata ) ; memset ( & match -> tun_md , 0 , sizeof match -> tun_md ) ; }
Converts a flow into a match.
Converts a flow into a match .