summaryrefslogtreecommitdiffstats
path: root/sys/net/if_fwsubr.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-10-12 19:12:46 +0000
committerimp <imp@FreeBSD.org>2005-10-12 19:12:46 +0000
commit1917bf7b66cadbb6cbcc022f50fb4252b6996ff7 (patch)
tree1656050d053ccde7c425e1c86eac74f3c749bdf6 /sys/net/if_fwsubr.c
parent10e5025f80e489a9a164571b4db2ec182bb06e9c (diff)
downloadFreeBSD-src-1917bf7b66cadbb6cbcc022f50fb4252b6996ff7.zip
FreeBSD-src-1917bf7b66cadbb6cbcc022f50fb4252b6996ff7.tar.gz
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
Diffstat (limited to 'sys/net/if_fwsubr.c')
-rw-r--r--sys/net/if_fwsubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c
index a3afd39..191c4f0 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;
OpenPOWER on IntegriCloud