Skip to content

Conversation

@teto
Copy link
Contributor

@teto teto commented Jul 21, 2015

When writing a Header to pcap, it should not be modified and thus be
passed as a constant.

Adds a sink to export Header along the packet for performance reasons (prevent creating a new Packet).

I've also simplified some tests to remove unnecessary data copy.

When writing a Header to pcap, it should not be modified and thus be
passed as a constant.

This commits adds a sink to export Header along the packet. This is
done for performance reasons, to prevent the (costly) creation of a new packet with the header.

I've also modified some tests to remove unnecessary data copy via using
the overload that accepts a packet as a parameter.
@teto
Copy link
Contributor Author

teto commented Jul 23, 2015

Closed due to diff committed by vedranm (368aa19)

@teto teto closed this Jul 23, 2015
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.

1 participant