VirtualBox

Ignore:
Timestamp:
Mar 12, 2009 10:23:53 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44313
Message:

sending reply

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r17779 r17780  
    15481548     * Send it.
    15491549     */
    1550 
     1550    int rc;
     1551#if 0
     1552    if (pDhcpMsg->bp_flags & RTNET_DHCP_FLAGS_NO_BROADCAST)
     1553    {
     1554        RTNETADDRIPV4 IPv4AddrBrdCast;
     1555        IPv4AddrBrdCast.u = UINT32_C(0xffffffff); /* broadcast IP */
     1556        rc = VBoxNetUDPUnicast(m_pSession, m_hIf, m_pIfBuf,
     1557                               m_Ipv4Address, &m_MacAddress, RTNETIPV4_PORT_BOOTPS,                 /* sender */
     1558                               IPv4AddrBrdCast, &pDhcpMsg->bp_chaddr.Mac, RTNETIPV4_PORT_BOOTPC,    /* receiver */
     1559                               pReply, cbReply);
     1560    }
     1561    else
     1562#endif
     1563        rc = VBoxNetUDPBroadcast(m_pSession, m_hIf, m_pIfBuf,
     1564                                 m_Ipv4Address, &m_MacAddress, RTNETIPV4_PORT_BOOTPS,               /* sender */
     1565                                 RTNETIPV4_PORT_BOOTPC,                                             /* receiver port */
     1566                                 pReply, cbReply);
     1567    if (RT_FAILURE(rc))
     1568        debugPrint(0, true, "error %Rrc when sending the reply", rc);
    15511569}
    15521570
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette