summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-29 11:18:07 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-29 11:18:07 -0400
commit2e070b48734a9e3795bd8f6eaa0afc99959eefd8 (patch)
tree7701f84cefb7f98b16ef359b4a0cd2c90fda2e08 /ais_json.c
parentdfd374545d5822d46380bf07463e0dd8040a9e42 (diff)
downloadgpsd-2e070b48734a9e3795bd8f6eaa0afc99959eefd8.tar.gz
In AIS, support for Route Info (addressed). 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 c20965f6..8eb97e0a 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -179,6 +179,10 @@ int json_ais_read(const char *buf,
status = json_read_object(buf, json_ais6_fid25, endptr);
imo = true;
}
+ else if (strstr(buf, "\"fid\":28,") != NULL) {
+ status = json_read_object(buf, json_ais6_fid28, endptr);
+ imo = true;
+ }
else if (strstr(buf, "\"fid\":30,") != NULL) {
status = json_read_object(buf, json_ais6_fid30, endptr);
imo = true;