#ifndef TRUE
#define TRUE  (0==0)
#endif
#ifndef FALSE
#define FALSE (1==0)
#endif

typedef struct 
{
  char *process_name;
  char *port_str;
  char *out_str;
  char *iface_str;
  char *addr_str;
  char *hex_str;
  int   hex_limit;
  int   port;
  char *rcvbuf_str;
  int   rcvbuf_size;
  char *length_str;
  int   length;
  char *delay_usec_str;
  int   delay_usec;
  int   delta_print;
  int   bytes_print;
  int   hdr_print;
  int   brief_print;
} CMD_ARGS;

#define DEF_PORT_STR       (char *)NULL
#define DEF_OUT_STR        (char *)NULL
#define DEF_IFACE_STR      (char *)NULL
#define DEF_ADDR_STR       (char *)NULL
#define DEF_PORT           10000
#define DEF_RCVBUF_STR     (char *)NULL
#define DEF_RCVBUF_SIZE    52428
#define DEF_LENGTH_STR     (char *)NULL
#define DEF_LENGTH         1472
#define DEF_DELAY_USEC_STR (char *)NULL
#define DEF_DELAY_USEC     0
#define DEF_HEX_STR        (char *)NULL
#define DEF_HEX_LIMIT      0
#define DEF_DELTA_PRINT    FALSE
#define DEF_BYTES_PRINT    FALSE
#define DEF_HDR_PRINT      FALSE
#define DEF_BRIEF_PRINT    FALSE
