Skip to content

Commit

Permalink
Added MAC device_type
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Nov 5, 2024
1 parent acdad58 commit 404edf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ Mac::~Mac() {
ndpi_serialize_string_string(&device_json, "mac", mac);
ndpi_serialize_string_uint32(&device_json, "first_seen", first_seen);
ndpi_serialize_string_uint32(&device_json, "last_seen", last_seen);

ndpi_serialize_string_uint32(&device_json, "device_type", getDeviceType());

json_str = ndpi_serializer_get_buffer(&device_json, &json_str_len);
if ((json_str != NULL) && (json_str_len > 0)) {
snprintf(redis_key, sizeof(redis_key), OFFLINE_LOCAL_HOSTS_MACS_QUEUE_NAME, iface->get_id());
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e

0 comments on commit 404edf9

Please sign in to comment.