{
u_int type, subtype, len;
u_int count;
+ const char *sep;
type = GET_U_1(cp);
len = GET_BE_U_2(cp + 2);
ND_PRINT(" (too short for EAP Legacy NAK request/response)");
return;
}
+ sep = "";
for (count = 5; count < len; count++) {
- ND_PRINT(" %s (%u),",
+ ND_PRINT("%s %s (%u)", sep,
tok2str(eap_type_values, "unknown", GET_U_1((cp + count))),
GET_U_1(cp + count));
+ sep = ",";
}
break;
if (subtype == EAP_TYPE_TTLS)
ND_PRINT(" TTLSv%u",
EAP_TTLS_VERSION(GET_U_1((cp + 5))));
- ND_PRINT(" flags [%s] 0x%02x,",
+ ND_PRINT(" flags [%s] 0x%02x",
bittok2str(eap_tls_flags_values, "none", GET_U_1((cp + 5))),
GET_U_1(cp + 5));
ND_PRINT(" (too short for EAP TLS/TTLS request/response with length)");
return;
}
- ND_PRINT(" len %u", GET_BE_U_4(cp + 6));
+ ND_PRINT(", len %u", GET_BE_U_4(cp + 6));
}
break;
}
ND_PRINT(" FASTv%u",
EAP_TTLS_VERSION(GET_U_1((cp + 5))));
- ND_PRINT(" flags [%s] 0x%02x,",
+ ND_PRINT(" flags [%s] 0x%02x",
bittok2str(eap_tls_flags_values, "none", GET_U_1((cp + 5))),
GET_U_1(cp + 5));
ND_PRINT(" (too short for EAP FAST request/response with length)");
return;
}
- ND_PRINT(" len %u", GET_BE_U_4(cp + 6));
+ ND_PRINT(", len %u", GET_BE_U_4(cp + 6));
}
/* FIXME - TLV attributes follow */
ND_PRINT(" (too short for EAP SIM/AKA request/response)");
return;
}
- ND_PRINT(" subtype [%s] 0x%02x,",
+ ND_PRINT(" subtype [%s] 0x%02x",
tok2str(eap_aka_subtype_values, "unknown", GET_U_1((cp + 5))),
GET_U_1(cp + 5));
19 15:17:37.766046 EAP packet (0) v1, len 45, Response (2), id 2, len 45
20 15:17:37.790625 EAP packet (0) v1, len 20, Request (1), id 16, len 20
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
21 15:17:37.830669 EAP packet (0) v1, len 76, Response (2), id 16, len 76
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
22 15:17:37.848577 EAP packet (0) v1, len 80, Request (1), id 17, len 80
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
23 15:17:38.661939 EAP packet (0) v1, len 28, Response (2), id 17, len 28
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
24 15:17:38.685352 EAP packet (0) v1, len 4, Success (3), id 0, len 4
25 15:17:38.686358 EAPOL key (3) v1, len 57
26 15:17:38.687182 EAPOL key (3) v1, len 44
32 15:18:08.713116 EAP packet (0) v1, len 45, Response (2), id 3, len 45
33 15:18:08.787664 EAP packet (0) v1, len 20, Request (1), id 47, len 20
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
34 15:18:10.344628 EAP packet (0) v1, len 76, Response (2), id 47, len 76
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
35 15:18:10.473292 EAP packet (0) v1, len 80, Request (1), id 48, len 80
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
36 15:18:11.152435 EAP packet (0) v1, len 28, Response (2), id 48, len 28
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
37 15:18:11.251425 EAP packet (0) v1, len 4, Success (3), id 0, len 4
38 15:18:11.252509 EAPOL key (3) v1, len 57
39 15:18:11.253336 EAPOL key (3) v1, len 44
55 15:18:41.275901 EAP packet (0) v1, len 45, Response (2), id 4, len 45
56 15:18:41.388857 EAP packet (0) v1, len 20, Request (1), id 80, len 20
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
57 15:18:41.715620 IP (tos 0x0, ttl 128, id 14541, offset 0, flags [none], proto UDP (17), length 96)
169.254.67.194.137 > 169.254.255.255.137: UDP, length 68
58 15:18:42.466013 IP (tos 0x0, ttl 128, id 14542, offset 0, flags [none], proto UDP (17), length 96)
169.254.67.194.137 > 169.254.255.255.137: UDP, length 68
59 15:18:42.963175 EAP packet (0) v1, len 76, Response (2), id 80, len 76
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
60 15:18:42.987906 EAP packet (0) v1, len 80, Request (1), id 81, len 80
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
61 15:18:43.216408 IP (tos 0x0, ttl 128, id 14543, offset 0, flags [none], proto UDP (17), length 96)
169.254.67.194.137 > 169.254.255.255.137: UDP, length 68
62 15:18:43.675053 EAP packet (0) v1, len 28, Response (2), id 81, len 28
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
63 15:18:43.695554 EAP packet (0) v1, len 4, Success (3), id 0, len 4
64 15:18:43.696547 EAPOL key (3) v1, len 57
65 15:18:43.697368 EAPOL key (3) v1, len 44
106 15:19:13.718221 EAP packet (0) v1, len 45, Response (2), id 5, len 45
107 15:19:13.734974 EAP packet (0) v1, len 20, Request (1), id 112, len 20
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
108 15:19:14.801245 IP (tos 0x0, ttl 128, id 14604, offset 0, flags [none], proto UDP (17), length 229)
169.254.67.194.138 > 169.254.255.255.138: UDP, length 201
109 15:19:15.293800 EAP packet (0) v1, len 76, Response (2), id 112, len 76
- Type SIM (18) subtype [Start] 0x0a,
+ Type SIM (18) subtype [Start] 0x0a
110 15:19:15.312531 EAP packet (0) v1, len 80, Request (1), id 113, len 80
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
111 15:19:15.997763 EAP packet (0) v1, len 28, Response (2), id 113, len 28
- Type SIM (18) subtype [Challenge] 0x0b,
+ Type SIM (18) subtype [Challenge] 0x0b
112 15:19:16.022323 EAP packet (0) v1, len 4, Success (3), id 0, len 4
113 15:19:16.023335 EAPOL key (3) v1, len 57
114 15:19:16.024149 EAPOL key (3) v1, len 44