Exemple #1
0
/* Modifies 'match' so that the MPLS stack flag is wildcarded. */
void
match_set_any_mpls_bos(struct match *match)
{
    match->wc.masks.mpls_lse &= ~htonl(MPLS_BOS_MASK);
    flow_set_mpls_bos(&match->flow, 0);
}
Exemple #2
0
/* Modifies 'match' so that it matches only packets with an MPLS header whose
 * Stack Flag equals the lower bit of 'mpls_bos' */
void
match_set_mpls_bos(struct match *match, uint8_t mpls_bos)
{
    match->wc.masks.mpls_lse |= htonl(MPLS_BOS_MASK);
    flow_set_mpls_bos(&match->flow, mpls_bos);
}
/* Modifies 'match' so that the MPLS stack flag is wildcarded. */
void
match_set_any_mpls_bos(struct match *match, int idx)
{
    match->wc.masks.mpls_lse[idx] &= ~htonl(MPLS_BOS_MASK);
    flow_set_mpls_bos(&match->flow, idx, 0);
}