java - jNetPcap acknowledgement value -
im trying retrieve ack tcp 1 wireshark returns. in wireshark returns ack of 1 or 647. when i'm trying ack packet returns long number nothing similar ack wireshark returns.
i these acks:
1918004163 3350411129 3083820792 1730247758 3668869711 4218577993
this code:
if (packet.hasheader(tcp) && packet.hasheader(ip)) { long tcpack = packet.getheader(tcp).ack(); string name = packet.getheader(tcp).getname(); int urgent = packet.getheader(tcp).urgent(); int windowscaled = packet.getheader(tcp).windowscaled(); int window = packet.getheader(tcp).window(); int wirelen = packet.getcaptureheader().wirelen(); // system.out.println("wirelen: "+wirelen); int caplen = packet.getcaptureheader().caplen(); // system.out.println("caplen: "+caplen); string iptypestring = ip.typeenum().tostring(); // system.out.println("ip type: "+iptypestring); string ipdescription = ip.getdescription(); // system.out.println("ip description: "+ipdescription); byte[] dip = packet.getheader(ip).destination(); byte[] sip = packet.getheader(ip).source(); string sourceip = formatutils.ip(sip); // system.out.println("source ip: "+sourceip); string destinationip = formatutils.ip(dip); // system.out.println("destination ip: "+destinationip); int tcpportsource = tcp.source(); // system.out.println("tcp port source: // "+tcpportsource); int tcpportdestination = tcp.destination(); // system.out.println("tcp port destination: // "+tcpportdestination); if (sourceip.equals("someip") && tcpportsource == 0000 && iptypestring.equals("tcp") && wirelen == 1514) { // system.out.println("tcp ack: "+tcpack+" name: "+name+ " urgent: "+urgent + " window scaled: "+windowscaled+ " window: "+window); }
how retrieve same ack value wireshark?
you can't. numbers seeing in wireshark in no.
column, right? assigned wireshark , not info available in packets.
Comments
Post a Comment