Exemplo n.º 1
0
/* Converts the flow in 'flow' into an exact-match match in 'match'. */
void
match_init_exact(struct match *match, const struct flow *flow)
{
    match->flow = *flow;
    match->flow.skb_priority = 0;
    flow_wildcards_init_exact(&match->wc);
}
Exemplo n.º 2
0
/* Converts the flow in 'flow' into an exact-match match in 'match'. */
void
match_init_exact(struct match *match, const struct flow *flow)
{
    ovs_be64 tun_id = flow->tunnel.tun_id;

    match->flow = *flow;
    match->flow.skb_priority = 0;
    memset(&match->flow.tunnel, 0, sizeof match->flow.tunnel);
    match->flow.tunnel.tun_id = tun_id;
    flow_wildcards_init_exact(&match->wc);
}