VirtualBox

Changeset 42014 in vbox


Ignore:
Timestamp:
Jul 4, 2012 6:46:39 AM (12 years ago)
Author:
vboxsync
Message:

NAT: dead code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/tftp.c

    r42013 r42014  
    215215}
    216216
    217 /**
    218  * This function returns the tftp transfer mode
    219  * @param pTftpIpHeader header of tftp (includes IP, UDP and TFTP) it's required for validating that buffer comming
    220  *      in pcu8Options is comes right after header.
    221  * @param pcu8Options pointer to options buffer
    222  * @param cbOptions size of the options buffer
    223  */
    224 DECLINLINE(char *) tftpOptionMode(PCTFTPIPHDR pTftpIpHeader, const uint8_t *pcu8Options, int cbOptions)
    225 {
    226     int idxOptDesc = 0;
    227     AssertPtrReturn(pTftpIpHeader, NULL);
    228     AssertPtrReturn(pcu8Options, NULL);
    229     AssertReturn(cbOptions >= 4, NULL);
    230     /* @todo validate that Mode Option just after filename of TFTP */
    231     for (idxOptDesc = 0; idxOptDesc < RT_ELEMENTS(g_TftpTransferFmtDesc); ++idxOptDesc)
    232     {
    233         if (!RTStrNICmp(g_TftpTransferFmtDesc[idxOptDesc].pszName, (const char *)pcu8Options, cbOptions))
    234             return (char *)g_TftpTransferFmtDesc[idxOptDesc].pszName;
    235     }
    236     return NULL;
    237 }
    238217
    239218/**
Note: See TracChangeset for help on using the changeset viewer.

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