]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ospf6.c
the failed/passed count was not kept in the right place
[tcpdump] / print-ospf6.c
index c734b4d20ebe264608591b14ec93e6b6bc426f72..b50cd5cac21c0ab6872566386a86fb2062d315ac 100644 (file)
@@ -388,8 +388,7 @@ ospf6_print_lshdr(netdissect_options *ndo,
 {
        if ((const u_char *)(lshp + 1) > dataend)
                goto trunc;
-       ND_TCHECK_2(lshp->ls_type);
-       ND_TCHECK_4(lshp->ls_seq);
+       ND_TCHECK_4(lshp->ls_router);
 
        ND_PRINT("\n\t  Advertising Router %s, seq 0x%08x, age %us, length %u",
                ipaddr_string(ndo, lshp->ls_router),
@@ -604,9 +603,9 @@ ospf6_print_lsa(netdissect_options *ndo,
                        if (lsa_length < sizeof (nd_ipv6))
                                return (1);
                        lsa_length -= sizeof (nd_ipv6);
-                       ND_TCHECK_8(tptr);
+                       ND_TCHECK_16(tptr);
                        ND_PRINT(" forward %s",
-                              ip6addr_string(ndo, tptr));
+                                ip6addr_string(ndo, tptr));
                        tptr += sizeof(nd_ipv6);
                }