Skip to content

Commit

Permalink
Remove RawPacket
Browse files Browse the repository at this point in the history
  - Raw packet just passed through to ipv4
    forward all uses of RawPacket to ipv4
  • Loading branch information
jmaxxz committed Mar 27, 2015
1 parent 3da6bd7 commit 5021b40
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions decode/pcap_packet.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var EthernetPacket = require("./ethernet_packet");
var NullPacket = require("./null_packet");
var RawPacket = require("./raw_packet");
var Ipv4 = require("./ipv4");
var RadioPacket = require("./ieee802.11/radio_packet");
var SLLPacket = require("./sll_packet");

@@ -40,7 +40,7 @@ PcapPacket.prototype.decode = function (packet_with_header) {
this.payload = new NullPacket(this.emitter).decode(buf, 0);
break;
case "LINKTYPE_RAW":
this.payload = new RawPacket(this.emitter).decode(buf, 0);
this.payload = new Ipv4(this.emitter).decode(buf, 0);
break;
case "LINKTYPE_IEEE802_11_RADIO":
this.payload = new RadioPacket(this.emitter).decode(buf, 0);
13 changes: 0 additions & 13 deletions decode/raw_packet.js

This file was deleted.

0 comments on commit 5021b40

Please sign in to comment.