PERFORCE change 113742 for review

Robert Watson rwatson at FreeBSD.org
Wed Jan 31 01:13:53 UTC 2007


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

Change 113742 by rwatson at rwatson_cinnamon on 2007/01/31 01:13:02

	Correct panic messages; in some cases panic instead of returning
	ENOTTY as that point shouldn't be reached.

Affected files ...

.. //depot/projects/zcopybpf/src/sys/net/bpf.c#4 edit

Differences ...

==== //depot/projects/zcopybpf/src/sys/net/bpf.c#4 (text+ko) ====

@@ -252,7 +252,7 @@
 #ifdef BPF_ZEROCOPY
 	return (bpf_zerocopy_ioctl_ackzbuf(td, d, bz));
 #else
-	panic("bpf_ioctl_getznext");
+	panic("bpf_ioctl_ackzbuf");
 #endif
 }
 
@@ -265,7 +265,7 @@
 #ifdef BPF_ZEROCOPY
 	return (bpf_zerocopy_ioctl_getzbuf(td, d, bz));
 #else
-	panic("bpf_ioctl_getznext");
+	panic("bpf_ioctl_getzbuf");
 #endif
 }
 
@@ -291,7 +291,7 @@
 #ifdef BPF_ZEROCOPY
 	return (bpf_zerocopy_ioctl_getzmax(td, d, i));
 #else
-	return (ENOTTY);
+	panic("bpf_ioctl_getzmax");
 #endif
 }
 
@@ -304,7 +304,7 @@
 #ifdef BPF_ZEROCOPY
 	return (bpf_zerocopy_ioctl_setzbuf(td, d, bz));
 #else
-	return (ENOTTY);
+	panic("bpf_ioctl_setzbuf");
 #endif
 }
 


More information about the p4-projects mailing list