4 * Copyright (C) 2012 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
14 u_32_t buildopts(cp, op, len)
18 struct ipopt_names *io;
23 for (s = strtok(cp, ","); s; s = strtok(NULL, ",")) {
24 if ((t = strchr(s, '=')))
28 for (io = ionames; io->on_name; io++) {
29 if (strcasecmp(s, io->on_name) || (msk & io->on_bit))
31 if ((inc = addipopt(op, io, len, t))) {
39 fprintf(stderr, "unknown IP option name %s\n", s);
43 while ((len & 3) != 3) {