Skip to content

Make it suitable for editing and writing packets #41

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

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

Conversation

vi
Copy link

@vi vi commented Dec 9, 2018

Not tested Only briefly tested for one application; allocation-intensive.

Note sure if it belongs to "dns-parser" project, may probably be as a separate crate.

May help employing proptest/QuickCheck way of doing fuzz test for dns-parser.

Intended use style:

    let p : Packet;
    let mut pp : PacketBuf = p.deep_clone();
    // edit pp
    let mut buf2 = Vec::with_capacity(1024);
    let mut c = std::io::Cursor::new(&mut buf2);
    pp.write_to(c)?;
    s.send_to(&buf2, cla)?;

Resolves #40.

Not tested, allocation-intensive.

Resolves tailhook#40.
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