summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-30 09:38:05 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-30 09:38:05 -0400
commita6559a248a72189c0119e2e768a3a8e4ed96c64f (patch)
treef7d357293f94b1ec1b01d4e858d87129759c714f /ais_json.c
parent477868c20c2026fe7d13c4401e56aa5f57ae0f4c (diff)
downloadgpsd-a6559a248a72189c0119e2e768a3a8e4ed96c64f.tar.gz
In AIS, support for IMO Route info (broadcast). All regression tests pass.
Diffstat (limited to 'ais_json.c')
-rw-r--r--ais_json.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ais_json.c b/ais_json.c
index 8eb97e0a..efdcce1c 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -236,6 +236,10 @@ int json_ais_read(const char *buf,
status = json_read_object(buf, json_ais8_fid19, endptr);
imo = true;
}
+ else if (strstr(buf, "\"fid\":27,") != NULL) {
+ status = json_read_object(buf, json_ais8_fid27, endptr);
+ imo = true;
+ }
else if (strstr(buf, "\"fid\":29,") != NULL) {
status = json_read_object(buf, json_ais8_fid29, endptr);
imo = true;