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