Пример #1
0
/************************************************************************
* NAME: fnet_arp_release
*
* DESCRIPTION: ARP module release.
*************************************************************************/
void fnet_arp_release(fnet_netif_t *netif)
{
    fnet_arp_if_t *arpif = netif->arp_if_ptr;

    fnet_timer_free(arpif->arp_tmr);

    arpif->arp_tmr = 0;
}
Пример #2
0
/************************************************************************
* NAME: fnet_arp_release
*
* DESCRIPTION: ARP module release.
*************************************************************************/
void fnet_arp_release( fnet_netif_t *netif )
{
    fnet_arp_if_t *arpif = &(((fnet_eth_if_t *)(netif->if_ptr))->arp_if);

    fnet_timer_free(arpif->arp_tmr);

    arpif->arp_tmr = 0;
}
Пример #3
0
/************************************************************************
* NAME: fnet_eth_release
*
* DESCRIPTION: Do relaese for an Ethernet-type interface.
*************************************************************************/
void fnet_eth_release( fnet_netif_t *netif)
{

#if FNET_CFG_IP6  
        
    #if FNET_CFG_IP6_PMTU_DISCOVERY  
        fnet_netif_pmtu_release(netif);
    #endif
    
    fnet_nd6_release(netif);
    
#endif /* FNET_CFG_IP6 */        

    fnet_timer_free(((fnet_eth_if_t *)(netif->if_ptr))->eth_timer);

#if FNET_CFG_IP4    
    fnet_arp_release(netif);
#endif

    fnet_eth_number--;
}
Пример #4
0
/************************************************************************
* NAME: fnet_netif_pmtu_release
* RETURS: None.
* DESCRIPTION: Release/Disable PMTU Discovery for the interface.
*************************************************************************/
void fnet_netif_pmtu_release(fnet_netif_t *netif)
{
    fnet_timer_free(netif->pmtu_timer);
    
    netif->pmtu = 0;
}