Git Product home page Git Product logo

je2e's Introduction

NAME

je2e - Juniper .pcap file convertor.

SYNOPSIS

    je2e [-f] [-v] infile.pcap outfile.pcap

DESCRIPTION

.pcap files collected on Juniper routers written in a bit special format, (datalink type: Juniper Ethernet, not standard Ethernet) with packets entering RE missing layer2 headers and thus these packets can be read by tcpdump but will not be fully decoded by wireshark.

This utility was written to overcome wireshark limitation and what it does is just:

  • opens infile and checks that is was collected on Juniper (has datalink type of Juniper Ethernet)
  • reads infile packet by packet
  • check if input packet has layer2 header.
  • if it does - just writes packet with existing header.
  • if it does not - je2e writes packet with prepended simulated ethernet header

Simulated header is constructed as follows:

  • all-zero addresses are used for both source and destination mac-address
  • ethertype is guessed from the first nibble of data: 4 means IPv4 and 6 IPv6.

The options are as follows:

-f

Allow outfile overwriting. Without this option je2e will refuse to overwrite existing output file.

-v

Be a bit more verbose about processing.

DIAGNOSTICS

When everything is ok, je2e returns with exit code of 0 and without any output.

When error happens it will be written to stdout and exit-code will be non-zero.

Edge cases: too short packets, or packets without both l2 headers correct first nibble: in this case warning message written on stderr, however, processing continues.

AUTHOR

Alexandre Snarskii [email protected]

je2e's People

Contributors

snar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.