Lines Matching refs:eh

168 	struct eco_header ehdr, *eh;  in eco_output()  local
274 eh = mtod(m, struct eco_header *); in eco_output()
275 *eh = ehdr; in eco_output()
277 memcpy(eh->eco_shost, CLLADDR(ifp->if_sadl), in eco_output()
310 struct eco_header *eh; in eco_interestingp() local
312 eh = mtod(m, struct eco_header *); in eco_interestingp()
313 switch (eh->eco_port) { in eco_interestingp()
327 struct eco_header ehdr, *eh; in eco_input() local
345 eh = &ehdr; in eco_input()
346 m_copydata(m, 0, ECO_HDR_LEN, (void *)eh); in eco_input()
349 switch (eh->eco_port) { in eco_input()
352 switch (eh->eco_control) { in eco_input()
387 if (eh->eco_control == ECO_CTL_ARP_REQUEST) in eco_input()
393 memcpy(ar_sha(ah), eh->eco_shost, ah->ar_hln); in eco_input()
394 memcpy(tha, eh->eco_dhost, ah->ar_hln); in eco_input()
408 memcpy(eh->eco_dhost, eh->eco_shost, ECO_ADDR_LEN); in eco_input()
409 eh->eco_control = ECO_CTL_IPBCAST_REPLY; in eco_input()
412 memcpy(dst->sa_data, eh, ECO_HDR_LEN); in eco_input()
418 ifp->if_xname, eco_sprintf(eh->eco_shost), in eco_input()
419 eh->eco_control, m->m_pkthdr.len); in eco_input()
436 ifp->if_xname, eco_sprintf(eh->eco_shost), in eco_input()
437 eh->eco_port, eh->eco_control); in eco_input()
468 struct eco_header *eh; in eco_start() local
474 eh = mtod(m, struct eco_header *); in eco_start()
475 if (eh->eco_port == ECO_PORT_IMMEDIATE) { in eco_start()
478 } else if (eh->eco_dhost[0] == 255) { in eco_start()
574 struct eco_header *eh, *eh0; in eco_inputframe() local
579 eh = mtod(m, struct eco_header *); in eco_inputframe()
587 if (memcmp(eh->eco_dhost, eco_broadcastaddr, in eco_inputframe()
591 } else if (memcmp(eh->eco_dhost, CLLADDR(ifp->if_sadl), in eco_inputframe()
594 if (eh->eco_port == ECO_PORT_IMMEDIATE) in eco_inputframe()
620 memcmp(eh->eco_shost, eh0->eco_shost, ECO_ADDR_LEN) != 0 || in eco_inputframe()
621 memcmp(eh->eco_dhost, eh0->eco_dhost, ECO_ADDR_LEN) != 0) { in eco_inputframe()
645 memcmp(eh->eco_shost, eh0->eco_dhost, ECO_ADDR_LEN) != 0 || in eco_inputframe()
646 memcmp(eh->eco_dhost, eh0->eco_shost, ECO_ADDR_LEN) != 0) { in eco_inputframe()
676 memcmp(eh->eco_shost, eh0->eco_dhost, ECO_ADDR_LEN) != 0 || in eco_inputframe()
677 memcmp(eh->eco_dhost, eh0->eco_shost, ECO_ADDR_LEN) != 0) { in eco_inputframe()
703 struct eco_header *eh, *reh; in eco_immediate() local
707 eh = mtod(m, struct eco_header *); in eco_immediate()
708 switch (eh->eco_control) { in eco_immediate()
715 memcpy(reh->eco_dhost, eh->eco_shost, in eco_immediate()
737 struct eco_header *eh, *reh; in eco_ack() local
740 eh = mtod(m, struct eco_header *); in eco_ack()
746 memcpy(reh->eco_dhost, eh->eco_shost, ECO_ADDR_LEN); in eco_ack()