Lines Matching refs:ether_type
98 u_int16_t ether_type;
106 ether_type = EXTRACT_16BITS(&ep->ether_type);
108 if (ether_type <= ETHERMTU)
112 tok2str(ethertype_values,"Unknown", ether_type),
113 ether_type));
115 if (ether_type <= ETHERMTU)
118 (void)ND_PRINT((ndo, ", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ether_type)));
137 u_short ether_type;
157 ether_type = EXTRACT_16BITS(&ep->ether_type);
163 if (ether_type <= ETHERMTU) {
167 /* ether_type not known, print raw packet */
177 } else if (ether_type == ETHERTYPE_8021Q ||
178 ether_type == ETHERTYPE_8021Q9100 ||
179 ether_type == ETHERTYPE_8021Q9200 ||
180 ether_type == ETHERTYPE_8021QinQ) {
198 ether_type = EXTRACT_16BITS(p + 2);
199 if (ndo->ndo_eflag && ether_type > ETHERMTU)
200 ND_PRINT((ndo, "ethertype %s, ", tok2str(ethertype_values,"0x%04x", ether_type)));
205 } else if (ether_type == ETHERTYPE_JUMBO) {
218 /* ether_type not known, print raw packet */
229 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) {
230 /* ether_type not known, print raw packet */
324 u_short ether_type, const u_char *p,
327 switch (ether_type) {