Skip to content

Commit

Permalink
fanout-id conflict between multiple instances (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Nov 26, 2024
1 parent f8aad46 commit fd1aa78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/bngblaster/src/bbl_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,10 @@ bbl_interface_ctrl(int fd, uint32_t session_id __attribute__((unused)), json_t *
io = io->next;
}

jobj = json_pack("{ss si ss* ss* si sI sI sI sI }",
jobj = json_pack("{ss si si ss* ss* si sI sI sI sI }",
"name", interface->name,
"ifindex", interface->ifindex,
"ifindex-kernel", interface->kernel_index,
"type", interface_type_string(interface->type),
"state", interface_state_string(interface->state),
"state-transitions", interface->state_transitions,
Expand Down
2 changes: 1 addition & 1 deletion code/bngblaster/src/io/io_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ io_thread_init(io_handle_s *io)

io->thread = thread;
thread->io = io;
io->fanout_id = interface->ifindex+1;
io->fanout_id = interface->kernel_index;
io->fanout_type = PACKET_FANOUT_HASH;

/* Allocate thread scratchpad memory */
Expand Down

0 comments on commit fd1aa78

Please sign in to comment.