more multicast plumbing
This commit is contained in:
1 parent
dfae0be7d0
commit
e567af9b24
11 files changed
+177
-97
No files matched your search
@@ -171,8 +171,11 @@ Ipv4Address::IsBroadcast (void) const
|
||||
bool
|
||||
Ipv4Address::IsMulticast (void) const
|
||||
{
|
||||
// XXX
|
||||
return false;
|
||||
//
|
||||
// Multicast addresses are defined as ranging from 224.0.0.0 through
|
||||
// 239.255.255.255 (which is E0000000 through EFFFFFFF in hex).
|
||||
//
|
||||
return (m_address >= 0xe0000000 && m_address <= 0xefffffff);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
|
||||
+5
-1
@@ -70,6 +70,7 @@ public:
|
||||
/**
|
||||
* \brief Asynchronously requests a route for a given packet and IP header
|
||||
*
|
||||
* \param ifIndex The interface index on which the packet was received.
|
||||
* \param ipHeader IP header of the packet
|
||||
* \param packet packet that is being sent or forwarded
|
||||
* \param routeReply callback that will receive the route reply
|
||||
@@ -99,9 +100,12 @@ public:
|
||||
* immediately after the IP header, although most routing do not
|
||||
* insert any extra header.
|
||||
*/
|
||||
virtual bool RequestRoute (const Ipv4Header &ipHeader,
|
||||
virtual bool RequestRoute (uint32_t ifIndex,
|
||||
const Ipv4Header &ipHeader,
|
||||
Packet packet,
|
||||
RouteReplyCallback routeReply) = 0;
|
||||
|
||||
static const uint32_t IF_INDEX_ANY = 0xffffffff;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user