1 package edu.uci.iotproject;
7 * Entry point of the application.
9 * @author Janus Varmarken
13 public static void main(String[] args) throws Exception {
14 System.out.println("it works");
15 String file = "/home/rtrimana/pcap_processing/smart_home_traffic/Code/Projects/SmartPlugDetector/pcap/wlan1.local.dns.pcapdump";
18 Pcap data = Pcap.fromFile(file);
20 } catch (Exception e) {
25 private String cloudIPAddress(String hostName) {
26 if (hostName.equals("events.tplinkra.com"))
27 return "205.251.203.26";
32 // TODO move to separate class
33 // Add parameter that is the trace to be analyzed (most like the pcap library's representation of a flow)
34 public String findPattern(Map<String, List<Integer>> hostnameToPacketLengths, String smartPlugIp) {
36 // No difference, output "Complete match"
37 // If difference, output <Packet no, deviation from expected> for each packet