diff options
Diffstat (limited to 'epan/dissectors/packet-exec.c')
-rw-r--r-- | epan/dissectors/packet-exec.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/epan/dissectors/packet-exec.c b/epan/dissectors/packet-exec.c index 843edec099..da8b7dafa5 100644 --- a/epan/dissectors/packet-exec.c +++ b/epan/dissectors/packet-exec.c @@ -118,7 +118,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ if(!hash_info){ hash_info = wmem_new(wmem_file_scope(), exec_hash_entry_t); - hash_info->first_packet_number = pinfo->fd->num; + hash_info->first_packet_number = pinfo->num; hash_info->second_packet_number = 0; hash_info->third_packet_number = 0; hash_info->fourth_packet_number = 0; @@ -144,25 +144,25 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ * as we reach them the first time */ if(!hash_info->second_packet_number - && pinfo->fd->num > hash_info->first_packet_number){ + && pinfo->num > hash_info->first_packet_number){ /* We're on the second packet of the conversation */ - hash_info->second_packet_number = pinfo->fd->num; + hash_info->second_packet_number = pinfo->num; } else if(hash_info->second_packet_number && !hash_info->third_packet_number - && pinfo->fd->num > hash_info->second_packet_number) { + && pinfo->num > hash_info->second_packet_number) { /* We're on the third packet of the conversation */ - hash_info->third_packet_number = pinfo->fd->num; + hash_info->third_packet_number = pinfo->num; } else if(hash_info->third_packet_number && !hash_info->fourth_packet_number - && pinfo->fd->num > hash_info->third_packet_number) { + && pinfo->num > hash_info->third_packet_number) { /* We're on the fourth packet of the conversation */ - hash_info->fourth_packet_number = pinfo->fd->num; + hash_info->fourth_packet_number = pinfo->num; } /* Save this packet's state so we can retrieve it if this packet * is selected again later. If the packet's state was already stored, * then retrieve it */ - if(pinfo->fd->num == hash_info->first_packet_number){ + if(pinfo->num == hash_info->first_packet_number){ if(hash_info->first_packet_state == NONE){ hash_info->first_packet_state = hash_info->state; } else { @@ -170,7 +170,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ } } - if(pinfo->fd->num == hash_info->second_packet_number){ + if(pinfo->num == hash_info->second_packet_number){ if(hash_info->second_packet_state == NONE){ hash_info->second_packet_state = hash_info->state; } else { @@ -178,7 +178,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ } } - if(pinfo->fd->num == hash_info->third_packet_number){ + if(pinfo->num == hash_info->third_packet_number){ if(hash_info->third_packet_state == NONE){ hash_info->third_packet_state = hash_info->state; } else { @@ -186,7 +186,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ } } - if(pinfo->fd->num == hash_info->fourth_packet_number){ + if(pinfo->num == hash_info->fourth_packet_number){ if(hash_info->fourth_packet_state == NONE){ hash_info->fourth_packet_state = hash_info->state; } else { |