Home | History | Annotate | Download | only in common

Lines Matching refs:eh

251 	struct ether_header *eh = (struct ether_header *)pkt;
252 struct ip *ih = (struct ip *)(eh + 1);
259 if (ntohs(eh->ether_type) == 0x0800) {
272 al->ea[i] = eh->ether_shost[i];
282 struct ether_header *eh = (struct ether_header *)pkt;
283 struct ip *ih = (struct ip *)(eh + 1);
285 printf("ether_dhost = %s\n", ether_sprintf(eh->ether_dhost));
286 printf("ether_shost = %s\n", ether_sprintf(eh->ether_shost));
287 printf("ether_type = 0x%x\n", ntohs(eh->ether_type));
289 if (ntohs(eh->ether_type) == 0x0800) {