Lines Matching refs:packet
78 * packet -- a PPPoE packet
83 * Dumps the PPPoE packet to fp in an easy-to-read format
86 dumpPacket(FILE *fp, PPPoEPacket *packet, char const *dir)
88 int len = ntohs(packet->length);
97 UINT16_t type = etherType(packet);
113 switch(packet->code) {
123 (int) ntohs(packet->session),
130 (unsigned) packet->ethHdr.h_source[0],
131 (unsigned) packet->ethHdr.h_source[1],
132 (unsigned) packet->ethHdr.h_source[2],
133 (unsigned) packet->ethHdr.h_source[3],
134 (unsigned) packet->ethHdr.h_source[4],
135 (unsigned) packet->ethHdr.h_source[5],
136 (unsigned) packet->ethHdr.h_dest[0],
137 (unsigned) packet->ethHdr.h_dest[1],
138 (unsigned) packet->ethHdr.h_dest[2],
139 (unsigned) packet->ethHdr.h_dest[3],
140 (unsigned) packet->ethHdr.h_dest[4],
141 (unsigned) packet->ethHdr.h_dest[5]);
142 dumpHex(fp, packet->payload, ntohs(packet->length));