diff options
author | Nirgal <gpsd@nirgal.com> | 2010-05-22 10:56:49 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-05-22 10:56:49 -0400 |
commit | f4fab66485db08aaf9678c76211a6e3b9a19d330 (patch) | |
tree | a07915aff4569308f86921c982b04acb74051392 /gpsd.h-tail | |
parent | 0f3dc2f3dcd1f24071a4e8d8f2296f202942e7d5 (diff) | |
download | gpsd-f4fab66485db08aaf9678c76211a6e3b9a19d330.tar.gz |
Make sure 24A and 24B aivdm sentences are correctly aggregated.
Patch adds unit tests for all the collision cases.
All regression tests pass.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index fdb44a19..e3b4ee25 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -196,8 +196,9 @@ struct aivdm_context_t { /* hold context for decoding AIDVM packet sequences */ int decoded_frags; /* for tracking AIDVM parts in a multipart sequence */ unsigned char bits[2048]; - size_t bitlen; - char shipname[AIS_SHIPNAME_MAXLEN+1]; /* type 24 specific */ + size_t bitlen; /* how many valid bits */ + unsigned int mmsi24; /* type 24 specific */ + char shipname24[AIS_SHIPNAME_MAXLEN+1]; /* type 24 specific */ }; struct gps_device_t; |