satellite-packet-classifier.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013 Magister Solutions Ltd
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: Jani Puttonen <jani.puttonen@magister.fi>
19  */
20 
21 #ifndef SATELLITE_PACKET_CLASSIFIER_H_
22 #define SATELLITE_PACKET_CLASSIFIER_H_
23 
25 #include "satellite-enums.h"
26 
27 #include <ns3/simple-ref-count.h>
28 
29 namespace ns3
30 {
31 
32 class Packet;
33 
46 class SatPacketClassifier : public SimpleRefCount<SatPacketClassifier>
47 {
48  public:
53 
57  virtual ~SatPacketClassifier();
58 
65  uint8_t Classify(SatControlMsgTag::SatControlMsgType_t type, const Address& dest) const;
66 
75  uint8_t Classify(const Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber) const;
76 
77  private:
78 };
79 
80 } // namespace ns3
81 
82 #endif /* SATELLITE_PACKET_CLASSIFIER_H_ */
SatControlMsgType_t
Definition for different types of control messages.
SatPacketClassifier is responsible of classifying packets into certain flow identifier.
uint8_t Classify(SatControlMsgTag::SatControlMsgType_t type, const Address &dest) const
Classify control message.
virtual ~SatPacketClassifier()
Destructor for SatPacketClassifier.
SatPacketClassifier()
Default constructor.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.