Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:cp

243 print_unknown_data(const u_char *cp,const char *ident,int len)
250 if (snapend - cp < len)
251 len = snapend - cp;
257 hex_print(ident,cp,len);
478 register char *cp;
488 cp = malloc((u_int)buf.st_size + 1);
489 if (cp == NULL)
492 cc = read(fd, cp, (u_int)buf.st_size);
501 if (cp[i] == '#')
502 while (i < cc && cp[i] != '\n')
503 cp[i++] = ' ';
505 cp[cc] = '\0';
506 return (cp);