Searched refs:pnewnb (Results 1 – 1 of 1) sorted by relevance
128 struct netbuf *pnewnb; in netbufdup() local134 if ((pnewnb = (struct netbuf *)malloc(sizeof (*pnewnb))) == NULL) in netbufdup()136 if ((pnewnb->buf = malloc(pnb->len)) == NULL) { in netbufdup()137 free(pnewnb); in netbufdup()141 pnewnb->maxlen = pnb->maxlen; in netbufdup()142 pnewnb->len = pnb->len; in netbufdup()143 bcopy(pnb->buf, pnewnb->buf, pnb->len); in netbufdup()144 return (pnewnb); in netbufdup()