Lines Matching refs:ep

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