From 680d937a4bf3a6c79bdebd02f25dc976834df0c7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 12 Oct 2005 19:12:46 +0000 Subject: [PATCH] Be pedantic here: We're converting from network byte order to host byte order in these cases. This is a nop in terms of the generated code, but is logically incorrect. PR: 73852 --- sys/net/if_fwsubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c index a3afd3984b89..191c4f0f08ad 100644 --- a/sys/net/if_fwsubr.c +++ b/sys/net/if_fwsubr.c @@ -523,14 +523,14 @@ firewire_input(struct ifnet *ifp, struct mbuf *m, uint16_t src) /* * Byte swap the encapsulation header manually. */ - enc->ul[0] = htonl(enc->ul[0]); + enc->ul[0] = ntohl(enc->ul[0]); if (enc->unfrag.lf != 0) { m = m_pullup(m, 2*sizeof(uint32_t)); if (!m) return; enc = mtod(m, union fw_encap *); - enc->ul[1] = htonl(enc->ul[1]); + enc->ul[1] = ntohl(enc->ul[1]); m = firewire_input_fragment(fc, m, src); if (!m) return;