A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
ipv6-packet-filter.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 Universita' degli Studi di Napoli Federico II
3
* 2016 University of Washington
4
*
5
* SPDX-License-Identifier: GPL-2.0-only
6
*
7
* Authors: Stefano Avallone <stavallo@unina.it>
8
* Tom Henderson <tomhend@u.washington.edu>
9
* Pasquale Imputato <p.imputato@gmail.com>
10
*/
11
12
#ifndef IPV6_PACKET_FILTER_H
13
#define IPV6_PACKET_FILTER_H
14
15
#include "ns3/object.h"
16
#include "ns3/packet-filter.h"
17
18
namespace
ns3
19
{
20
21
/**
22
* \ingroup ipv6
23
* \ingroup traffic-control
24
*
25
* Ipv6PacketFilter is the abstract base class for filters defined for IPv6 packets.
26
*/
27
class
Ipv6PacketFilter
:
public
PacketFilter
28
{
29
public
:
30
/**
31
* \brief Get the type ID.
32
* \return the object TypeId
33
*/
34
static
TypeId
GetTypeId
();
35
36
Ipv6PacketFilter
();
37
~Ipv6PacketFilter
()
override
;
38
39
private
:
40
bool
CheckProtocol
(
Ptr<QueueDiscItem>
item)
const override
;
41
int32_t
DoClassify
(
Ptr<QueueDiscItem>
item)
const override
= 0;
42
};
43
44
}
// namespace ns3
45
46
#endif
/* IPV6_PACKET_FILTER */
int32_t
ns3::Ipv6PacketFilter
Ipv6PacketFilter is the abstract base class for filters defined for IPv6 packets.
Definition
ipv6-packet-filter.h:28
ns3::Ipv6PacketFilter::DoClassify
int32_t DoClassify(Ptr< QueueDiscItem > item) const override=0
Classify a packet.
ns3::Ipv6PacketFilter::~Ipv6PacketFilter
~Ipv6PacketFilter() override
Definition
ipv6-packet-filter.cc:40
ns3::Ipv6PacketFilter::Ipv6PacketFilter
Ipv6PacketFilter()
Definition
ipv6-packet-filter.cc:35
ns3::Ipv6PacketFilter::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
ipv6-packet-filter.cc:28
ns3::Ipv6PacketFilter::CheckProtocol
bool CheckProtocol(Ptr< QueueDiscItem > item) const override
Checks if the filter is able to classify a kind of items.
Definition
ipv6-packet-filter.cc:46
ns3::PacketFilter
PacketFilter is the abstract base class for filters used by queue discs to classify packets.
Definition
packet-filter.h:24
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
ipv6-packet-filter.h
Generated on Fri Nov 8 2024 13:59:01 for ns-3 by
1.11.0