From: rtrimana Date: Wed, 25 Apr 2018 00:51:26 +0000 (-0700) Subject: Resolving merge conflict in Main.java X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c6c2dd6d2952b2a740caa24d7f28ce6e0ddf4be8;p=pingpong.git Resolving merge conflict in Main.java --- c6c2dd6d2952b2a740caa24d7f28ce6e0ddf4be8 diff --cc Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java index c66d94e,3013665..5d387d0 --- a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java +++ b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java @@@ -7,15 -10,22 +10,29 @@@ import java.util.Map */ public class Main { - public static void main(String[] args) { + public static void main(String[] args) throws Exception { System.out.println("it works"); + String file = "/home/rtrimana/pcap_processing/smart_home_traffic/Code/Projects/SmartPlugDetector/pcap/wlan1.local.dns.pcap"; + + try { + Pcap data = Pcap.fromFile(file); + //data.hdr(); + } catch (Exception e) { + e.printStackTrace(); + } } + + private String cloudIPAddress(String hostName) { + if (hostName.equals("events.tplinkra.com")) - return 205.251.203.26; ++ return "205.251.203.26"; + } + + // TODO move to separate class + // Add parameter that is the trace to be analyzed (most like the pcap library's representation of a flow) + public String findPattern(Map> hostnameToPacketLengths, String smartPlugIp) { + + // No difference, output "Complete match" + // If difference, output for each packet + return null; + } - }