lib/match.c
/* Modifies 'match' so that the VLAN PCP is wildcarded.  If the VID is already
 * wildcarded, then 'match' will match a packet regardless of whether it has an
 * 802.1Q header or not. */
Modifies 'match' so that the VLAN PCP is wildcarded.  If the VID is already
wildcarded, then 'match' will match a packet regardless of whether it has an
802.1Q header or not.
Modifies ' match ' so that the VLAN PCP is wildcarded . If the VID is already wildcarded then ' match ' will match a packet regardless of whether it has an 802 . 1Q header or not .
void
match_set_any_pcp(struct match *match)
{
    if (match->wc.masks.vlans[0].tci & htons(VLAN_VID_MASK)) {
        match->wc.masks.vlans[0].tci &= ~htons(VLAN_PCP_MASK);
        match->flow.vlans[0].tci &= ~htons(VLAN_PCP_MASK);
    } else {
        match_set_dl_tci_masked(match, htons(0), htons(0));
    }
}
void match_set_any_pcp ( struct match * match ) { if ( match -> wc . masks . vlans [ 0 ] . tci & htons ( VLAN_VID_MASK ) ) { match -> wc . masks . vlans [ 0 ] . tci &= ~ htons ( VLAN_PCP_MASK ) ; match -> flow . vlans [ 0 ] . tci &= ~ htons ( VLAN_PCP_MASK ) ; } else { match_set_dl_tci_masked ( match , htons ( 0 ) , htons ( 0 ) ) ; } }
Modifies 'match' so that the VLAN PCP is wildcarded.
Modifies ' match ' so that the VLAN PCP is wildcarded .