Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:cp

176 	register char *cp;
182 cp = buf + sizeof(buf);
183 *--cp = '\0';
188 *--cp = byte % 10 + '0';
191 *--cp = byte % 10 + '0';
194 *--cp = byte + '0';
196 *--cp = '.';
200 return cp + 1;
279 register const char *cp;
309 cp = inet_ntop(AF_INET6, &addr, ntop_buf, sizeof(ntop_buf));
310 p->name = strdup(cp);
468 register char *cp;
492 cp = buf;
494 *cp++ = hex[*ep >> 4 ];
495 *cp++ = hex[*ep++ & 0xf];
497 *cp++ = ':';
498 *cp++ = hex[*ep >> 4 ];
499 *cp++ = hex[*ep++ & 0xf];
503 snprintf(cp, BUFSIZE - (2 + 5*3), " (oui %s)",
506 *cp = '\0';
515 register char *cp;
525 tp->e_name = cp = (char *)malloc(len*3);
528 *cp++ = hex[*ep >> 4];
529 *cp++ = hex[*ep++ & 0xf];
531 *cp++ = ':';
532 *cp++ = hex[*ep >> 4];
533 *cp++ = hex[*ep++ & 0xf];
535 *cp = '\0';
542 register char *cp;
554 cp = buf;
556 *cp++ = hex[port >> 12 & 0xf];
557 *cp++ = hex[port >> 8 & 0xf];
558 *cp++ = hex[port >> 4 & 0xf];
559 *cp++ = hex[port & 0xf];
560 *cp++ = '\0';
569 register char *cp;
577 cp = buf;
579 *cp++ = hex[j];
580 *cp++ = hex[*pi++ & 0xf];
582 *cp++ = ':';
584 *cp++ = hex[j];
585 *cp++ = hex[*pi++ & 0xf];
587 *cp = '\0';
597 register char *cp;
607 tp->e_name = cp = (char *)malloc(sizeof("xx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xxxx.xx"));
608 if (cp == NULL)
612 *cp++ = hex[*nsap >> 4];
613 *cp++ = hex[*nsap++ & 0xf];
616 *cp++ = '.';
619 *cp = '\0';
664 register char *cp;
676 cp = buf;
678 *cp++ = hex[port >> 12 & 0xf];
679 *cp++ = hex[port >> 8 & 0xf];
680 *cp++ = hex[port >> 4 & 0xf];
681 *cp++ = hex[port & 0xf];
682 *cp++ = '\0';