Skip to content

Commit b170946

Browse files
committed
DECnet: Add comments about the specification. [skip ci]
1 parent 61861f3 commit b170946

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

print-decnet.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
*/
2121

2222
/* \summary: DECnet printer */
23+
/*
24+
* specification: Section 10.0 MESSAGES
25+
* DECnet Digital Network Architecture
26+
* Phase IV
27+
* Routing Layer Functional Specification
28+
* Order No. AA-X435A-TK
29+
* Version 2.0.0 December 1983
30+
*/
2331

2432
#include <config.h>
2533

@@ -480,6 +488,11 @@ decnet_print(netdissect_options *ndo,
480488
goto invalid;
481489
}
482490

491+
/*
492+
* This length does not seem to be in any specification, but it is present
493+
* in the test case packet capture, which is consistent with the Wireshark
494+
* protocol decoder.
495+
*/
483496
pktlen = GET_LE_U_2(ap);
484497
if (pktlen < sizeof(struct shorthdr)) {
485498
ND_PRINT(" (pktlen %u < %zu)", pktlen, sizeof(struct shorthdr));

0 commit comments

Comments
 (0)