A Discrete-Event Network Simulator
API
qos-blocked-destinations.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2005, 2009 INRIA
3  * Copyright (c) 2009 MIRKO BANCHI
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Mirko Banchi <mk.banchi@gmail.com>
19  */
20 
22 
23 #include "ns3/mac48-address.h"
24 
25 namespace ns3
26 {
27 
29 {
30 }
31 
33 {
34 }
35 
36 bool
38 {
39  return m_blockedQosPackets.find({dest, tid}) != m_blockedQosPackets.end();
40 }
41 
42 void
44 {
45  m_blockedQosPackets.insert({dest, tid});
46 }
47 
48 void
50 {
51  m_blockedQosPackets.erase({dest, tid});
52 }
53 
54 } // namespace ns3
an EUI-48 address
Definition: mac48-address.h:46
std::set< std::pair< Mac48Address, uint8_t > > m_blockedQosPackets
blocked QoS packets
void Unblock(Mac48Address dest, uint8_t tid)
Un-block the given destination address and TID (e.g.
void Block(Mac48Address dest, uint8_t tid)
Block the given destination address and TID from sending (e.g.
bool IsBlocked(Mac48Address dest, uint8_t tid) const
Check if the given destination address and TID are blocked from sending (e.g.
Every class exported by the ns3 library is enclosed in the ns3 namespace.