diff options
author | chuck <chuck@cvs.openbsd.org> | 1996-10-18 19:28:18 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1996-10-18 19:28:18 +0000 |
commit | cbf89540ef547c589ec47907e09e0aa2901e5372 (patch) | |
tree | 5ff9e4ca3dae83bcd4717e7f0777672fd1efab37 /sys | |
parent | 0b938f26ec601b6370d41ca43033674c360a2f36 (diff) |
fix: add missing ntohs() for llc mode, as noted by several people including
Dong Lin, Zdenek Salvet, and Matthias Drochner(i think).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_atmsubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c index 19547e7fd06..02bcdfb6050 100644 --- a/sys/net/if_atmsubr.c +++ b/sys/net/if_atmsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atmsubr.c,v 1.6 1996/07/03 17:14:30 chuck Exp $ */ +/* $OpenBSD: if_atmsubr.c,v 1.7 1996/10/18 19:28:17 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)); } |