]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Multi-byte fields are in network byte order; fetch them appropriately.
authorGuy Harris <[email protected]>
Wed, 15 Jan 2014 20:04:39 +0000 (12:04 -0800)
committerGuy Harris <[email protected]>
Wed, 15 Jan 2014 20:04:39 +0000 (12:04 -0800)
print-icmp6.c

index 83af36654e8e81935bf2ab0516d259abdaa67043..eaa48b03a1ebd74f025cfa7a6f49e54b1dc891b2 100644 (file)
@@ -721,7 +721,7 @@ rpl_dio_print(netdissect_options *ndo,
                   dagid_str,
                   dio->rpl_dtsn,
                   dio->rpl_instanceid,
-                  dio->rpl_dagrank,
+                  EXTRACT_16BITS(&dio->rpl_dagrank),
                   RPL_DIO_GROUNDED(dio->rpl_mopprf) ? "grounded,":"",
                   tok2str(rpl_mop_values, "mop%u", RPL_DIO_MOP(dio->rpl_mopprf)),
                   RPL_DIO_PRF(dio->rpl_mopprf)));