Lines Matching refs:ethh
430 memcpy(frame, from->ethh, from->eth_len); in ClonePacketCtx()
436 to->ethh = (struct ethhdr *)frame; in ClonePacketCtx()
502 if (!cur_pkt_ctx->p.ethh) { in mtcp_getlastpkt()
937 struct ethhdr *ethh; in mtcp_setlastpkt() local
1014 if ((ethh=cur_pkt_ctx->p.ethh) == NULL || in mtcp_setlastpkt()
1033 memcpy((uint8_t *)ethh + offset, data, datalen); in mtcp_setlastpkt()
1038 if (cur_pkt_ctx->p.ethh == NULL || in mtcp_setlastpkt()
1039 cur_pkt_ctx->p.ethh->h_proto != ntohs(ETH_P_IP) || in mtcp_setlastpkt()
1040 (iph=(struct iphdr *)(cur_pkt_ctx->p.ethh + 1)) == NULL) { in mtcp_setlastpkt()
1097 iph = (struct iphdr *)(cur_pkt_ctx->p.ethh + 1); in mtcp_setlastpkt()
1143 iph = (struct iphdr *)(cur_pkt_ctx->p.ethh + 1); in mtcp_setlastpkt()
1181 iph = (struct iphdr *)(cur_pkt_ctx->p.ethh + 1); in mtcp_setlastpkt()
1188 iph = (struct iphdr *)(cur_pkt_ctx->p.ethh + 1); in mtcp_setlastpkt()