NetDevice类
2018-05-06 22:07:03 0 举报
AI智能生成
ns3的NetDevice类
作者其他创作
大纲/内容
virtual void SetIfIndex (const uint32_t index) = 0;
virtual uint32_t GetIfIndex (void) const = 0;
virtual uint32_t GetIfIndex (void) const = 0;
virtual Ptr<Channel> GetChannel (void) const = 0;
return the channel this NetDevice is connected to. The value
returned can be zero if the NetDevice is not yet connecte
return the channel this NetDevice is connected to. The value
returned can be zero if the NetDevice is not yet connecte
virtual void SetAddress (Address address) = 0;
virtual Address GetAddress (void) const = 0;
Set the address of this interface
virtual Address GetAddress (void) const = 0;
Set the address of this interface
virtual bool SetMtu (const uint16_t mtu) = 0;
virtual uint16_t GetMtu (void) const = 0;
Override for default MTU defined on a per-type basis.
根据每种类型定义最大传输单元
virtual uint16_t GetMtu (void) const = 0;
Override for default MTU defined on a per-type basis.
根据每种类型定义最大传输单元
virtual bool IsLinkUp (void) const = 0;
return true if link is up; false otherwise
return true if link is up; false otherwise
这里有一系列判断是否广播,单播和桥接等
virtual bool Send (Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber) = 0;
Called from higher layer to send packet into Network Deviceto the specified destination Address
Called from higher layer to send packet into Network Deviceto the specified destination Address
virtual bool SendFrom (Ptr<Packet> packet, const Address& source, const Address& dest, uint16_t protocolNumber) = 0;
Called from higher layer to send packet into Network Devicewith the specified source and destination Addresses.
Called from higher layer to send packet into Network Devicewith the specified source and destination Addresses.
virtual Ptr<Node> GetNode (void) const = 0;
virtual void SetNode (Ptr<Node> node) = 0;
returns the node base class which contains this networkinterface.
virtual void SetNode (Ptr<Node> node) = 0;
returns the node base class which contains this networkinterface.
收藏
0 条评论
下一页