VirtualBox

Changeset 23497 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Oct 2, 2009 4:47:38 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53128
Message:

NAT: DHCPRELEASE implementation.

File:
1 edited

Legend:

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

    r23496 r23497  
    516516}
    517517
    518 static int dhcp_decode_release(PNATState pData, struct bootp_t *bp, const uint8_t *buf, int size, int flag)
    519 {
    520     return -1;
     518static int dhcp_decode_release(PNATState pData, struct bootp_t *bp, const uint8_t *buf, int size)
     519{
     520    release_addr(pData, &bp->bp_ciaddr);
     521    return 0;
    521522}
    522523/**
     
    632633        break;
    633634        case DHCPRELEASE:
    634             flag = 1;
    635             rc = dhcp_decode_release(pData, bp, buf, size, flag);
    636             if (rc > 0)
    637                 goto reply;
     635            rc = dhcp_decode_release(pData, bp, buf, size);
     636            /* no reply required */
    638637        break;
    639638        case DHCPDECLINE:
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