Exemplo n.º 1
0
/* Modifies 'match' so that the MPLS TC is wildcarded. */
void
match_set_any_mpls_tc(struct match *match)
{
    match->wc.masks.mpls_lse &= ~htonl(MPLS_TC_MASK);
    flow_set_mpls_tc(&match->flow, 0);
}
Exemplo n.º 2
0
/* Modifies 'match' so that it matches only packets with an MPLS header whose
 * Traffic Class equals the low 3 bits of 'mpls_tc'. */
void
match_set_mpls_tc(struct match *match, uint8_t mpls_tc)
{
    match->wc.masks.mpls_lse |= htonl(MPLS_TC_MASK);
    flow_set_mpls_tc(&match->flow, mpls_tc);
}
Exemplo n.º 3
0
/* Modifies 'match' so that the MPLS TC is wildcarded. */
void
match_set_any_mpls_tc(struct match *match, int idx)
{
    match->wc.masks.mpls_lse[idx] &= ~htonl(MPLS_TC_MASK);
    flow_set_mpls_tc(&match->flow, idx, 0);
}