Move /var/svc/log to /var/log/svc
[unleashed/lotheac.git] / usr / src / cmd / ipf / lib / common / optprintv6.c
blobfc8bef70ae4d32fecde0803c266e31aab29fa322
1 /*
2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: optprintv6.c,v 1.2 2003/04/30 00:39:39 darrenr Exp $
7 */
10 #include "ipf.h"
13 #ifdef USE_INET6
15 void optprintv6(sec, optmsk, optbits)
16 u_short *sec;
17 u_long optmsk, optbits;
19 u_short secmsk = sec[0], secbits = sec[1];
20 struct ipopt_names *io;
21 char *s;
23 s = " v6hdrs ";
24 for (io = v6ionames; io->on_name; io++)
25 if ((io->on_bit & optmsk) &&
26 ((io->on_bit & optmsk) == (io->on_bit & optbits))) {
27 printf("%s%s", s, io->on_name);
28 s = ",";
31 if ((optmsk && (optmsk != optbits)) ||
32 (secmsk && (secmsk != secbits))) {
33 s = " ";
34 printf(" not v6hdrs");
35 if (optmsk != optbits) {
36 for (io = v6ionames; io->on_name; io++)
37 if ((io->on_bit & optmsk) &&
38 ((io->on_bit & optmsk) !=
39 (io->on_bit & optbits))) {
40 printf("%s%s", s, io->on_name);
41 s = ",";
47 #endif