4 * Copyright (C) 2012 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
14 int addipopt(op, io, len, class)
16 struct ipopt_names *io;
26 if ((len + io->on_siz) > 48) {
27 fprintf(stderr, "options too long\n");
41 lvl = seclevel(class);
46 s[IPOPT_OLEN] = IPOPT_MINOFF - 1 + 4;
50 ipadr.s_addr = inet_addr(class);
51 s[IPOPT_OLEN] = IPOPT_MINOFF - 1 + 4;
52 bcopy((char *)&ipadr, op, sizeof(ipadr));
56 bcopy((char *)&val, op, 2);
62 fprintf(stderr, "bo: %s %d %#x: %d\n",
63 io->on_name, io->on_value, io->on_bit, len);