Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
    lat_data = tvb(42,4):le_uint()
    lat_string = string.format("%f", lat_data * 2^-29 * 180 / math.pi)
--    subtree:add(pf.Lat, tvb(42,4), string.format("%x", lat_data))
    subtree:add(pf.Lat, tvb(42,4), lat_string
Data (4 bytes)
    Data: 8020f912
    [Length: 4]
Important EASYPOST Protocol
    Lat: 33.971298
    lat_data = tvb(42,4):le_uint()
    lat_string = string.format("%f", lat_data * 2^-29 * 180 / math.pi)
--    subtree:add(pf.Lat, tvb(42,4), string.format("%x", lat_data))
    subtree:add(pf.Lat, tvb(42,4), lat_string
Data (4 bytes)
    Data: 8020f912
    [Length: 4]
Important EASYPOST Protocol
    Lat: 33.971298

My sample capture was created from 0000 80 20 f9 12 hex import with a udp header..
42 is the offset to UDP data.