2 Replies Latest reply on May 8, 2008 1:22 PM by 807591

    jpcap find ip and mac address

      i know you can get single packets using jpcap
      with the following code but how do you get just the ip and mac address from the output
                JpcapCaptor captor = JpcapCaptor.openDevice(devices[5], 65535, false, 20);
                captor.setFilter("ip", true);
                for(int i=0;i<100;i++){  //capture a single packet and print it out  
      this is what it prints/outputs

      1210247225:631903 />/ protocol(6) priority(0) hop(128) offset(0) ident(4029) TCP 1248 > 80 seq(2051569441) win(16384) S