+
+ daemonize = 1;
+ ttl = 3600;
+ while((c = getopt(argc, argv, "nht:")) != -1) {
+ switch(c) {
+ case 't':
+ ttl = atoi(optarg);
+ break;
+ case 'n':
+ daemonize = 0;
+ break;
+ case 'h':
+ case '?':
+ case ':':
+ default:
+ fprintf(stderr, "usage: icmpdnd [-n]");
+ exit((c == 'h')?0:1);
+ }
+ }
+