Permalink
Switch branches/tags
Nothing to show
Commits on Aug 27, 2010
  1. style nit: simplify logic

    msantos committed Aug 27, 2010
Commits on Aug 11, 2010
  1. Drop privs with certain options if setuid

    msantos committed Aug 11, 2010
    Instead of exiting if running setuid, drop privs to the calling user if
    epcap is run setuid.
Commits on Aug 6, 2010
  1. Update contributors list

    msantos committed Aug 6, 2010
Commits on Aug 5, 2010
  1. Disallow use of file option with setuid epcap

    msantos committed Aug 5, 2010
    If the "file" option is used with a setuid binary potentially any file
    could be read by epcap. Modify epcap to error and exit in this case.
    
    epcap will not exit if sudo is used since sudo sets uid and euid
    to 0.  This can be worked around by hardcoding the arguments to epcap
    in sudoers.conf.
  2. Update contributors list

    msantos committed Aug 5, 2010
Commits on Jul 9, 2010
  1. Pass ipv4 packet as a list to checksum

    msantos committed Jul 9, 2010
    checksum/3 -> checksum/1
  2. Convert sniff from a gen_server to a gen_fsm

    msantos committed Jul 9, 2010
    Inside the sniff gen_server cocoon, a beautiful gen_fsm butterly was
    struggling to emerge.
Commits on Jun 26, 2010
  1. Specify the protocol in the checksum

    msantos committed Jun 26, 2010
    Don't make the caller specify the protocol when calling checksum with
    a record, since we already know it.
  2. Typo in ICMP packet type

    msantos committed Jun 26, 2010
    Must learn mental compiler is not as good as actual compiler
  3. Path to ei

    msantos committed Jun 26, 2010
    Is there a better way of doing this?
  4. Add record to binary conversion and ICMP types

    msantos committed Jun 26, 2010
    Add the corresponding record to binary conversions. These will be used
    by procket for packet creation.
    
    Add the ICMP types.
    
    Fix the pseudoheader checksumming. Untested.
  5. Add defaults for records

    msantos committed Jun 26, 2010
    Add defaults for the record keys for functions convertig records to
    binaries.
Commits on Jun 6, 2010
Commits on Mar 9, 2010
Commits on Feb 19, 2010
  1. die trailing whitespace die!

    msantos committed Feb 19, 2010
Commits on Feb 5, 2010
  1. Warning about unused variable.

    msantos committed Feb 5, 2010
Commits on Feb 2, 2010
  1. Suggestions from tidier.

    msantos committed Feb 2, 2010
  2. git turds.

    msantos committed Feb 2, 2010
Commits on Jan 26, 2010
  1. Remove unused macro.

    msantos committed Jan 26, 2010
  2. MACROS HURT BRAIN

    msantos committed Jan 26, 2010
    Adjust parentheses to actually make sense. Also, use the macro
    defined in Makefile, just because.
Commits on Jan 25, 2010
  1. Incorrect size specifier for IPv6.

    msantos committed Jan 25, 2010
    Thanks Olivier!
Commits on Jan 23, 2010
  1. Recursively decapsulate the packet.

    msantos committed Jan 23, 2010
    Extensively tested by watching youtube while running sniff. Also,
    highly entertaining.
    
    The decapsulate function still isn't quite right yet, but works.
    It will return a list of records and the binary as a payload. If
    any of the headers has a problem, it will return {unsupported, Data}
    or {truncated, Data} (which will crash sniff).
    
    decapsulate/2 will return stop when it's reached the end of the
    headers.  The rationale is that we will need to support parsing
    other headers for IPv6 (e.g., the IPv6 Hop-by-Hop Options header)
    and eventually, decoding application headers should be supported.
    Maybe by allowing the caller to pass in a fun.
    
    Remove the jumbo payload check, until we support the ipv6 headers.
Commits on Jan 22, 2010
  1. Fix incorrect option.

    msantos committed Jan 22, 2010
  2. Use the #ether{} type field.

    msantos committed Jan 22, 2010
    Instead of returning a 3-tuple from ether/1, match on the #ether{}
    type field; also, return an integer instead of a binary for the
    type.
  3. Add contributors section.

    msantos committed Jan 22, 2010
    Thanks for the patch!
  4. IPv6 support

    oliv3 committed Jan 22, 2010
  5. IPv6 support

    oliv3 committed Jan 22, 2010
Commits on Jan 21, 2010
  1. Typo

    oliv3 committed Jan 21, 2010