Skip to content

Commit a1dc199

Browse files
committed
UniRec output: Introduce mapping for internal EXPORTER_IP field
1 parent 0ed9597 commit a1dc199

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

extra_plugins/output/unirec/src/map.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ map_elem_get_internal(const char *elem)
234234
return MAP_SRC_INTERNAL_DBF;
235235
} else if (strcmp(elem, "_internal_odid_") == 0) {
236236
return MAP_SRC_INTERNAL_ODID;
237+
} else if (strcmp(elem, "_internal_exporter_ip_") == 0) {
238+
return MAP_SRC_INTERNAL_EXPORTER_IP;
237239
} else {
238240
return MAP_SRC_INVALID;
239241
}

extra_plugins/output/unirec/src/map.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ enum MAP_SRC {
6060
/** Internal "dir bit field" converter */
6161
MAP_SRC_INTERNAL_DBF,
6262
/** Internal "odid field" converter */
63-
MAP_SRC_INTERNAL_ODID
63+
MAP_SRC_INTERNAL_ODID,
64+
/** Internal "exporter ip field" converter */
65+
MAP_SRC_INTERNAL_EXPORTER_IP
6466
};
6567

6668
enum MAP_FLAGS {

0 commit comments

Comments
 (0)