From 54ae6a9ef3c50192373f68ffa54c4bfb9aecb81a Mon Sep 17 00:00:00 2001 From: Junyoung Date: Fri, 7 Jan 2022 17:29:04 +0900 Subject: [PATCH] Add String x --- src/ARPLayer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ARPLayer.java b/src/ARPLayer.java index 39f4cfe..5069b39 100644 --- a/src/ARPLayer.java +++ b/src/ARPLayer.java @@ -23,7 +23,8 @@ private class _ARP_HEADER { _IP_ADDR srcIp; // Sender's protocol Address _ETHERNET_ADDR dstMac; // Target's hardware Address _IP_ADDR dstIp; // Target's protocol Address - + String x = "dd"; + public _ARP_HEADER() { // 28 Bytes this.macType = new byte[2]; // 2 Bytes / 0 ~ 1 this.ipType = new byte[2]; // 2 Bytes / 2 ~ 3 @@ -264,6 +265,11 @@ public ARP_Send_Thread(byte[] input, String dstIP,int portNum) { public void run() { GetUnderLayer().Send(input, input.length, portNum); while(true) { + try { + Thread.sleep(100); + }catch (Exception e){ + e.printStackTrace(); + } _ARP_Cache_Entry temp = ARP_Cache_table.get(dstIp); if(temp.status == true){ break;