Skip to content

Conversation

@tbarbette
Copy link
Owner

No description provided.

Copy link
Contributor

@nrybowski nrybowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch has been tested and is functional modulo the few fixes proposed in comments.
Thanks !

Comment on lines 292 to 294
Packet* p = handle_ip6(p);
if (p)
output_push(0, p);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Segfault here because of variable capture.

Packet* out = handle_ip6(p);
if (out)
  output_push(0, out);

return q;
}
};
EXECUTE_FOR_EACH_PACKET_DROPPABLE(fnt, batch);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a missing argument in the macro call.

EXECUTE_FOR_EACH_PACKET_DROPPABLE(fnt, batch, [](Packet*){});

Packet*
IP6NDSolicitor::handle_response(Packet *p)
{
if (p->length() < sizeof(click_ether) + sizeof(click_ip6) + sizeof(click_nd_sol))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following return should return 0. Same comment for the return at L270.

@tbarbette
Copy link
Owner Author

Can you do a PR with the fix ?

@nrybowski
Copy link
Contributor

Proposed fixes are defined in #411.

@tbarbette tbarbette closed this Feb 26, 2025
@tbarbette tbarbette reopened this Feb 26, 2025
@tbarbette tbarbette merged commit 2ee1a64 into main Feb 26, 2025
26 checks passed
@tbarbette tbarbette deleted the PRip6ndbatch branch February 26, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants