Changeset 2426


Ignore:
Timestamp:
03/17/10 03:42:49 (5 months ago)
Author:
aturner
Message:

fix copyright
clean up whitespace
refs #416

Location:
branches/3.4/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/src/tcpbridge_opts.def

    r2129 r2426  
    33 
    44copyright = { 
    5     date        = "2005-2008"; 
     5    date        = "2000-2010"; 
    66    owner       = "Aaron Turner"; 
    77    type        = "bsd"; 
    88    author      = <<- EOText 
    9 Copyright 2000-2008 Aaron Turner 
     9Copyright 2000-2010 Aaron Turner 
    1010 
    1111For support please use the tcpreplay-users@lists.sourceforge.net mailing list. 
     
    3030                "#include \"common.h\"\n" 
    3131                "#include \"config.h\"\n" 
    32                                 "#include <stdlib.h>\n" 
    33                                 "#include <string.h>\n" 
    34                                 "#include <sys/types.h>\n" 
    35                                 "#include <unistd.h>\n" 
     32                "#include <stdlib.h>\n" 
     33                "#include <string.h>\n" 
     34                "#include <sys/types.h>\n" 
     35                "#include <unistd.h>\n" 
    3636                "extern tcpbridge_opt_t options;\n"; 
    3737 
     
    128128 
    129129flag = { 
    130         name            = unidir; 
    131         value           = u; 
    132         max             = 1; 
    133         descrip         = "Send and receive in only one direction"; 
    134         doc             = <<- EOText 
     130    name    = unidir; 
     131    value   = u; 
     132    max     = 1; 
     133    descrip = "Send and receive in only one direction"; 
     134    doc     = <<- EOText 
    135135Normally, tcpbridge will send and receive traffic in both directions  
    136136(bi-directionally).  However, if you choose this option, traffic will  
     
    140140 
    141141flag = { 
    142         ifdef           = ENABLE_PCAP_FINDALLDEVS; 
    143         name            = listnics; 
    144         descrip         = "List available network interfaces and exit"; 
    145         immediate; 
    146         doc                     = ""; 
    147         flag-code       = <<- EOFlag 
    148          
    149         interface_list_t *list = get_interface_list(); 
    150         list_interfaces(list); 
    151         free(list); 
    152     exit(0); 
    153          
     142    ifdef      = ENABLE_PCAP_FINDALLDEVS; 
     143    name       = listnics; 
     144    descrip    = "List available network interfaces and exit"; 
     145    immediate; 
     146    doc        = ""; 
     147    flag-code  = <<- EOFlag 
     148 
     149interface_list_t *list = get_interface_list(); 
     150list_interfaces(list); 
     151free(list); 
     152exit(0); 
     153 
    154154EOFlag; 
    155155}; 
     
    161161 
    162162flag = { 
    163         name            = limit; 
    164         value           = L; 
    165         arg-type        = number; 
    166         max                     = 1; 
    167         arg-default     = -1; 
    168         arg-range       = "1->"; 
    169         descrip         = "Limit the number of packets to send"; 
    170         doc             = <<- EOText 
     163    name        = limit; 
     164    value       = L; 
     165    arg-type    = number; 
     166    max         = 1; 
     167    arg-default = -1; 
     168    arg-range   = "1->"; 
     169    descrip     = "Limit the number of packets to send"; 
     170    doc         = <<- EOText 
    171171By default, tcpbridge will send packets forever or until Ctrl-C.  Alternatively, 
    172172you can specify a maximum number of packets to send. 
     
    203203    flags-cant  = exclude; 
    204204    flag-code   = <<- EOInclude 
    205      
     205 
    206206    char *include; 
    207      
     207 
    208208    include = safe_strdup(OPT_ARG(INCLUDE)); 
    209209    options.xX.mode = xX_MODE_INCLUDE; 
    210          
     210 
    211211    if ((options.xX.mode = parse_xX_str(&options.xX, include, &options.bpf)) == xXError) 
    212212        errx(-1, "Unable to parse include/exclude rule: %s", OPT_ARG(INCLUDE)); 
    213213 
    214214    free(include); 
    215      
     215 
    216216EOInclude; 
    217217    doc         = <<- EOText 
     
    220220 
    221221@table @bullet 
    222 @item S:<CIDR1>,...  
     222@item S:<CIDR1>,... 
    223223- Source IP must match specified CIDR(s) 
    224 @item D:<CIDR1>,...  
     224@item D:<CIDR1>,... 
    225225- Destination IP must match specified CIDR(s) 
    226 @item B:<CIDR1>,...  
     226@item B:<CIDR1>,... 
    227227- Both source and destination IP must match specified CIDR(s) 
    228 @item E:<CIDR1>,...  
     228@item E:<CIDR1>,... 
    229229- Either IP must match specified CIDR(s) 
    230 @item P:<LIST>       
     230@item P:<LIST> 
    231231- Must be one of the listed packets where the list 
    232232corresponds to the packet number in the capture file. 
     
    250250    flags-cant  = include; 
    251251    flag-code   = <<- EOExclude 
    252      
     252 
    253253    char *exclude; 
    254      
     254 
    255255    exclude = safe_strdup(OPT_ARG(EXCLUDE)); 
    256256    options.xX.mode = xX_MODE_EXCLUDE; 
    257      
     257 
    258258    if ((options.xX.mode = parse_xX_str(&options.xX, exclude, &options.bpf)) == xXError) 
    259259        errx(-1, "Unable to parse include/exclude rule: %s", OPT_ARG(EXCLUDE)); 
    260      
     260 
    261261    free(exclude); 
    262      
     262 
    263263EOExclude; 
    264264    doc         = <<- EOText 
     
    267267 
    268268@table @bullet 
    269 @item S:<CIDR1>,...  
     269@item S:<CIDR1>,... 
    270270- Source IP must not match specified CIDR(s) 
    271 @item D:<CIDR1>,...  
     271@item D:<CIDR1>,... 
    272272- Destination IP must not match specified CIDR(s) 
    273 @item B:<CIDR1>,...  
     273@item B:<CIDR1>,... 
    274274- Both source and destination IP must not match specified CIDR(s) 
    275 @item E:<CIDR1>,...  
     275@item E:<CIDR1>,... 
    276276- Either IP must not match specified CIDR(s) 
    277 @item P:<LIST>       
     277@item P:<LIST> 
    278278- Must not be one of the listed packets where the list 
    279279corresponds to the packet number in the capture file. 
     
    292292    descrip     = "Print the PID of tcpbridge at startup"; 
    293293    flag-code   = <<- EOPid 
    294      
     294 
    295295    fprintf(stderr, "PID: %hu\n", getpid()); 
    296      
     296 
    297297EOPid; 
    298298    doc         = ""; 
     
    337337    descrip     = "Print version information"; 
    338338    flag-code   = <<- EOVersion 
    339      
     339 
    340340    fprintf(stderr, "tcpbridge version: %s (build %s)", VERSION, svn_version()); 
    341341#ifdef DEBUG 
     
    343343#endif 
    344344    fprintf(stderr, "\n"); 
    345     fprintf(stderr, "Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net>\n"); 
     345    fprintf(stderr, "Copyright 2000-2010 by Aaron Turner <aturner at synfin dot net>\n"); 
    346346#ifdef HAVE_LIBDNET 
    347347    fprintf(stderr, "Compiled against libdnet: %s\n", LIBDNET_VERSION); 
    348348#else 
    349         fprintf(stderr, "Not compiled with libdnet.\n"); 
     349    fprintf(stderr, "Not compiled with libdnet.\n"); 
    350350#endif 
    351351#ifdef HAVE_WINPCAP 
     
    365365#endif 
    366366    fprintf(stderr, "Injection method: %s\n", sendpacket_get_method()); 
    367      
     367 
    368368    exit(0); 
    369      
     369 
    370370EOVersion; 
    371371    doc         = ""; 
     
    378378    descrip     = "Display less usage information and exit"; 
    379379    flag-code   = <<- EOHelp 
    380    
     380 
    381381    USAGE(EXIT_FAILURE); 
    382382 
  • branches/3.4/src/tcpprep_opts.def

    r2318 r2426  
    22 
    33copyright = { 
    4     date        = "2000-2008"; 
     4    date        = "2000-2010"; 
    55    owner       = "Aaron Turner"; 
    66    type        = "bsd"; 
    77    author      = <<- EOText 
    8 Copyright 2000-2008 Aaron Turner 
     8Copyright 2000-2010 Aaron Turner 
    99 
    1010For support please use the tcpreplay-users@lists.sourceforge.net mailing list. 
     
    2929                "#include \"config.h\"\n" 
    3030                "#include \"tcpprep.h\"\n" 
    31                                 "#include <stdlib.h>\n" 
    32                                 "#include <string.h>\n" 
     31                "#include <stdlib.h>\n" 
     32                "#include <string.h>\n" 
    3333                "extern tcpprep_opt_t options;\n"; 
    3434 
     
    8585    flags-cant  = port; 
    8686    flags-cant  = regex; 
    87         flags-cant      = mac; 
     87    flags-cant  = mac; 
    8888    flag-code   = <<- EOAuto 
    89      
     89 
    9090    options.mode = AUTO_MODE; 
    9191    if (strcmp(OPT_ARG(AUTO), "bridge") == 0) { 
     
    157157    flags-cant  = port; 
    158158    flags-cant  = regex; 
    159         flags-cant      = mac; 
     159    flags-cant  = mac; 
    160160    flag-code   = <<- EOCidr 
    161    
     161 
    162162    char *cidr = safe_strdup(OPT_ARG(CIDR)); 
    163163    options.mode = CIDR_MODE; 
     
    192192    flags-cant  = port; 
    193193    flags-cant  = cidr; 
    194         flags-cant      = mac; 
     194    flags-cant  = mac; 
    195195    flag-code   = <<- EORegex 
    196      
     196 
    197197    int regex_error; 
    198198    char ebuf[EBUF_SIZE]; 
    199      
     199 
    200200    options.mode = REGEX_MODE; 
    201201    if ((regex_error = regcomp(&options.preg, OPT_ARG(REGEX),  
     
    204204        errx(-1, "Unable to compile regex: %s", ebuf); 
    205205    } 
    206      
     206 
    207207EORegex; 
    208208    doc         = <<- EOText 
     
    213213 
    214214flag = { 
    215     name        = port; 
    216     value       = p; 
    217     descrip     = "Port-split mode"; 
    218         max                     = 1; 
    219     flags-cant  = auto; 
    220     flags-cant  = regex; 
    221     flags-cant  = cidr; 
    222         flags-cant      = mac; 
    223     flag-code   = <<- EOPort 
    224      
     215    name         = port; 
     216    value        = p; 
     217    descrip      = "Port-split mode"; 
     218    max          = 1; 
     219    flags-cant   = auto; 
     220    flags-cant   = regex; 
     221    flags-cant   = cidr; 
     222    flags-cant   = mac; 
     223    flag-code    = <<- EOPort 
     224 
    225225    options.mode = PORT_MODE; 
    226      
     226 
    227227EOPort; 
    228228    doc         = <<- EOText 
     
    233233 
    234234flag = { 
    235         name            = mac; 
    236         value           = e; 
    237         arg-type        = string; 
    238         max                     = 1; 
    239         descrip         = "Source MAC split mode"; 
    240         flags-cant      = auto; 
    241         flags-cant      = regex; 
    242         flags-cant      = cidr; 
    243         flags-cant      = port; 
    244         flag-code       = <<- EOMac 
    245          
    246         options.mode = MAC_MODE; 
    247         options.maclist = safe_strdup(OPT_ARG(MAC)); 
    248          
     235    name       = mac; 
     236    value      = e; 
     237    arg-type   = string; 
     238    max        = 1; 
     239    descrip    = "Source MAC split mode"; 
     240    flags-cant = auto; 
     241    flags-cant = regex; 
     242    flags-cant = cidr; 
     243    flags-cant = port; 
     244    flag-code  = <<- EOMac 
     245 
     246options.mode = MAC_MODE; 
     247options.maclist = safe_strdup(OPT_ARG(MAC)); 
    249248 
    250249EOMac; 
    251         doc                     = <<- EOText 
     250    doc        = <<- EOText 
    252251Specify a list of MAC addresses to match against the source MAC 
    253252of each packet.  Packets matching one of the values are classified 
    254 as servers.      
    255 EOText; 
    256          
     253as servers. 
     254EOText; 
     255 
    257256}; 
    258257 
     
    281280                errx(-1, "Comment length %zu is longer then max allowed (%d)",  
    282281                strlen(OPT_ARG(COMMENT)), (1 << 16) - 1 - MYARGS_LEN); 
    283      
     282 
    284283    /* save the comment */ 
    285284    options.comment = (char *)safe_malloc(strlen(OPT_ARG(COMMENT)) + 1); 
    286285    strcpy(options.comment, OPT_ARG(COMMENT)); 
    287      
     286 
    288287EOComment; 
    289288    doc         = <<- EOText 
     
    294293 
    295294flag = { 
    296         name            = no-arg-comment; 
    297         max                     = 1; 
    298         descrip         = "Do not embed any cache file comment"; 
    299         flag-code       = <<- EOCode 
     295    name      = no-arg-comment; 
     296    max       = 1; 
     297    descrip   = "Do not embed any cache file comment"; 
     298    flag-code = <<- EOCode 
    300299 
    301300options.nocomment = 1; 
    302301EOCode; 
    303         doc                     = <<- EOText 
     302    doc       = <<- EOText 
    304303By default, tcpprep includes the arguments passed on the command line 
    305304in the cache file comment (in addition to any user specified --comment). 
     
    318317    flags-cant  = exclude; 
    319318    flag-code   = <<- EOInclude 
    320      
     319 
    321320    char *include; 
    322      
     321 
    323322    include = safe_strdup(OPT_ARG(INCLUDE)); 
    324323    options.xX.mode = xX_MODE_INCLUDE; 
    325          
     324 
    326325    if ((options.xX.mode = parse_xX_str(&options.xX, include, &options.bpf)) == xXError) 
    327326        errx(-1, "Unable to parse include/exclude rule: %s", OPT_ARG(INCLUDE)); 
    328327 
    329328    free(include); 
    330      
     329 
    331330EOInclude; 
    332331    doc         = <<- EOText 
     
    335334 
    336335@table @bullet 
    337 @item S:<CIDR1>,...  
     336@item S:<CIDR1>,... 
    338337- Source IP must match specified IPv4/v6 CIDR(s) 
    339 @item D:<CIDR1>,...  
     338@item D:<CIDR1>,... 
    340339- Destination IP must match specified IPv4/v6 CIDR(s) 
    341 @item B:<CIDR1>,...  
     340@item B:<CIDR1>,... 
    342341- Both source and destination IP must match specified IPv4/v6 CIDR(s) 
    343 @item E:<CIDR1>,...  
     342@item E:<CIDR1>,... 
    344343- Either IP must match specified IPv4/v6 CIDR(s) 
    345 @item P:<LIST>       
     344@item P:<LIST> 
    346345- Must be one of the listed packets where the list 
    347346corresponds to the packet number in the capture file. 
     
    365364    flags-cant  = include; 
    366365    flag-code   = <<- EOExclude 
    367      
     366 
    368367    char *exclude; 
    369      
     368 
    370369    exclude = safe_strdup(OPT_ARG(EXCLUDE)); 
    371370    options.xX.mode = xX_MODE_EXCLUDE; 
    372      
     371 
    373372    if ((options.xX.mode = parse_xX_str(&options.xX, exclude, &options.bpf)) == xXError) 
    374373        errx(-1, "Unable to parse include/exclude rule: %s", OPT_ARG(EXCLUDE)); 
    375      
     374 
    376375    free(exclude); 
    377      
     376 
    378377EOExclude; 
    379378    doc         = <<- EOText 
     
    382381 
    383382@table @bullet 
    384 @item S:<CIDR1>,...  
     383@item S:<CIDR1>,... 
    385384- Source IP must not match specified IPv4/v6 CIDR(s) 
    386 @item D:<CIDR1>,...  
     385@item D:<CIDR1>,... 
    387386- Destination IP must not match specified IPv4/v6 CIDR(s) 
    388 @item B:<CIDR1>,...  
     387@item B:<CIDR1>,... 
    389388- Both source and destination IP must not match specified IPv4/v6 CIDR(s) 
    390 @item E:<CIDR1>,...  
     389@item E:<CIDR1>,... 
    391390- Either IP must not match specified IPv4/v6 CIDR(s) 
    392 @item P:<LIST>       
     391@item P:<LIST> 
    393392- Must not be one of the listed packets where the list 
    394393corresponds to the packet number in the capture file. 
     
    423422    name        = print-comment; 
    424423    value       = P; 
    425     arg-type    = string; 
     424    arg-type    = string; 
    426425    descrip     = "Print embedded comment in the specified cache file"; 
    427426    max         = 1; 
     
    432431    name        = print-info; 
    433432    value       = I; 
    434     arg-type    = string; 
     433    arg-type    = string; 
    435434    descrip     = "Print basic info from the specified cache file"; 
    436435    max         = 1; 
     
    439438 
    440439flag = { 
    441         name            = print-stats; 
    442         value           = S; 
    443         arg-type        = string; 
    444         descrip         = "Print statistical information about the specified cache file"; 
    445     max         = 1; 
    446         doc                     = ""; 
     440    name     = print-stats; 
     441    value    = S; 
     442    arg-type = string; 
     443    descrip  = "Print statistical information about the specified cache file"; 
     444    max      = 1; 
     445    doc      = ""; 
    447446}; 
    448447 
     
    463462    flag-code   = <<- EOServices 
    464463    parse_services(OPT_ARG(SERVICES), &options.services); 
    465      
     464 
    466465EOServices; 
    467466}; 
     
    473472    max         = 1; 
    474473    flag-code   = <<- EONonip 
    475   
     474 
    476475    options.nonip = DIR_SERVER; 
    477      
     476 
    478477EONonip; 
    479478    doc         = <<- EOText 
     
    574573    descrip     = "Print version information"; 
    575574    flag-code   = <<- EOVersion 
    576      
     575 
    577576    fprintf(stderr, "tcpprep version: %s (build %s)", VERSION, svn_version()); 
    578577#ifdef DEBUG 
     
    580579#endif 
    581580    fprintf(stderr, "\n"); 
    582     fprintf(stderr, "Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net>\n"); 
     581    fprintf(stderr, "Copyright 2000-2010 by Aaron Turner <aturner at synfin dot net>\n"); 
    583582    fprintf(stderr, "Cache file supported: %s\n", CACHEVERSION); 
    584583#ifdef HAVE_LIBDNET 
    585584    fprintf(stderr, "Compiled against libdnet: %s\n", LIBDNET_VERSION); 
    586585#else 
    587         fprintf(stderr, "Not compiled with libdnet.\n"); 
     586    fprintf(stderr, "Not compiled with libdnet.\n"); 
    588587#endif 
    589588#ifdef HAVE_WINPCAP 
    590         fprintf(stderr, "Compiled against winpcap: %s\n", get_pcap_version()); 
     589    fprintf(stderr, "Compiled against winpcap: %s\n", get_pcap_version()); 
    591590#else 
    592591    fprintf(stderr, "Compiled against libpcap: %s\n", get_pcap_version()); 
     
    603602#endif 
    604603    exit(0); 
    605      
     604 
    606605EOVersion; 
    607606    doc         = ""; 
     
    614613    descrip     = "Display less usage information and exit"; 
    615614    flag-code   = <<- EOHelp 
    616    
     615 
    617616    USAGE(EXIT_FAILURE); 
    618617 
  • branches/3.4/src/tcpreplay_opts.def

    r2407 r2426  
    33 
    44copyright = { 
    5     date        = "2000-2008"; 
     5    date        = "2000-2010"; 
    66    owner       = "Aaron Turner"; 
    77    type        = "bsd"; 
    88    author      = <<- EOText 
    9 Copyright 2000-2008 Aaron Turner 
     9Copyright 2000-2010 Aaron Turner 
    1010 
    1111For support please use the tcpreplay-users@lists.sourceforge.net mailing list. 
     
    131131@item ioport 
    132132- Write to the i386 IO Port 0x80 
    133 @item rdtsc   
     133@item rdtsc 
    134134- Use the x86/x86_64/PPC RDTSC 
    135135@item gtod [default] 
     
    196196}; 
    197197 
    198 /* Cache files to internal memory */  
     198/* Cache files to internal memory */ 
    199199flag = { 
    200200    name        = enable_file_cache; 
     
    433433#endif 
    434434    fprintf(stderr, "\n"); 
    435     fprintf(stderr, "Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net>\n"); 
     435    fprintf(stderr, "Copyright 2000-2010 by Aaron Turner <aturner at synfin dot net>\n"); 
    436436    fprintf(stderr, "Cache file supported: %s\n", CACHEVERSION); 
    437437#ifdef HAVE_LIBDNET 
  • branches/3.4/src/tcprewrite_opts.def

    r2314 r2426  
    22 
    33copyright = { 
    4     date        = "2004-2008"; 
     4    date        = "2000-2010"; 
    55    owner       = "Aaron Turner"; 
    66    type        = "bsd"; 
    77    author      = <<- EOText 
    8 Copyright 2004-2008 Aaron Turner 
     8Copyright 2000-2010 Aaron Turner 
    99 
    1010For support please use the tcpreplay-users@lists.sourceforge.net mailing list. 
     
    2727#include tcpedit/tcpedit_opts.def 
    2828 
    29 detail          = <<- EOText 
    30 Tcprewrite is a tool to rewrite packets stored in @file{pcap(3)} file format,  
    31 such as crated by tools such as @file{tcpdump(1)} and @file{ethereal(1)}.   
    32 Once a pcap file has had it's packets rewritten, they can be replayed back  
     29detail = <<- EOText 
     30Tcprewrite is a tool to rewrite packets stored in @file{pcap(3)} file format, 
     31such as crated by tools such as @file{tcpdump(1)} and @file{ethereal(1)}. 
     32Once a pcap file has had it's packets rewritten, they can be replayed back 
    3333out on the network using @file{tcpreplay(1)}. 
    3434 
     
    7171                "#include \"config.h\"\n" 
    7272                "#include \"tcprewrite.h\"\n" 
    73                                 "#include <stdlib.h>\n" 
    74                                 "#include <string.h>\n" 
     73                "#include <stdlib.h>\n" 
     74                "#include <string.h>\n" 
    7575                "extern tcprewrite_opt_t options;\n"; 
    7676 
     
    106106 
    107107flag = { 
    108     name        = outfile; 
    109     value       = o; 
    110     arg-type    = string; 
    111     descrip     = "Output pcap file"; 
    112     max         = 1; 
     108    name      = outfile; 
     109    value     = o; 
     110    arg-type  = string; 
     111    descrip   = "Output pcap file"; 
     112    max       = 1; 
    113113    must-set; 
    114     doc             = ""; 
     114    doc       = ""; 
    115115    /* options.outfile is set in post_args, because we need to make 
    116116     * sure that options.infile is processed first 
     
    126126    settable; 
    127127    flag-code   = <<- EOCachefile 
    128      
    129     options.cache_packets =  
     128 
     129    options.cache_packets = 
    130130        read_cache(&options.cachedata, OPT_ARG(CACHEFILE), &options.comment); 
    131131 
    132 EOCachefile;     
     132EOCachefile; 
    133133    doc         = <<- EOText 
    134134Use tcpprep cache file to split traffic based upon client/server relationships. 
     
    163163the way packets are decoded.  By default, -n and -l are used. 
    164164Be sure to quote the arguments so that they are not interpreted 
    165 by tcprewrite.   Please see the tcpdump(1) man page for a complete list of  
     165by tcprewrite.   Please see the tcpdump(1) man page for a complete list of 
    166166options. 
    167167EOText; 
     
    179179Enable advanced evasion techniques using the built-in fragroute(8) 
    180180engine.  See the fragroute(8) man page for more details.  Important: 
    181 tcprewrite does not support the delay, echo or print commands.     
     181tcprewrite does not support the delay, echo or print commands. 
    182182EOText; 
    183183}; 
     
    192192    descrip     = "Which flows to apply fragroute to: c2s, s2c, both"; 
    193193    doc         = <<- EOText 
    194 Apply the fragroute engine to packets going c2s, s2c or both when using a cache file. 
    195 EOText; 
    196 }; 
    197  
    198 flag = { 
    199         name            = skip-soft-errors; 
    200         max             = 1; 
    201         descrip         = "Skip writing packets with soft errors"; 
    202         doc                     = <<- EOText 
     194Apply the fragroute engine to packets going c2s, s2c or both when 
     195using a cache file. 
     196EOText; 
     197}; 
     198 
     199flag = { 
     200    name    = skip-soft-errors; 
     201    max     = 1; 
     202    descrip = "Skip writing packets with soft errors"; 
     203    doc     = <<- EOText 
    203204In some cases, packets can't be decoded or the requested editing 
    204205is not possible.  Normally these packets are written to the output 
     
    216217    descrip     = "Print version information"; 
    217218    flag-code   = <<- EOVersion 
    218      
     219 
    219220    fprintf(stderr, "tcprewrite version: %s (build %s)", VERSION, svn_version()); 
    220221#ifdef DEBUG 
     
    222223#endif 
    223224    fprintf(stderr, "\n"); 
    224     fprintf(stderr, "Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net>\n"); 
     225    fprintf(stderr, "Copyright 2000-2010 by Aaron Turner <aturner at synfin dot net>\n"); 
    225226    fprintf(stderr, "Cache file supported: %s\n", CACHEVERSION); 
    226227#ifdef HAVE_LIBDNET 
    227228    fprintf(stderr, "Compiled against libdnet: %s\n", LIBDNET_VERSION); 
    228229#else 
    229         fprintf(stderr, "Not compiled with libdnet.\n"); 
     230    fprintf(stderr, "Not compiled with libdnet.\n"); 
    230231#endif 
    231232#ifdef HAVE_WINPCAP 
    232         fprintf(stderr, "Compiled against winpcap: %s\n", get_pcap_version()); 
     233    fprintf(stderr, "Compiled against winpcap: %s\n", get_pcap_version()); 
    233234#else 
    234235    fprintf(stderr, "Compiled against libpcap: %s\n", get_pcap_version()); 
     
    250251#endif 
    251252    exit(0); 
    252      
     253 
    253254EOVersion; 
    254255    doc         = ""; 
     
    261262    descrip     = "Display less usage information and exit"; 
    262263    flag-code   = <<- EOHelp 
    263    
     264 
    264265    USAGE(EXIT_FAILURE); 
    265266 
Note: See TracChangeset for help on using the changeset viewer.