+ bp += ui;
+ length -= ui;
+
+ /* Print the mode - RRQ and WRQ only */
+ if (length == 0)
+ goto trunc; /* no mode */
+ ND_PRINT(" ");
+ ui = nd_printztn(ndo, bp, length, ndo->ndo_snapend);
+ if (ui == 0)
+ goto trunc;
+ bp += ui;
+ length -= ui;
+
+ /* Print options, if any */
+ while (length != 0) {
+ if (GET_U_1(bp) != '\0')
+ ND_PRINT(" ");
+ ui = nd_printztn(ndo, bp, length, ndo->ndo_snapend);
+ if (ui == 0)
+ goto trunc;
+ bp += ui;
+ length -= ui;
+ }
+ break;
+
+ case OACK:
+ /* Print options */
+ while (length != 0) {
+ if (GET_U_1(bp) != '\0')
+ ND_PRINT(" ");
+ ui = nd_printztn(ndo, bp, length, ndo->ndo_snapend);
+ if (ui == 0)
+ goto trunc;
+ bp += ui;
+ length -= ui;
+ }