Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic rename hl_control to hl_ffb (friendly fudge byte)...



details:   https://anonhg.NetBSD.org/src/rev/75624a7e0e94
branches:  trunk
changeset: 480326:75624a7e0e94
user:      chopps <chopps%NetBSD.org@localhost>
date:      Sun Jan 09 14:47:43 2000 +0000

description:
rename hl_control to hl_ffb (friendly fudge byte) as per cisco insider
the belief is that this was used to align OSI clnp header fields better

diffstat:

 sys/dev/ic/hd64570.c    |  11 ++---------
 sys/dev/ic/hd64570reg.h |   4 ++--
 2 files changed, 4 insertions(+), 11 deletions(-)

diffs (50 lines):

diff -r 38ecbe867e66 -r 75624a7e0e94 sys/dev/ic/hd64570.c
--- a/sys/dev/ic/hd64570.c      Sun Jan 09 14:34:33 2000 +0000
+++ b/sys/dev/ic/hd64570.c      Sun Jan 09 14:47:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hd64570.c,v 1.9 2000/01/08 20:46:29 chopps Exp $       */
+/*     $NetBSD: hd64570.c,v 1.10 2000/01/09 14:47:43 chopps Exp $      */
 
 /*
  * Copyright (c) 1999 Christian E. Hopps
@@ -842,7 +842,7 @@
                hdlc = mtod(m, struct hdlc_header *);
                llc = mtod(m, struct hdlc_llc_header *);
                llc->hl_dsap = llc->hl_ssap = LLC_ISO_LSAP;
-               llc->hl_control = 0;    /* XXX */
+               llc->hl_ffb = 0;
                break;
 #endif
        default:
@@ -1584,13 +1584,6 @@
                        goto dropit;
                /* if not a std iso pdu drop it */
                llc = (struct hdlc_llc_header *)hdlc;
-#if 0
-               /* XXX cisco puts either 0 or the iso irpd here */
-               if (llc->hl_control != LLC_UI) {
-                       scp->sp_if.if_noproto++;
-                       goto dropit;
-               }
-#endif
                m->m_pkthdr.rcvif = &scp->sp_if;
                m->m_pkthdr.len -= sizeof(struct hdlc_llc_header);
                m->m_data += sizeof(struct hdlc_llc_header);
diff -r 38ecbe867e66 -r 75624a7e0e94 sys/dev/ic/hd64570reg.h
--- a/sys/dev/ic/hd64570reg.h   Sun Jan 09 14:34:33 2000 +0000
+++ b/sys/dev/ic/hd64570reg.h   Sun Jan 09 14:47:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hd64570reg.h,v 1.4 2000/01/08 20:46:30 chopps Exp $    */
+/*     $NetBSD: hd64570reg.h,v 1.5 2000/01/09 14:47:43 chopps Exp $    */
 
 /*
  * Copyright (c) 1998 Vixie Enterprises
@@ -74,7 +74,7 @@
        u_int8_t        hl_resv;
        u_int8_t        hl_dsap;
        u_int8_t        hl_ssap;
-       u_int8_t        hl_control;
+       u_int8_t        hl_ffb;         /* cisco: friendly fudge byte */
 };
 
 /*



Home | Main Index | Thread Index | Old Index