VirtualBox

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


Ignore:
Timestamp:
Oct 17, 2013 3:53:24 AM (11 years ago)
Author:
vboxsync
Message:

On NATNetworkSetting trigger quick RAs.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp

    r49125 r49149  
    246246            }
    247247
    248             // XXX: TODO: should prod rtadvd for immediate unsolicited
    249             // advertisement with new router lifetime
    250248            m_ProxyOptions.ipv6_defroute = fIPv6DefaultRoute;
     249            tcpip_callback_with_block(proxy_rtadvd_do_quick, &m_LwipNetIf, 0);
    251250
    252251            break;
  • trunk/src/VBox/NetworkServices/NAT/proxy.h

    r49042 r49149  
    5252/* proxy_rtadvd.c */
    5353void proxy_rtadvd_start(struct netif *);
     54void proxy_rtadvd_do_quick(void *);
    5455
    5556/* rtmon_*.c */
  • trunk/src/VBox/NetworkServices/NAT/proxy_rtadvd.c

    r49099 r49149  
    8585
    8686static int quick_ras = 2;
     87
     88
     89/**
     90 * lwIP thread callback invoked when we start/stop advertising default
     91 * route.
     92 */
     93void
     94proxy_rtadvd_do_quick(void *arg)
     95{
     96    struct netif *proxy_netif = (struct netif *)arg;
     97
     98    quick_ras = 2;
     99    sys_untimeout(proxy_rtadvd_timer, proxy_netif);
     100    proxy_rtadvd_timer(proxy_netif); /* sends and re-arms */
     101}
     102
    87103
    88104static void
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