Lines Matching full:opts
27 " --%s-opts TYPE[:LEN][,TYPE[:LEN]...] \n"
33 static struct option opts[] = {
35 { "hbh-opts", 1, 0, '2' },
40 static struct option opts[] = {
42 { "dst-opts", 1, 0, '2' },
73 parse_options(const char *optsstr, u_int16_t *opts)
92 opts[i] = (u_int16_t)((parse_opts_num(cp,"opt") & 0x000000FF)<<8);
94 if (opts[i] == 0)
96 opts[i] |= (u_int16_t)(parse_opts_num(range,"length") &
99 opts[i] |= (0x00FF);
103 printf("opts str: %s %s\n", cp, range);
104 printf("opts opt: %04X\n", opts[i]);
155 "Only one `--%s-opts' allowed", LNAME);
159 " '!' not allowed with `--%s-opts'", LNAME);
160 optinfo->optsnr = parse_options(argv[optind-1], optinfo->opts);
170 "`--%s-opts ...' required before `--%s-not-strict'", LNAME, LNAME);
215 if (optinfo->flags & IP6T_OPTS_OPTS) printf("opts ");
216 print_options(optinfo->optsnr, (u_int16_t *)optinfo->opts);
234 if (optinfo->flags & IP6T_OPTS_OPTS) printf("--%s-opts ", LNAME);
235 print_options(optinfo->optsnr, (u_int16_t *)optinfo->opts);
255 .extra_opts = opts,