Searched refs:pnewnb (Results 1 – 1 of 1) sorted by relevance
126 struct netbuf *pnewnb; in netbufdup() local132 if ((pnewnb = (struct netbuf *)malloc(sizeof (*pnewnb))) == NULL) in netbufdup()134 if ((pnewnb->buf = malloc(pnb->len)) == NULL) { in netbufdup()135 free(pnewnb); in netbufdup()139 pnewnb->maxlen = pnb->maxlen; in netbufdup()140 pnewnb->len = pnb->len; in netbufdup()141 bcopy(pnb->buf, pnewnb->buf, pnb->len); in netbufdup()142 return (pnewnb); in netbufdup()