Lines Matching refs:ethh
66 struct ethhdr *ethh; in DumpPacket() local
77 ethh = (struct ethhdr *)buf; in DumpPacket()
78 if (ntohs(ethh->h_proto) != ETH_P_IP) { in DumpPacket()
80 ethh->h_source[0], in DumpPacket()
81 ethh->h_source[1], in DumpPacket()
82 ethh->h_source[2], in DumpPacket()
83 ethh->h_source[3], in DumpPacket()
84 ethh->h_source[4], in DumpPacket()
85 ethh->h_source[5], in DumpPacket()
86 ethh->h_dest[0], in DumpPacket()
87 ethh->h_dest[1], in DumpPacket()
88 ethh->h_dest[2], in DumpPacket()
89 ethh->h_dest[3], in DumpPacket()
90 ethh->h_dest[4], in DumpPacket()
91 ethh->h_dest[5]); in DumpPacket()
93 thread_printf(mtcp, mtcp->log_fp, "protocol %04hx ", ntohs(ethh->h_proto)); in DumpPacket()
99 iph = (struct iphdr *)(ethh + 1); in DumpPacket()