A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ipcs-classifier.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 INRIA, UDcast
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7 *
8 */
9
10#ifndef IPCS_CLASSIFIER_H
11#define IPCS_CLASSIFIER_H
12
14
15#include "ns3/packet.h"
16#include "ns3/ptr.h"
17
18#include <stdint.h>
19#include <vector>
20
21namespace ns3
22{
23class SsServiceFlowManager;
24
25/**
26 * @ingroup wimax
27 *
28 * IPCS classifier
29 */
30class IpcsClassifier : public Object
31{
32 public:
33 /**
34 * @brief Get the type ID.
35 * @return the object TypeId
36 */
37 static TypeId GetTypeId();
39 ~IpcsClassifier() override;
40 /**
41 * @brief classify a packet in a service flow
42 * @param packet the packet to classify
43 * @param sfm the service flow manager to be used to classify packets
44 * @param dir The direction on which the packet should be sent (UP or DOWN)
45 * @return The service flow that should be used to send this packet
46 */
50};
51} // namespace ns3
52
53#endif /* IPCS_CLASSIFIER_H */
IPCS classifier.
ServiceFlow * Classify(Ptr< const Packet > packet, Ptr< ServiceFlowManager > sfm, ServiceFlow::Direction dir)
classify a packet in a service flow
static TypeId GetTypeId()
Get the type ID.
A base class which provides memory management and object aggregation.
Definition object.h:78
Smart pointer class similar to boost::intrusive_ptr.
This class implements service flows as described by the IEEE-802.16 standard.
Direction
Direction enumeration.
a unique identifier for an interface.
Definition type-id.h:49
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::string dir