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

Added sampling to dnscap #15

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

Added sampling to dnscap #15

wants to merge 13 commits into from

Commits on Sep 14, 2016

  1. Added a Sampling Module

    Added a module that allows the output to be sampled. With the new -q option, the user is now able to decide whether the output should be sampled as follows: Only every nth query is output and only responses that correspond to one of these sampled queries will be output.
    e.g.:
    dnscap -r ./file.pcap -g -q 10 will output only every 10th query and these queries' corresponding responses.
    chegger authored Sep 14, 2016
    Configuration menu
    Copy the full SHA
    add5fb8 View commit details
    Browse the repository at this point in the history
  2. Updated dnscap.1.in

    Updated dnscap.1.in to match the Sampling Module addition
    chegger authored Sep 14, 2016
    Configuration menu
    Copy the full SHA
    0fbc9c2 View commit details
    Browse the repository at this point in the history
  3. Added uthash.h

    uthash is used as the hash table library in the Sampling Module
    chegger authored Sep 14, 2016
    Configuration menu
    Copy the full SHA
    2a5449e View commit details
    Browse the repository at this point in the history
  4. Added a Sampling Module

    Added a module that allows the output to be sampled. With the new -q option, the user is now able to decide whether the output should be sampled as follows: Only every nth query is output and only responses that correspond to one of these sampled queries will be output.
    e.g.:
    dnscap -r ./file.pcap -g -q 10 will output only every 10th query and these queries' corresponding responses.
    chegger authored Sep 14, 2016
    Configuration menu
    Copy the full SHA
    949db6e View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2016

  1. corrections

    Changed parameter for the q option from "unsigned int" to "nth"
    chegger authored Sep 15, 2016
    Configuration menu
    Copy the full SHA
    7705450 View commit details
    Browse the repository at this point in the history
  2. corrections

    changed the parameter of the q option from "unsigned int" to "nth"
    chegger authored Sep 15, 2016
    Configuration menu
    Copy the full SHA
    db0467b View commit details
    Browse the repository at this point in the history
  3. Applied corrections to dnscap.c

    Applied most of the suggested corrections suggested by jelu
    chegger authored Sep 15, 2016
    Configuration menu
    Copy the full SHA
    a527e69 View commit details
    Browse the repository at this point in the history
  4. disable sampling if compiled without libbind

    Disabled the sampling code if dnscap is not compiled with libbind.
    chegger authored Sep 15, 2016
    Configuration menu
    Copy the full SHA
    12d1fd3 View commit details
    Browse the repository at this point in the history
  5. More corrections to dnscap.c

    Corrected chooseSidesResponse logic.
    chegger authored Sep 15, 2016
    Configuration menu
    Copy the full SHA
    5ece843 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2016

  1. added ipv6 support for sampling

    Added a proper way to support ipv6 addresses for sampling.
    chegger authored Sep 19, 2016
    Configuration menu
    Copy the full SHA
    53bb6b9 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2016

  1. fixed the libbind dependency

    Fixed the libbind dependency logic for sampling
    chegger authored Sep 20, 2016
    Configuration menu
    Copy the full SHA
    423990b View commit details
    Browse the repository at this point in the history
  2. updated ipv4/v6 support for sampling

    Updated the support for ipv4/v6 in the sampling code.
    Also made some slight changes to the libbind dependency logic.
    chegger authored Sep 20, 2016
    Configuration menu
    Copy the full SHA
    31a4215 View commit details
    Browse the repository at this point in the history
  3. rephrased a comment

    rephrased a comment from "Sampling Module" to "sampling"
    chegger authored Sep 20, 2016
    Configuration menu
    Copy the full SHA
    9581375 View commit details
    Browse the repository at this point in the history