fix: add missing ntohs() for llc mode, as noted by several people including
Dong Lin, Zdenek Salvet, and Matthias Drochner(i think).
This commit is contained in:
parent
334d950e16
commit
41a87a7ae0
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue