A Discrete-Event Network Simulator
API
Network Device
+ Collaboration diagram for Network Device:

Classes

class  ns3::LoopbackNetDevice
 Virtual network interface that loops back any data sent to it to be immediately received on the same interface. More...
 
class  ns3::NetDevice
 Network layer to device interface. More...
 
class  ns3::NetDeviceQueue
 Network device transmission queue. More...
 
class  ns3::NetDeviceQueueInterface
 Network device transmission queue interface. More...
 
class  ns3::QueueItem
 Base class to represent items of packet Queues. More...
 
class  ns3::SimpleNetDevice
 This device assumes 48-bit mac addressing; there is also the possibility to add an ErrorModel if you want to force losses on the device. More...
 

Enumerations

enum  ns3::NetDevice::PacketType {
  ns3::NetDevice::PACKET_HOST = 1, ns3::NetDevice::NS3_PACKET_HOST = PACKET_HOST, ns3::NetDevice::PACKET_BROADCAST, ns3::NetDevice::NS3_PACKET_BROADCAST = PACKET_BROADCAST,
  ns3::NetDevice::PACKET_MULTICAST, ns3::NetDevice::NS3_PACKET_MULTICAST = PACKET_MULTICAST, ns3::NetDevice::PACKET_OTHERHOST, ns3::NetDevice::NS3_PACKET_OTHERHOST = PACKET_OTHERHOST
}
 Packet types are used as they are in Linux. More...
 
enum  ns3::QueueItem::Uint8Values { ns3::QueueItem::IP_DSFIELD }
 1-byte fields of the packet whose value can be retrieved, if present More...
 

Detailed Description

Enumeration Type Documentation

Packet types are used as they are in Linux.

GCC name resolution on typedef enum {} PacketType is broken for the foreseeable future, so if you need to use ns-3 PacketType in a driver that also uses the Linux packet types you're hosed unless we define a shadow type, which we do here.

Enumerator
PACKET_HOST 

Packet addressed oo us.

NS3_PACKET_HOST 
PACKET_BROADCAST 

Packet addressed to all.

NS3_PACKET_BROADCAST 
PACKET_MULTICAST 

Packet addressed to multicast group.

NS3_PACKET_MULTICAST 
PACKET_OTHERHOST 

Packet addressed to someone else.

NS3_PACKET_OTHERHOST 

Definition at line 296 of file net-device.h.

1-byte fields of the packet whose value can be retrieved, if present

Enumerator
IP_DSFIELD 

Definition at line 76 of file queue-item.h.