#endif
int blocking_io=0;
-/** Network address family. **/
-int af = AF_INET;
+/** Global options set from command line. **/
+struct global_opts global_opts;
int read_batch=0; /* dw */
int write_batch=0; /* dw */
{"read-batch", 'f', POPT_ARG_STRING, &batch_ext, 'f'},
{"write-batch", 'F', POPT_ARG_NONE, &write_batch, 0},
#ifdef INET6
- {0, '4', POPT_ARG_VAL, &af, AF_INET },
- {0, '6', POPT_ARG_VAL, &af, AF_INET6 },
+ {0, '4', POPT_ARG_VAL, &global_opts.af_hint, AF_INET },
+ {0, '6', POPT_ARG_VAL, &global_opts.af_hint, AF_INET6 },
#endif
{0,0,0,0}
};