src/devices/emu/emu-net-device.h
changeset 3842 545ddf9398ed
parent 3830 8862b9be62bb
child 3843 ca2159d54d75
     1.1 --- a/src/devices/emu/emu-net-device.h	Wed Oct 29 22:39:36 2008 -0700
     1.2 +++ b/src/devices/emu/emu-net-device.h	Wed Nov 05 14:49:21 2008 -0800
     1.3 @@ -144,9 +144,35 @@
     1.4    virtual Address GetBroadcast (void) const;
     1.5  
     1.6    virtual bool IsMulticast (void) const;
     1.7 -  virtual Address GetMulticast (void) const;
     1.8 -  virtual Address MakeMulticastAddress (Ipv4Address multicastGroup) const;
     1.9  
    1.10 +  /**
    1.11 +   * \brief Make and return a MAC multicast address using the provided
    1.12 +   *        multicast group
    1.13 +   *
    1.14 +   * RFC 1112 says that an Ipv4 host group address is mapped to an Ethernet 
    1.15 +   * multicast address by placing the low-order 23-bits of the IP address into 
    1.16 +   * the low-order 23 bits of the Ethernet multicast address 
    1.17 +   * 01-00-5E-00-00-00 (hex).
    1.18 +   *
    1.19 +   * This method performs the multicast address creation function appropriate
    1.20 +   * to an EUI-48-based CSMA device.  This MAC address is encapsulated in an
    1.21 +   *  abstract Address to avoid dependencies on the exact address format.
    1.22 +   *
    1.23 +   * \param multicastGroup The IP address for the multicast group destination
    1.24 +   * of the packet.
    1.25 +   * \return The MAC multicast Address used to send packets to the provided
    1.26 +   * multicast group.
    1.27 +   *
    1.28 +   * \see Ipv4Address
    1.29 +   * \see Mac48Address
    1.30 +   * \see Address
    1.31 +   */
    1.32 +  virtual Address GetMulticast (Ipv4Address multicastGroup) const;
    1.33 +
    1.34 +  /**
    1.35 +   * Is this a point to point link?
    1.36 +   * \returns false.
    1.37 +   */
    1.38    virtual bool IsPointToPoint (void) const;
    1.39  
    1.40    virtual bool Send(Ptr<Packet> packet, const Address &dest, uint16_t protocolNumber);