VirtualBox

Changeset 22182 in vbox for trunk


Ignore:
Timestamp:
Aug 11, 2009 4:48:50 PM (15 years ago)
Author:
vboxsync
Message:

NAT: fix in rebinding/renew state detection

File:
1 edited

Legend:

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

    r22159 r22182  
    333333static int dhcp_send_offer(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m)
    334334{
    335     struct bootp_t *rbp;
    336335    int off = 0; /* boot_reply will fill general options and add END before sending response*/
    337336
     
    356355static int dhcp_decode_request(PNATState pData, struct bootp_t *bp, const uint8_t *buf, int size, struct mbuf *m)
    357356{
    358     BOOTPClient *bc;
     357    BOOTPClient *bc = NULL;
    359358    struct in_addr daddr;
    360359    int off;
     
    394393        else
    395394        {
     395            /*see table 4 rfc2131*/
    396396            if (bp->bp_flags & DHCP_FLAGS_B)
    397                 dhcp_stat = RENEWING;
     397                dhcp_stat = REBINDING;
    398398            else
    399                 dhcp_stat = REBINDING; /*??rebinding??*/
     399                dhcp_stat = RENEWING;
    400400        }
    401401    }
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