VirtualBox

Ignore:
Timestamp:
Dec 21, 2015 4:38:45 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104824
Message:

NAT: RFC2535 defined some bits from the original RFC1035 Z (must be
zero) field. Don't insist on Z being 0 in requests and clear it in
replies.

File:
1 edited

Legend:

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

    r59167 r59201  
    226226    }
    227227
    228     if (RT_UNLIKELY(pHdr->Z != 0))
    229     {
    230         LogErr(("NAT: hostres: MBZ bits are not\n"));
    231         refuse(pData, m, RCode_FormErr);
    232         return 1;
    233     }
    234 
    235228    if (RT_UNLIKELY(pHdr->qdcount != RT_H2N_U16_C(1)))
    236229    {
     
    307300    pHdr->ra = 1;               /* the host provides recursion */
    308301    pHdr->aa = 0;               /* we are not authoritative */
     302    pHdr->Z = 0;                /* clear rfc2535 dnssec bits */
    309303
    310304    off = sizeof(*pHdr);
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