Fix my previous commit: the ATM_LLC_* macros do the ntoh/hton conversion,
so the bug was not a missing ntohs in atm_input(), it was an extraneous htons in atm_output().
This commit is contained in:
parent
aea014c22a
commit
287667ba9a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_atmsubr.c,v 1.13 1998/03/24 18:48:59 bouyer Exp $ */
|
||||
/* $NetBSD: if_atmsubr.c,v 1.14 1998/04/15 13:01:51 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -144,7 +144,7 @@ atm_output(ifp, m0, dst, rt0)
|
||||
/* XXX: put ATMARP stuff here */
|
||||
/* XXX: watch who frees m on failure */
|
||||
}
|
||||
etype = htons(ETHERTYPE_IP);
|
||||
etype = ETHERTYPE_IP;
|
||||
break;
|
||||
#endif
|
||||
|
||||
@ -259,7 +259,7 @@ atm_input(ifp, ah, m, rxhand)
|
||||
m_freem(m);
|
||||
return;
|
||||
}
|
||||
etype = ntohs(ATM_LLC_TYPE(alc));
|
||||
etype = ATM_LLC_TYPE(alc);
|
||||
m_adj(m, sizeof(*alc));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user