• Robert Sprowson's avatar
    More faithful emulation of config_devalloc() · b1485601
    Robert Sprowson authored
    In NetBSD when the softc is allocated they use kmem_zalloc() which zeroes the memory too; follow suit by using calloc instead of malloc.
    Fixes problem where an unconfigured network interface (that has never sent any packets, even an ARP) would watchdog after 62s (the consistent random value in if_timer) and try to pass a phantom mbuf to MbufManager, leading to an abort.
    
    Version 0.03. Tagged as 'EtherCPSW-0_03'
    b1485601
VersionNum 819 Bytes