2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: buildopts.c,v 1.6 2002/01/28 06:50:45 darrenr Exp $
12 u_32_t
buildopts(cp
, op
, len
)
16 struct ipopt_names
*io
;
21 for (s
= strtok(cp
, ","); s
; s
= strtok(NULL
, ",")) {
22 if ((t
= strchr(s
, '=')))
24 for (io
= ionames
; io
->on_name
; io
++) {
25 if (strcasecmp(s
, io
->on_name
) || (msk
& io
->on_bit
))
27 if ((inc
= addipopt(op
, io
, len
, t
))) {
35 fprintf(stderr
, "unknown IP option name %s\n", s
);