VirtualBox

Ticket #3112: tftp_fix.diff

File tftp_fix.diff, 440 bytes (added by Luiz Angelo Daros de Luca, 16 years ago)

Capture just TFTP traffic to alias IP

  • udp.c

     
    156156    }
    157157
    158158    /*
    159      *  handle TFTP
     159     *  handle TFTP to alias IP
    160160     */
    161     if (ntohs(uh->uh_dport) == TFTP_SERVER)
     161    if ((ntohs(uh->uh_dport) == TFTP_SERVER) &&
     162        (alias_addr.s_addr == ip->ip_dst.s_addr))
    162163    {
    163164        tftp_input(pData, m);
    164165        goto bad;

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