an address for a packet socket More...
#include "packet-socket-address.h"
Collaboration diagram for ns3::PacketSocketAddress:Public Member Functions | |
| PacketSocketAddress () | |
| Address | ConvertTo () const |
| Convert an instance of this class to a polymorphic Address instance. | |
| Address | GetPhysicalAddress () const |
| Get the destination address. | |
| uint16_t | GetProtocol () const |
| Get the protocol. | |
| uint32_t | GetSingleDevice () const |
| Get the device this address is bound to. | |
| bool | IsSingleDevice () const |
| Checks if the address is bound to a specified NetDevice. | |
| operator Address () const | |
| void | SetAllDevices () |
| Set the address to match all the outgoing NetDevice. | |
| void | SetPhysicalAddress (const Address address) |
| Set the destination address. | |
| void | SetProtocol (uint16_t protocol) |
| Set the protocol. | |
| void | SetSingleDevice (uint32_t device) |
| Set the address to match only a specified NetDevice. | |
Static Public Member Functions | |
| static PacketSocketAddress | ConvertFrom (const Address &address) |
| static bool | IsMatchingType (const Address &address) |
Static Private Member Functions | |
| static uint8_t | GetType () |
| Return the Type of address. | |
Private Attributes | |
| Address | m_address |
| Destination address. | |
| uint32_t | m_device |
| Outgoing NetDevice index. | |
| bool | m_isSingleDevice |
| True if directed to a specific outgoing NetDevice. | |
| uint16_t | m_protocol |
| Protocol. | |
an address for a packet socket
Definition at line 28 of file packet-socket-address.h.
| ns3::PacketSocketAddress::PacketSocketAddress | ( | ) |
Definition at line 18 of file packet-socket-address.cc.
References NS_LOG_FUNCTION.
Referenced by ConvertFrom().
Here is the caller graph for this function:
|
static |
| address | a polymorphic address |
Definition at line 105 of file packet-socket-address.cc.
References PacketSocketAddress(), ns3::Address::CopyAllFrom(), IsMatchingType(), ns3::Address::MAX_SIZE, NS_ASSERT, NS_LOG_FUNCTION, SetAllDevices(), SetPhysicalAddress(), SetProtocol(), and SetSingleDevice().
Referenced by ns3::PacketSocket::Bind(), ns3::PacketSocket::GetTxAvailable(), ns3::PacketSocketServer::HandleRead(), GcrBaTest::Receive(), ns3::PacketSocketClient::Send(), and ns3::PacketSocket::SendTo().
Here is the call graph for this function:
Here is the caller graph for this function:| Address ns3::PacketSocketAddress::ConvertTo | ( | ) | const |
Convert an instance of this class to a polymorphic Address instance.
Definition at line 88 of file packet-socket-address.cc.
References GetType(), m_address, m_device, m_isSingleDevice, m_protocol, ns3::Address::MAX_SIZE, and NS_LOG_FUNCTION.
Referenced by operator Address().
Here is the call graph for this function:
Here is the caller graph for this function:| Address ns3::PacketSocketAddress::GetPhysicalAddress | ( | ) | const |
Get the destination address.
Definition at line 75 of file packet-socket-address.cc.
References m_address, and NS_LOG_FUNCTION.
Referenced by ns3::PacketSocket::SendTo().
Here is the caller graph for this function:| uint16_t ns3::PacketSocketAddress::GetProtocol | ( | ) | const |
Get the protocol.
Definition at line 54 of file packet-socket-address.cc.
References m_protocol, and NS_LOG_FUNCTION.
Referenced by ns3::PacketSocket::SendTo().
Here is the caller graph for this function:| uint32_t ns3::PacketSocketAddress::GetSingleDevice | ( | ) | const |
Get the device this address is bound to.
Definition at line 68 of file packet-socket-address.cc.
References m_device, and NS_LOG_FUNCTION.
Referenced by ns3::PacketSocket::GetMinMtu(), and ns3::PacketSocket::SendTo().
Here is the caller graph for this function:
|
staticprivate |
Return the Type of address.
Definition at line 145 of file packet-socket-address.cc.
References NS_LOG_FUNCTION_NOARGS, and ns3::Address::Register().
Referenced by ConvertTo(), and IsMatchingType().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| address | address to test |
Definition at line 138 of file packet-socket-address.cc.
References GetType(), and NS_LOG_FUNCTION.
Referenced by ns3::PacketSocket::Bind(), ns3::PacketSocket::Connect(), ConvertFrom(), ns3::PacketSocketServer::HandleRead(), ns3::PacketSocket::SendTo(), and ns3::OnOffApplication::StartApplication().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::PacketSocketAddress::IsSingleDevice | ( | ) | const |
Checks if the address is bound to a specified NetDevice.
Definition at line 61 of file packet-socket-address.cc.
References m_isSingleDevice, and NS_LOG_FUNCTION.
Referenced by ns3::PacketSocket::GetMinMtu(), and ns3::PacketSocket::SendTo().
Here is the caller graph for this function:| ns3::PacketSocketAddress::operator Address | ( | ) | const |
Convert an instance of this class to a polymorphic Address instance.
Definition at line 81 of file packet-socket-address.cc.
References ConvertTo().
Here is the call graph for this function:| void ns3::PacketSocketAddress::SetAllDevices | ( | ) |
Set the address to match all the outgoing NetDevice.
Definition at line 31 of file packet-socket-address.cc.
References m_device, m_isSingleDevice, and NS_LOG_FUNCTION.
Referenced by ConvertFrom(), and ns3::PacketSocket::GetSockName().
Here is the caller graph for this function:| void ns3::PacketSocketAddress::SetPhysicalAddress | ( | const Address | address | ) |
Set the destination address.
| address | the destination address |
Definition at line 47 of file packet-socket-address.cc.
References m_address, and NS_LOG_FUNCTION.
Referenced by ns3::NoBackhaulEpcHelper::AddEnb(), ConvertFrom(), BlockAckAggregationDisabledTest::DoRun(), Bug2222TestCase::DoRun(), Bug730TestCase::DoRun(), CsmaPacketSocketTestCase::DoRun(), DsssModulationTest::DoRun(), OfdmaAckSequenceTest::DoRun(), PacketSocketAppsTest::DoRun(), PreservePacketsInAmpdus::DoRun(), QosFragmentationTestCase::DoRun(), SpectrumIdealPhyTestCase::DoRun(), TestUnsupportedModulationReception::DoRun(), WifiChannelSettingsTest::DoRun(), WifiTxStatsHelperTest::DoRun(), BackoffGenerationTest::DoSetup(), GcrTestBase::DoSetup(), OrigBlockAckWindowStalled::DoSetup(), ns3::PacketSocket::GetSockName(), BarAfterDroppedMpduTest::InsertEvents(), WifiCoTraceHelperBaseTestCase::InstallPacketSocketClient(), Experiment::Run(), Experiment::Run(), Experiment::Run(), Experiment::Run(), NetAnimExperiment::Run(), WifiChannelSwitchingTest::SendPacket(), UanExperiment::SendSinglePacket(), BarAfterDroppedMpduTest::StartTraffic(), MultiLinkMuTxTest::StartTraffic(), MultiLinkSetupTest::StartTraffic(), and MultiLinkTxTest::StartTraffic().
Here is the caller graph for this function:| void ns3::PacketSocketAddress::SetProtocol | ( | uint16_t | protocol | ) |
Set the protocol.
| protocol | the protocol |
Definition at line 24 of file packet-socket-address.cc.
References m_protocol, and NS_LOG_FUNCTION.
Referenced by ns3::NoBackhaulEpcHelper::AddEnb(), ConvertFrom(), BlockAckAggregationDisabledTest::DoRun(), Bug2222TestCase::DoRun(), Bug730TestCase::DoRun(), CsmaPacketSocketTestCase::DoRun(), DsssModulationTest::DoRun(), OfdmaAckSequenceTest::DoRun(), PacketSocketAppsTest::DoRun(), PreservePacketsInAmpdus::DoRun(), QosFragmentationTestCase::DoRun(), SpectrumIdealPhyTestCase::DoRun(), TestUnsupportedModulationReception::DoRun(), WifiChannelSettingsTest::DoRun(), WifiTxopTest::DoRun(), BackoffGenerationTest::DoSetup(), EmlsrOperationsTestBase::DoSetup(), GcrTestBase::DoSetup(), MultiLinkOperationsTestBase::DoSetup(), OrigBlockAckWindowStalled::DoSetup(), WifiRetransmitTest::DoSetup(), ns3::PacketSocket::GetSockName(), BarAfterDroppedMpduTest::InsertEvents(), WifiCoTraceHelperBaseTestCase::InstallPacketSocketClient(), WifiCoTraceHelperBaseTestCase::InstallPacketSocketServer(), Experiment::Run(), Experiment::Run(), Experiment::Run(), Experiment::Run(), NetAnimExperiment::Run(), WifiChannelSwitchingTest::SendPacket(), UanExperiment::SendSinglePacket(), BarAfterDroppedMpduTest::StartTraffic(), MultiLinkMuTxTest::StartTraffic(), MultiLinkSetupTest::StartTraffic(), and MultiLinkTxTest::StartTraffic().
Here is the caller graph for this function:| void ns3::PacketSocketAddress::SetSingleDevice | ( | uint32_t | device | ) |
Set the address to match only a specified NetDevice.
| device | the NetDevice index |
Definition at line 39 of file packet-socket-address.cc.
References m_device, m_isSingleDevice, and NS_LOG_FUNCTION.
Referenced by ns3::NoBackhaulEpcHelper::AddEnb(), ConvertFrom(), BlockAckAggregationDisabledTest::DoRun(), Bug2222TestCase::DoRun(), Bug730TestCase::DoRun(), CsmaPacketSocketTestCase::DoRun(), DsssModulationTest::DoRun(), OfdmaAckSequenceTest::DoRun(), PacketSocketAppsTest::DoRun(), PreservePacketsInAmpdus::DoRun(), QosFragmentationTestCase::DoRun(), SpectrumIdealPhyTestCase::DoRun(), TestUnsupportedModulationReception::DoRun(), WifiChannelSettingsTest::DoRun(), WifiTxopTest::DoRun(), WifiTxStatsHelperTest::DoRun(), BackoffGenerationTest::DoSetup(), EmlsrOperationsTestBase::DoSetup(), GcrTestBase::DoSetup(), MultiLinkOperationsTestBase::DoSetup(), OrigBlockAckWindowStalled::DoSetup(), WifiRetransmitTest::DoSetup(), ns3::PacketSocket::GetSockName(), BarAfterDroppedMpduTest::InsertEvents(), WifiCoTraceHelperBaseTestCase::InstallPacketSocketClient(), WifiCoTraceHelperBaseTestCase::InstallPacketSocketServer(), Experiment::Run(), Experiment::Run(), Experiment::Run(), Experiment::Run(), NetAnimExperiment::Run(), WifiChannelSwitchingTest::SendPacket(), UanExperiment::SendSinglePacket(), BarAfterDroppedMpduTest::StartTraffic(), MultiLinkMuTxTest::StartTraffic(), MultiLinkSetupTest::StartTraffic(), and MultiLinkTxTest::StartTraffic().
Here is the caller graph for this function:
|
private |
Destination address.
Definition at line 117 of file packet-socket-address.h.
Referenced by ConvertTo(), GetPhysicalAddress(), and SetPhysicalAddress().
|
private |
Outgoing NetDevice index.
Definition at line 116 of file packet-socket-address.h.
Referenced by ConvertTo(), GetSingleDevice(), SetAllDevices(), and SetSingleDevice().
|
private |
True if directed to a specific outgoing NetDevice.
Definition at line 115 of file packet-socket-address.h.
Referenced by ConvertTo(), IsSingleDevice(), SetAllDevices(), and SetSingleDevice().
|
private |
Protocol.
Definition at line 114 of file packet-socket-address.h.
Referenced by ConvertTo(), GetProtocol(), and SetProtocol().