Lines Matching refs:ether_type
96 u_int16_t ether_type;
104 ether_type = EXTRACT_16BITS(&ep->ether_type);
106 if (ether_type <= ETHERMTU)
110 tok2str(ethertype_values,"Unknown", ether_type),
111 ether_type));
113 if (ether_type <= ETHERMTU)
116 (void)ND_PRINT((ndo, ", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ether_type)));
135 u_short ether_type;
155 ether_type = EXTRACT_16BITS(&ep->ether_type);
161 if (ether_type <= ETHERMTU) {
165 /* ether_type not known, print raw packet */
175 } else if (ether_type == ETHERTYPE_8021Q ||
176 ether_type == ETHERTYPE_8021Q9100 ||
177 ether_type == ETHERTYPE_8021Q9200 ||
178 ether_type == ETHERTYPE_8021QinQ) {
196 ether_type = EXTRACT_16BITS(p + 2);
197 if (ndo->ndo_eflag && ether_type > ETHERMTU)
198 ND_PRINT((ndo, "ethertype %s, ", tok2str(ethertype_values,"0x%04x", ether_type)));
203 } else if (ether_type == ETHERTYPE_JUMBO) {
216 /* ether_type not known, print raw packet */
227 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) {
228 /* ether_type not known, print raw packet */
322 u_short ether_type, const u_char *p,
325 switch (ether_type) {