]> The Tcpdump Group git mirrors - tcpdump/commitdiff
FR: Fix extracting the DE flag
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 17 Dec 2017 10:50:26 +0000 (11:50 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 17 Dec 2017 11:34:13 +0000 (12:34 +0100)
Update the output of a test accordingly.

print-fr.c
tests/esis_snpa_asan.out

index f1ff0af73bd3d19b0a5090cb83292877d9cf07ae..2365bf5734c256f3e8e6c7c55aab5493ab0e0465 100644 (file)
@@ -113,7 +113,7 @@ static int parse_q922_addr(netdissect_options *ndo,
        *dlci = ((EXTRACT_U_1(p) & 0xFC) << 2) | ((EXTRACT_U_1(p + 1) & 0xF0) >> 4);
 
         flags[0] = EXTRACT_U_1(p) & 0x02; /* populate the first flag fields */
-        flags[1] = EXTRACT_U_1(p + 1) & 0x0c;
+        flags[1] = EXTRACT_U_1(p + 1) & 0x0e;
         flags[2] = 0;           /* clear the rest of the flags */
         flags[3] = 0;
 
index 82732ca06a38c94493314bb7264b3b123091c816..32c02d3f529ccf13498b39c2724e28a88507a7e5 100644 (file)
@@ -7,6 +7,6 @@ UI 22! ES-IS, length 65565
        redirect (6), v: 1, checksum: 0xffff (incorrect should be 0x6b16), holding time: 21253s, length indicator: 17
          00.04ec.0000
          SNPA (length: 0): <empty>, bad opts/li
-Q.922, hdr-len 2, DLCI 0, Flags [FECN], NLPID unknown (0x22), length 72482: 
+Q.922, hdr-len 2, DLCI 0, Flags [DE, FECN], NLPID unknown (0x22), length 72482: 
        0x0000:  0082 1000 5542 5343 70a1 0200 0400 0000  ....UBSCp.......
        0x0010:  007e                                     .~