Lines Matching defs:ep
318 /* Find the hash node that corresponds the ether address 'ep' */
321 lookup_emem(const u_char *ep)
326 k = (ep[0] << 8) | ep[1];
327 j = (ep[2] << 8) | ep[3];
328 i = (ep[4] << 8) | ep[5];
465 etheraddr_string(register const u_char *ep)
473 tp = lookup_emem(ep);
486 if (ether_ntohost(buf2, (struct ether_addr *)ep) == 0) {
493 oui = EXTRACT_24BITS(ep);
494 *cp++ = hex[*ep >> 4 ];
495 *cp++ = hex[*ep++ & 0xf];
498 *cp++ = hex[*ep >> 4 ];
499 *cp++ = hex[*ep++ & 0xf];
512 linkaddr_string(const u_char *ep, const unsigned int len)
519 return etheraddr_string(ep);
521 tp = lookup_bytestring(ep, len);
528 *cp++ = hex[*ep >> 4];
529 *cp++ = hex[*ep++ & 0xf];
532 *cp++ = hex[*ep >> 4];
533 *cp++ = hex[*ep++ & 0xf];
821 register struct pcap_etherent *ep;
827 while ((ep = pcap_next_etherent(fp)) != NULL) {
828 tp = lookup_emem(ep->addr);
829 tp->e_name = strdup(ep->name);