Sync usage with man page.
[netbsd-mini2440.git] / dist / ipf / lib / v6optvalue.c
blob9cb62d158b6d3084da4f929a69b68d9f13157b3b
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2003 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: v6optvalue.c,v 1.1.4.1 2006/06/16 17:21:18 darrenr Exp
9 */
10 #include "ipf.h"
14 u_32_t getv6optbyname(optname)
15 char *optname;
17 #ifdef USE_INET6
18 struct ipopt_names *io;
20 for (io = v6ionames; io->on_name; io++)
21 if (!strcasecmp(optname, io->on_name))
22 return io->on_bit;
23 #endif
24 return -1;
28 u_32_t getv6optbyvalue(optval)
29 int optval;
31 #ifdef USE_INET6
32 struct ipopt_names *io;
34 for (io = v6ionames; io->on_name; io++)
35 if (io->on_value == optval)
36 return io->on_bit;
37 #endif
38 return -1;