adding UDP module back in with field set usage
This commit is contained in:
1 parent
d1eeff167d
commit
8cd541d039
7 files changed
+49
-25
No files matched your search
@@ -83,6 +83,8 @@ int csv_process(fieldset_t *fs)
|
||||
fprintf(file, "%lu", (uint64_t) f->value);
|
||||
} else if (f->type == FS_BINARY) {
|
||||
hex_encode(file, (unsigned char*) f->value, f->len);
|
||||
} else if (f->type == FS_NULL) {
|
||||
// do nothing
|
||||
} else {
|
||||
log_fatal("csv", "received unknown output type");
|
||||
}
|
||||
|
||||
@@ -156,6 +156,8 @@ int json_output_file_ip(fieldset_t *fs)
|
||||
} else if (f->type == FS_BINARY) {
|
||||
json_output_file_store_data(obj,
|
||||
(const u_char*) f->value, f->len);
|
||||
} else if (f->type == FS_NULL) {
|
||||
// do nothing
|
||||
} else {
|
||||
log_fatal("csv", "received unknown output type");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user