Adding the Kaitai library to parse PCAP files.
[pingpong.git] / Code / Projects / SmartPlugDetector / src / main / java / edu / uci / iotproject / Main.java
1 package edu.uci.iotproject;
2
3 /**
4  * Entry point of the application.
5  *
6  * @author Janus Varmarken
7  */
8 public class Main {
9
10     public static void main(String[] args) throws Exception {
11         System.out.println("it works");
12         String file = "/home/rtrimana/pcap_processing/smart_home_traffic/Code/Projects/SmartPlugDetector/pcap/wlan1.local.dns.pcap";
13         
14         try {
15             Pcap data = Pcap.fromFile(file);
16             //data.hdr();
17         } catch (Exception e) {
18             e.printStackTrace();
19         }
20     }
21 }