Lines Matching refs:packet
86 dumpPacket(FILE *fp, PPPoEPacket *packet, char const *dir) in dumpPacket() argument
88 int len = ntohs(packet->length); in dumpPacket()
97 UINT16_t type = etherType(packet); in dumpPacket()
113 switch(packet->code) { in dumpPacket()
125 (int) ntohs(packet->session), in dumpPacket()
132 (unsigned) packet->ethHdr.h_source[0], in dumpPacket()
133 (unsigned) packet->ethHdr.h_source[1], in dumpPacket()
134 (unsigned) packet->ethHdr.h_source[2], in dumpPacket()
135 (unsigned) packet->ethHdr.h_source[3], in dumpPacket()
136 (unsigned) packet->ethHdr.h_source[4], in dumpPacket()
137 (unsigned) packet->ethHdr.h_source[5], in dumpPacket()
138 (unsigned) packet->ethHdr.h_dest[0], in dumpPacket()
139 (unsigned) packet->ethHdr.h_dest[1], in dumpPacket()
140 (unsigned) packet->ethHdr.h_dest[2], in dumpPacket()
141 (unsigned) packet->ethHdr.h_dest[3], in dumpPacket()
142 (unsigned) packet->ethHdr.h_dest[4], in dumpPacket()
143 (unsigned) packet->ethHdr.h_dest[5]); in dumpPacket()
144 dumpHex(fp, packet->payload, ntohs(packet->length)); in dumpPacket()