Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunhan Jia authored and Yunhan Jia committed Nov 2, 2014
1 parent 5be00de commit ff599b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcpflowstat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ char * TCPFlowStat::getStrAddr(u_int ip){
}

void TCPFlowStat::printStat(){
if (1 && strcmp(getStrAddr(cltip),"192.168.1.139")==0 && strcmp(getStrAddr(svrip),"31.13.74.144")==0)
if (1 && strcmp(getStrAddr(cltip),"33.161.36.29")==0 && strcmp(getStrAddr(svrip),"10.170.231.69")==0)
printf("\ncltip:%s svrip:%s cltport:%d svrport:%d cltseq:%u cltackseq:%u svrseq:%u svrackseq:%u\n",\
getStrAddr(cltip),getStrAddr(svrip), cltport,svrport,cltseq,cltackseq,svrseq,svrackseq);
}
Expand All @@ -76,7 +76,7 @@ void TCPFlowStat::addPacket(struct ip* ip, struct tcphdr* tcphdr, double ts){
int pktdir=getPacketDirection(ip->ip_src.s_addr, ip->ip_dst.s_addr, tcphdr->source, tcphdr->dest);
int tcpdatalen=ip->ip_len-ip->ip_hl*4-tcphdr->doff*4;
//printf ("TCPDataLen:%d\n",tcpdatalen);
printStat();
//printStat();
switch (tcpconnstate){
case TCPCONSTATE_CLOSED: {
if (tcphdr->syn==1 && tcphdr->ack!=1){
Expand Down

0 comments on commit ff599b7

Please sign in to comment.