示例#1
0
文件: match.c 项目: AlickHill/Lantern
/* 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);
}
示例#2
0
文件: match.c 项目: AlickHill/Lantern
/* 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);
}
示例#3
0
/* 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);
}