4 * Copyright (C) 2000-2002 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: buildopts.c,v 1.6.4.1 2006/06/16 17:20:56 darrenr Exp
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
, '=')))
26 for (io
= ionames
; io
->on_name
; io
++) {
27 if (strcasecmp(s
, io
->on_name
) || (msk
& io
->on_bit
))
29 if ((inc
= addipopt(op
, io
, len
, t
))) {
37 fprintf(stderr
, "unknown IP option name %s\n", s
);