Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic remove unused llc from receive logic, protect use...
details: https://anonhg.NetBSD.org/src/rev/b665a4357036
branches: trunk
changeset: 480344:b665a4357036
user: chopps <chopps%NetBSD.org@localhost>
date: Sun Jan 09 17:32:58 2000 +0000
description:
remove unused llc from receive logic, protect use of llc header in tranmist
logic, fixes pr#9151
diffstat:
sys/dev/ic/hd64570.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5068fc97223a -r b665a4357036 sys/dev/ic/hd64570.c
--- a/sys/dev/ic/hd64570.c Sun Jan 09 17:31:56 2000 +0000
+++ b/sys/dev/ic/hd64570.c Sun Jan 09 17:32:58 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hd64570.c,v 1.10 2000/01/09 14:47:43 chopps Exp $ */
+/* $NetBSD: hd64570.c,v 1.11 2000/01/09 17:32:58 chopps Exp $ */
/*
* Copyright (c) 1999 Christian E. Hopps
@@ -793,7 +793,9 @@
struct sockaddr *dst;
struct rtentry *rt0;
{
+#ifdef ISO
struct hdlc_llc_header *llc;
+#endif
struct hdlc_header *hdlc;
struct ifqueue *ifq;
int s, error;
@@ -1513,7 +1515,6 @@
{
struct ifqueue *ifq;
struct hdlc_header *hdlc;
- struct hdlc_llc_header *llc;
struct cisco_pkt *cisco;
sca_desc_t *desc;
struct mbuf *m;
@@ -1582,8 +1583,6 @@
case HDLC_PROTOCOL_ISO:
if (m->m_pkthdr.len < sizeof(struct hdlc_llc_header))
goto dropit;
- /* if not a std iso pdu drop it */
- llc = (struct hdlc_llc_header *)hdlc;
m->m_pkthdr.rcvif = &scp->sp_if;
m->m_pkthdr.len -= sizeof(struct hdlc_llc_header);
m->m_data += sizeof(struct hdlc_llc_header);
Home |
Main Index |
Thread Index |
Old Index