コード例 #1
0
ファイル: match.c プロジェクト: AlickHill/Lantern
/* 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);
}
コード例 #2
0
ファイル: match.c プロジェクト: AlickHill/Lantern
/* 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);
}
コード例 #3
0
ファイル: match.c プロジェクト: daolicloud/daolinet-openstack
/* 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);
}