X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a8c33a5850cd9d2f39e56c06b645c283225d78c4..5ef0bcb5edd748de9d9af13c40da0395dfdd94e8:/print-geonet.c?ds=sidebyside diff --git a/print-geonet.c b/print-geonet.c index 67945800..bd2fa056 100644 --- a/print-geonet.c +++ b/print-geonet.c @@ -88,17 +88,13 @@ print_long_pos_vector(netdissect_options *ndo, { uint32_t lat, lon; - ND_TCHECK_LEN(bp, GEONET_ADDR_LEN); - ND_PRINT("GN_ADDR:%s ", linkaddr_string (ndo, bp, LINKADDR_OTHER, GEONET_ADDR_LEN)); + ND_PRINT("GN_ADDR:%s ", GET_LINKADDR_STRING(bp, LINKADDR_OTHER, GEONET_ADDR_LEN)); - ND_TCHECK_8(bp + 12); lat = GET_BE_U_4(bp + 12); ND_PRINT("lat:%u ", lat); lon = GET_BE_U_4(bp + 16); ND_PRINT("lon:%u", lon); return (0); -trunc: - return -1; }