xref: /titanic_44/usr/src/cmd/ipf/lib/common/printifname.c (revision 3f7d54a6b84904c8f4d8daa4c7b577bede7df8b9)
1 /*
2  * Copyright (C) 1993-2001 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  * $Id: printifname.c,v 1.2 2002/01/28 06:50:47 darrenr Exp $
7  *
8  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
9  * Use is subject to license terms.
10  */
11 
12 #pragma ident	"%Z%%M%	%I%	%E% SMI"
13 
14 #include "ipf.h"
15 
16 void printifname(format, name, ifp)
17 char *format, *name;
18 void *ifp;
19 {
20 	printf("%s%s", format, name);
21 	if (opts & OPT_UNDEF) {
22 		if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*")) {
23 			printf("(!)");
24 		}
25 	}
26 }
27