VirtualBox

Changeset 48338 in vbox for trunk/src/VBox/NetworkServices


Ignore:
Timestamp:
Sep 6, 2013 6:27:06 AM (11 years ago)
Author:
vboxsync
Message:

Disable stateless DHCPv6 server for now. It only tells guests the
nameserver IPv6 address, but HostDnsService doesn't support IPv6
nameserver addresses yet. Do not set "O" (other configuration) flag
in router advertisements, accordingly. This should avoid confusion
for the beta.

Add "TODO" comments in DHCPv6 server code where the nameserver address
should be picked up - it currently has leftover testing kludge, that
advertised mapped host loopback as IPv6 nameserver (with a
corresponding hack to remap IPv6 to IPv4 in pxudp.c that has been
disabled since).

Location:
trunk/src/VBox/NetworkServices/NAT
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/proxy_dhcp6ds.c

    r48001 r48338  
    5757    pxaddr = netif_ip6_addr(proxy_netif, 0); /* link local */
    5858
     59    /*
     60     * XXX: TODO: This is a leftover from testing with IPv6 mapped
     61     * loopback with a special IPv6->IPv4 mapping hack in pxudp.c
     62     */
    5963    /* advertise ourself as DNS resolver - will be proxied to host */
    6064    pxaddr_nonlocal = NULL;
     
    117121    DNSSRV_SET(0, DHCP6_OPTION_DNS_SERVERS);
    118122    DNSSRV_SET(2, 16);          /* one IPv6 address */
     123    /*
     124     * XXX: TODO: This is a leftover from testing with IPv6 mapped
     125     * loopback with a special IPv6->IPv4 mapping hack in pxudp.c
     126     */
    119127    memcpy(&dhcp6ds_dns[4], pxaddr_nonlocal, sizeof(ip6_addr_t));
    120128
  • trunk/src/VBox/NetworkServices/NAT/proxy_rtadvd.c

    r48001 r48338  
    321321#endif
    322322    /*
     323     * XXX: TODO: Disable "O" flag for now to match disabled stateless
     324     * server.  We don't yet get IPv6 nameserver addresses from
     325     * HostDnsService, so we have nothing to say, don't tell guests to
     326     * come asking.
     327     */
     328#if 0
     329    /*
    323330     * "O" flag.  Tell guests to use DHCP6 for DNS and the like.  This
    324331     * is served by simple stateless server (RFC 3736).
     332     *
     333     * XXX: "STATEFUL" in the flag name was probably a bug in RFC2461.
     334     * It's present in the text, but not in the router configuration
     335     * variable name.  It's dropped in the text in RFC4861.
    325336     */
    326337    ra_hdr->flags |= ND6_RA_FLAG_OTHER_STATEFUL_CONFIG;
     338#endif
    327339
    328340    if (is_default) {
  • trunk/src/VBox/NetworkServices/NAT/proxytest.c

    r48241 r48338  
    5858#endif
    5959
    60 #if 1
     60    /*
     61     * XXX: We use stateless DHCPv6 only to report IPv6 address(es) of
     62     * nameserver(s).  Since we don't yet support IPv6 addresses in
     63     * HostDnsService, there's no point in running DHCPv6.
     64     */
     65#if 0
    6166    dhcp6ds_init(proxy_netif);
    6267#endif
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