Diff for /src/sys/netinet/in.c between versions 1.9 and 1.10

version 1.9, 2004/03/23 22:19:07 version 1.10, 2004/04/22 04:35:45
Line 853  in_addmulti(ap, ifp) Line 853  in_addmulti(ap, ifp)
   
         /* XXX - if_addmulti uses M_WAITOK.  Can this really be called          /* XXX - if_addmulti uses M_WAITOK.  Can this really be called
            at interrupt time?  If so, need to fix if_addmulti. XXX */             at interrupt time?  If so, need to fix if_addmulti. XXX */
        inm = (struct in_multi *)malloc(sizeof(*inm), M_IPMADDR, M_NOWAIT);        inm = malloc(sizeof(*inm), M_IPMADDR, M_WAITOK | M_ZERO);
        if (inm == NULL) { 
                splx(s); 
                return (NULL); 
        } 
 
        bzero(inm, sizeof *inm); 
         inm->inm_addr = *ap;          inm->inm_addr = *ap;
         inm->inm_ifp = ifp;          inm->inm_ifp = ifp;
         inm->inm_ifma = ifma;          inm->inm_ifma = ifma;

Removed from v.1.9  
changed lines
  Added in v.1.10