linklayerprotocols/pppnif/te_ppp/te_vjcomp/config/TCSIM/cvtppplog.bat
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 @echo off
       
     2 rem Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 rem All rights reserved.
       
     4 rem This component and the accompanying materials are made available
       
     5 rem under the terms of "Eclipse Public License v1.0"
       
     6 rem which accompanies this distribution, and is available
       
     7 rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 rem
       
     9 rem Initial Contributors:
       
    10 rem Nokia Corporation - initial contribution.
       
    11 rem
       
    12 rem Contributors:
       
    13 rem
       
    14 rem Description:
       
    15 rem Convert pppdump log into libpcap format suitable as input
       
    16 rem to the VJ compressor test suite.
       
    17 rem Only packets heading in one direction are converted--the
       
    18 rem direction is specified by the first command-line parameter.
       
    19 rem September 30, 2003
       
    20 rem danfa
       
    21 rem 
       
    22 rem
       
    23 
       
    24 if "%3"=="" echo Usage: %0 0/1 infile outfile
       
    25 if "%3"=="" goto end
       
    26 tethereal -R "frame.p2p_dir == %1 && (ppp.protocol == 0x21 || ppp.protocol == 0x2d || ppp.protocol == 0x2f)" -r %2 | perl trimdump.pl %2 %3 > tmptrim.bat
       
    27 call tmptrim.bat
       
    28 del tmptrim.bat
       
    29 :end