Module Name:    src
Committed By:   mlelstv
Date:           Sat Sep 28 09:03:14 UTC 2024

Modified Files:
        src/sys/net: if_ethersubr.c

Log Message:
count illegal slow protocol subtype as protocol error instead of generic
error.


To generate a diff of this commit:
cvs rdiff -u -r1.328 -r1.329 src/sys/net/if_ethersubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_ethersubr.c
diff -u src/sys/net/if_ethersubr.c:1.328 src/sys/net/if_ethersubr.c:1.329
--- src/sys/net/if_ethersubr.c:1.328	Sat Sep 28 09:01:37 2024
+++ src/sys/net/if_ethersubr.c	Sat Sep 28 09:03:13 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ethersubr.c,v 1.328 2024/09/28 09:01:37 mlelstv Exp $	*/
+/*	$NetBSD: if_ethersubr.c,v 1.329 2024/09/28 09:03:13 mlelstv Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.328 2024/09/28 09:01:37 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.329 2024/09/28 09:03:13 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -856,7 +856,7 @@ ether_input(struct ifnet *ifp, struct mb
 		default:
 			if (subtype == 0 || subtype > 10) {
 				/* illegal value */
-				goto error;
+				goto noproto;
 			}
 			/* unknown subtype */
 			break;

Reply via email to