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;