From 41a87a7ae080c74582fe7c84c344c6132965cc80 Mon Sep 17 00:00:00 2001 From: chuck Date: Fri, 18 Oct 1996 19:26:54 +0000 Subject: [PATCH] fix: add missing ntohs() for llc mode, as noted by several people including Dong Lin, Zdenek Salvet, and Matthias Drochner(i think). --- sys/net/if_atmsubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c index f074f473e3a6..364e362f0ef5 100644 --- a/sys/net/if_atmsubr.c +++ b/sys/net/if_atmsubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_atmsubr.c,v 1.7 1996/10/13 02:10:59 christos Exp $ */ +/* $NetBSD: if_atmsubr.c,v 1.8 1996/10/18 19:26:54 chuck Exp $ */ /* * @@ -258,7 +258,7 @@ atm_input(ifp, ah, m, rxhand) m_freem(m); return; } - etype = ATM_LLC_TYPE(alc); + etype = ntohs(ATM_LLC_TYPE(alc)); m_adj(m, sizeof(*alc)); }