]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/ether_at_pr_module.c
xnu-792.10.96.tar.gz
[apple/xnu.git] / bsd / net / ether_at_pr_module.c
index 7f031bdd86118daf828f7a5047bfa3d42800ff94..1bf55ad7217b06e26a8685ae66b83ce2a0b3ad2b 100644 (file)
@@ -185,7 +185,7 @@ ether_pre_output(
        eh = (struct ether_header *)dst_netaddr->sa_data;
        bcopy((caddr_t)eh->ether_dhost, (caddr_t)edst, 6);
                
-       *(u_short *)type = m->m_pkthdr.len;
+       *(u_short *)type = htons(m->m_pkthdr.len);
     }
     break;