Wireshark-commits: [Wireshark-commits] master 93d996b: Enhanced text2pcap so that if direction is s

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 24 Mar 2014 15:52:19 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=93d996ba38bf45a2f240799abe994e663af4c2cc
Submitter: Graham Bloice (graham.bloice@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

93d996b by Graham Bloice (graham.bloice@xxxxxxxxxxxxx):

    Enhanced text2pcap so that if direction is specified on the command line, "-D",
    and a direction indicator added to the start of each packet in the text file,
    "I" or "O", then the ip source and destination addresses and udp, tcp and sctp
    ports are swapped for an inbound packet.
    Tcp sequence numbers and ack sequence numbers are updated accordingly.
    
    Change-Id: Iec2c0fd68d80aad8842b7513fdd30bae6806b96a
    Reviewed-on: https://code.wireshark.org/review/801
    Reviewed-by: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
    Tested-by: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    

Actions performed:

    from  d04cddf   no need for if(tree)
    adds  93d996b   Enhanced text2pcap so that if direction is specified on the command line, "-D", and a direction indicator added to the start of each packet in the text file, "I" or "O", then the ip source and destination addresses and udp, tcp and sctp ports are swapped for an inbound packet. Tcp sequence numbers and ack sequence numbers are updated accordingly.


Summary of changes:
 text2pcap.c |   70 +++++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 54 insertions(+), 16 deletions(-)