Source-Changes-HG archive

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

[src/trunk]: src/sys/net Don't assume PHDS encoding for DIAGNOSE packets... w...



details:   https://anonhg.NetBSD.org/src/rev/4c9d08e98917
branches:  trunk
changeset: 475853:4c9d08e98917
user:      is <is%NetBSD.org@localhost>
date:      Fri Aug 27 19:38:29 1999 +0000

description:
Don't assume PHDS encoding for DIAGNOSE packets... we have to pass them
raw, if used at all.

diffstat:

 sys/net/if_arcsubr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 74d52a717016 -r 4c9d08e98917 sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c      Fri Aug 27 19:23:19 1999 +0000
+++ b/sys/net/if_arcsubr.c      Fri Aug 27 19:38:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arcsubr.c,v 1.24 1999/08/27 19:23:19 is Exp $       */
+/*     $NetBSD: if_arcsubr.c,v 1.25 1999/08/27 19:38:29 is Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Ignatios Souvatzis
@@ -514,7 +514,8 @@
        u_int8_t type;
 {
        return ((type != ARCTYPE_IP_OLD && 
-                type != ARCTYPE_ARP_OLD));
+                type != ARCTYPE_ARP_OLD) &&
+                (type != ARCTYPE_DIAGNOSE));
 }
 
 /*



Home | Main Index | Thread Index | Old Index