xref: /illumos-gate/usr/src/cmd/ipf/lib/printifname.c (revision d7574e9aa8a3a5b2d6e2411b5c915becca76ce5a)
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 #include "ipf.h"
13 
14 void printifname(format, name, ifp)
15 char *format, *name;
16 void *ifp;
17 {
18 	printf("%s%s", format, name);
19 	if (opts & OPT_UNDEF) {
20 		if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*")) {
21 			printf("(!)");
22 		}
23 	}
24 }
25