2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: optvalue.c,v 1.2 2002/01/28 06:50:47 darrenr Exp $
11 u_32_t
getoptbyname(optname
)
14 struct ipopt_names
*io
;
16 for (io
= ionames
; io
->on_name
; io
++)
17 if (!strcasecmp(optname
, io
->on_name
))
23 u_32_t
getoptbyvalue(optval
)
26 struct ipopt_names
*io
;
28 for (io
= ionames
; io
->on_name
; io
++)
29 if (io
->on_value
== optval
)