Skip to content

Commit 138785c

Browse files
committed
UniRec output: Introduce struct to enable extra EXPORTER_IP converter
1 parent a1dc199 commit 138785c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extra_plugins/output/unirec/src/translator.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ struct translator_s {
157157
int req_idx; /**< Index in the template */
158158
ur_field_id_t field_id; /**< UniRec field ID */
159159
} odid; /**< ODID from IPFIX Message header */
160+
struct
161+
{
162+
bool en; /**< Enabled/disabled */
163+
int req_idx; /**< Index in the template */
164+
ur_field_id_t field_id; /**< UniRec field ID */
165+
} exporter_ip; /**< Exporter IP address from message session */
160166
} extra_conv; /**< Special internal conversion functions */
161167
};
162168

0 commit comments

Comments
 (0)