print-juniper.c (0bff6a5af8cb6d8e5123f8b667df78cac885dbb7) print-juniper.c (39e421e8cedb2a1e819ab3f703a22b4c3da76b61)
1/* NetBSD: print-juniper.c,v 1.2 2007/07/24 11:53:45 drochner Exp */
2
3/*
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that: (1) source code
6 * distributions retain the above copyright notice and this paragraph
7 * in its entirety, and (2) distributions including binary code include
8 * the above copyright notice and this paragraph in its entirety in

--- 1340 unchanged lines hidden (view full) ---

1349 l2info->length -= l2info->cookie_len;
1350 l2info->caplen -= l2info->cookie_len;
1351
1352 if (ndo->ndo_eflag)
1353 ND_PRINT((ndo, "%s-PIC, cookie-len %u",
1354 lp->s,
1355 l2info->cookie_len));
1356
1/* NetBSD: print-juniper.c,v 1.2 2007/07/24 11:53:45 drochner Exp */
2
3/*
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that: (1) source code
6 * distributions retain the above copyright notice and this paragraph
7 * in its entirety, and (2) distributions including binary code include
8 * the above copyright notice and this paragraph in its entirety in

--- 1340 unchanged lines hidden (view full) ---

1349 l2info->length -= l2info->cookie_len;
1350 l2info->caplen -= l2info->cookie_len;
1351
1352 if (ndo->ndo_eflag)
1353 ND_PRINT((ndo, "%s-PIC, cookie-len %u",
1354 lp->s,
1355 l2info->cookie_len));
1356
1357 if (l2info->cookie_len > 8) {
1358 ND_PRINT((ndo, " (invalid)"));
1359 return 0;
1360 }
1361
1357 if (l2info->cookie_len > 0) {
1358 ND_TCHECK2(p[0], l2info->cookie_len);
1359 if (ndo->ndo_eflag)
1360 ND_PRINT((ndo, ", cookie 0x"));
1361 for (idx = 0; idx < l2info->cookie_len; idx++) {
1362 l2info->cookie[idx] = p[idx]; /* copy cookie data */
1363 if (ndo->ndo_eflag) ND_PRINT((ndo, "%02x", p[idx]));
1364 }

--- 144 unchanged lines hidden ---
1362 if (l2info->cookie_len > 0) {
1363 ND_TCHECK2(p[0], l2info->cookie_len);
1364 if (ndo->ndo_eflag)
1365 ND_PRINT((ndo, ", cookie 0x"));
1366 for (idx = 0; idx < l2info->cookie_len; idx++) {
1367 l2info->cookie[idx] = p[idx]; /* copy cookie data */
1368 if (ndo->ndo_eflag) ND_PRINT((ndo, "%02x", p[idx]));
1369 }

--- 144 unchanged lines hidden ---