///// Parse command line arguments
i = 1;
#define ENSUREARGS(n) if ( argc < i + n ) usage()
- ENSUREARGS( 1 );
- if ( strncmp( "-tpg", argv[i], 4 ) == 0 ) {
- tpg_quirk = 1;
- i++;
- }
ENSUREARGS( 1 );
// First: optional -v, -vv or -vvv
if ( strncmp( "-v", argv[i], 2 ) == 0 ) {
i++;
ENSUREARGS( 1 );
}
+ if ( strncmp( "-tpg", argv[i], 4 ) == 0 ) {
+ tpg_quirk = 1;
+ i++;
+ ENSUREARGS( 1 );
+ }
// then: optional -4
if ( strncmp( "-4", argv[i], 2 ) == 0 ) {
udp6 = 0;