Lines Matching defs:ep
320 /* Find the hash node that corresponds the ether address 'ep' */
323 lookup_emem(const u_char *ep)
328 k = (ep[0] << 8) | ep[1];
329 j = (ep[2] << 8) | ep[3];
330 i = (ep[4] << 8) | ep[5];
470 etheraddr_string(netdissect_options *ndo, register const u_char *ep)
478 tp = lookup_emem(ep);
491 if (ether_ntohost(buf2, (struct ether_addr *)ep) == 0) {
498 oui = EXTRACT_24BITS(ep);
499 *cp++ = hex[*ep >> 4 ];
500 *cp++ = hex[*ep++ & 0xf];
503 *cp++ = hex[*ep >> 4 ];
504 *cp++ = hex[*ep++ & 0xf];
517 le64addr_string(const u_char *ep)
525 tp = lookup_bytestring(ep, len);
531 *cp++ = hex[*(ep + i - 1) >> 4];
532 *cp++ = hex[*(ep + i - 1) & 0xf];
545 linkaddr_string(netdissect_options *ndo, const u_char *ep, const unsigned int type, const unsigned int len)
555 return (etheraddr_string(ndo, ep));
558 return (q922_string(ndo, ep, len));
560 tp = lookup_bytestring(ep, len);
567 *cp++ = hex[*ep >> 4];
568 *cp++ = hex[*ep++ & 0xf];
571 *cp++ = hex[*ep >> 4];
572 *cp++ = hex[*ep++ & 0xf];
860 register struct pcap_etherent *ep;
866 while ((ep = pcap_next_etherent(fp)) != NULL) {
867 tp = lookup_emem(ep->addr);
868 tp->e_name = strdup(ep->name);