diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-16 07:36:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-16 07:36:42 +0000 |
commit | 9c26424dc7960a78553b78725b891b0bf8494620 (patch) | |
tree | 5112056a15c061f5d0f6718a8d6deb637ec14a72 /sys/net/if_atmsubr.c | |
parent | 4fcec336c6a850af11e479dd60cb9431169004bf (diff) |
proper htons() and ntohs() handling in output/input, i think
Diffstat (limited to 'sys/net/if_atmsubr.c')
-rw-r--r-- | sys/net/if_atmsubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c index 8708ebb186e..2fdb5447435 100644 --- a/sys/net/if_atmsubr.c +++ b/sys/net/if_atmsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atmsubr.c,v 1.9 1998/03/25 23:57:36 chuck Exp $ */ +/* $OpenBSD: if_atmsubr.c,v 1.10 1998/04/16 07:36:41 deraadt Exp $ */ /* * @@ -143,7 +143,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 @@ -258,7 +258,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)); } |