PERFORCE change 128916 for review

Robert Watson rwatson at FreeBSD.org
Sat Nov 10 12:22:20 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=128916

Change 128916 by rwatson at rwatson_cinnamon on 2007/11/10 20:21:41

	Update usage line.

Affected files ...

.. //depot/projects/zcopybpf/utils/bpfnull/bpfnull.c#22 edit

Differences ...

==== //depot/projects/zcopybpf/utils/bpfnull/bpfnull.c#22 (text+ko) ====

@@ -296,7 +296,8 @@
 usage()
 {
 
-	(void) fprintf(stderr, "usage: bpfnull [-h] -i if\n");
+	(void) fprintf(stderr, "usage: bpfnull [-ipPTwvz] [-b bufsize] "
+	    "[-c limit] [-f file] -i interface\n");
 	exit(0);
 }
 
@@ -404,10 +405,8 @@
 			usage();
 		}
 	}
-	if (iflag == NULL) {
-		(void) fprintf(stderr, "bpfnull: -i is required\n");
-		exit(1);
-	}
+	if (iflag == NULL)
+		usage();
 	bzero(&ifr, sizeof(ifr));
 	strlcpy(ifr.ifr_name, iflag, sizeof(ifr.ifr_name));
 	bpffd = bpf_open();


More information about the p4-projects mailing list