ip helper and find ip interface for device method on ipv4
This commit is contained in:
1 parent
7225c6c30a
commit
6e54fed4b9
10 files changed
+502
No files matched your search
@@ -341,6 +341,21 @@ public:
|
||||
virtual uint32_t FindInterfaceForAddr (Ipv4Address addr,
|
||||
Ipv4Mask mask) const = 0;
|
||||
|
||||
/**
|
||||
* \brief Find and return the interface ID of the interface that has been
|
||||
* associated with the specified (masked) NetDevice
|
||||
* \param nd The net device of the interface of interest.
|
||||
* \returns The index of the ipv4 interface associated with the given net
|
||||
* device or -1 if not found.
|
||||
*
|
||||
* Each IP interface is associated with a net device. It is often
|
||||
* useful to search the list of interfaces for one that corresponds to
|
||||
* a known net device. This call takes an smart pointer to a net device
|
||||
* and returns the interface index of the first interface that matches the
|
||||
* net device.
|
||||
*/
|
||||
virtual int32_t FindInterfaceForDevice(Ptr<NetDevice> nd) const = 0;
|
||||
|
||||
/**
|
||||
* \param i index of ipv4 interface
|
||||
* \returns the NetDevice associated with the ipv4 interface index
|
||||
|
||||
@@ -10,6 +10,7 @@ def build(bld):
|
||||
'packet-socket-address.cc',
|
||||
'node.cc',
|
||||
'ipv4-address.cc',
|
||||
'ipv4-address-generator.cc',
|
||||
'net-device.cc',
|
||||
'address-utils.cc',
|
||||
'llc-snap-header.cc',
|
||||
@@ -42,6 +43,7 @@ def build(bld):
|
||||
'packet-socket-address.h',
|
||||
'node.h',
|
||||
'ipv4-address.h',
|
||||
'ipv4-address-generator.h',
|
||||
'net-device.h',
|
||||
'address-utils.h',
|
||||
'ipv4-route.h',
|
||||
|
||||
Reference in new issue
Block a user