Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP6NDSolicitor: Make batch compatible #408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tbarbette
Copy link
Owner

No description provided.

Copy link

@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);

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);

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*){});

}

/*
* Got an Neighborhood Advertisement (response to N. Solicitation Message)
* Update our NDEntry table.
* If there was a packet waiting to be sent, return it.
*/
void
Packet*
IP6NDSolicitor::handle_response(Packet *p)
{
if (p->length() < sizeof(click_ether) + sizeof(click_ip6) + sizeof(click_nd_sol))

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.

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