]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/json.h
zebra, lib: Fix SA warning and formatting.
[mirror_frr.git] / lib / json.h
index e3e55ab962de77f7cab5a860713e7935c2a1f599..675d852af718829acb735c282b67ce19a7afb165 100644 (file)
@@ -52,4 +52,19 @@ extern void json_object_free(struct json_object *obj);
 
 #define JSON_STR "JavaScript Object Notation\n"
 
+/* NOTE: json-c lib has following commit 316da85 which
+ * handles escape of forward slash.
+ * This allows prefix  "20.0.14.0\/24":{
+ * to  "20.0.14.0/24":{ some platforms do not have
+ * latest copy of json-c where defining below macro.
+ */
+
+#ifndef JSON_C_TO_STRING_NOSLASHESCAPE
+
+/**
+  * Don't escape forward slashes.
+  */
+#define JSON_C_TO_STRING_NOSLASHESCAPE (1<<4)
+#endif
+
 #endif /* _QUAGGA_JSON_H */