+ case TCPOPT_TCPAO:
+ datalen = len - 2;
+ LENCHECK(datalen);
+ /* RFC 5925 Section 2.2:
+ * "The Length value MUST be greater than or equal to 4."
+ * (This includes the Kind and Length fields already processed
+ * at this point.)
+ */
+ if (datalen < 2) {
+ ND_PRINT((ndo, " invalid"));
+ } else {
+ ND_PRINT((ndo, " keyid %u rnextkeyid %u", cp[0], cp[1]));
+ if (datalen > 2) {
+ ND_PRINT((ndo, " mac "));
+ for (i = 2; i < datalen; i++)
+ ND_PRINT((ndo, "%02x", cp[i]));
+ }
+ }
+ break;