Lines Matching defs:ether_type
160 u_short ether_type;
175 ether_type = GET_BE_U_2(sllp->sll_protocol);
177 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) {
181 switch (ether_type) {
202 ether_type);
207 tok2str(ethertype_values, "Unknown", ether_type),
208 ether_type);
227 u_short ether_type;
259 ether_type = GET_BE_U_2(sllp->sll_protocol);
266 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) {
270 switch (ether_type) {
299 } else if (ether_type == ETHERTYPE_8021Q) {
316 ether_type = GET_BE_U_2(p + 2);
317 if (ether_type <= MAX_ETHERNET_LENGTH_VAL)
318 ether_type = LINUX_SLL_P_802_2;
321 tok2str(ethertype_values, "Unknown", ether_type));
329 if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) {
330 /* ether_type not known, print raw packet */
344 u_short ether_type;
358 ether_type = GET_BE_U_2(sllp->sll2_protocol);
360 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) {
364 switch (ether_type) {
385 ether_type);
390 tok2str(ethertype_values, "Unknown", ether_type),
391 ether_type);
410 u_short ether_type;
455 ether_type = GET_BE_U_2(sllp->sll2_protocol);
462 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) {
466 switch (ether_type) {
495 } else if (ether_type == ETHERTYPE_8021Q) {
512 ether_type = GET_BE_U_2(p + 2);
513 if (ether_type <= MAX_ETHERNET_LENGTH_VAL)
514 ether_type = LINUX_SLL_P_802_2;
517 tok2str(ethertype_values, "Unknown", ether_type));
525 if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) {
526 /* ether_type not known, print raw packet */