Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net Do not count some unhandled protocols as error...



details:   https://anonhg.NetBSD.org/src-all/rev/1f7b60dc1d49
branches:  trunk
changeset: 363768:1f7b60dc1d49
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Mon Dec 14 15:31:03 2020 +0100

description:
Do not count some unhandled protocols as error packets.

Temporary hack, proper solution is being discussed on tech-kern.
This commit should not be merged to mainline.

diffstat:

 sys/net/if_ethersubr.c |  12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r baeb83a7f7dd -r 1f7b60dc1d49 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Mon Dec 14 15:25:56 2020 +0100
+++ b/sys/net/if_ethersubr.c    Mon Dec 14 15:31:03 2020 +0100
@@ -956,6 +956,18 @@
                break;
 #endif
 
+       /*
+        * XXX - remove before merge!
+        *
+        * Do not count errors for 802.1x authentication frames
+        * or random "smart home" stuff
+        */
+       case ETHERTYPE_PAE:
+       case 0x8912:            /* mediaxtream */
+       case 0x88e1:            /* HomePlug Management (powerline) */
+               m_freem(m);
+               return;
+
        default:
                goto noproto;
        }



Home | Main Index | Thread Index | Old Index