Latest fixes from Nesheim@cornell
[unix-history] / usr / src / sys / deprecated / netpup / raw_pup.c
index e163f49..1cafbaa 100644 (file)
@@ -1,11 +1,11 @@
-/*     raw_pup.c       4.19    83/06/30        */
+/*     raw_pup.c       6.2     84/08/29        */
 
 
-#include "../h/param.h"
-#include "../h/mbuf.h"
-#include "../h/socket.h"
-#include "../h/protosw.h"
-#include "../h/socketvar.h"
-#include "../h/errno.h"
+#include "param.h"
+#include "mbuf.h"
+#include "socket.h"
+#include "protosw.h"
+#include "socketvar.h"
+#include "errno.h"
 
 #include "../net/if.h"
 #include "../net/route.h"
 
 #include "../net/if.h"
 #include "../net/route.h"
@@ -104,7 +104,7 @@ rpup_output(m, so)
         */
        pc = (u_short *)(mtod(last, caddr_t) + last->m_len - sizeof (short));
        if (*pc != PUP_NOCKSUM)
         */
        pc = (u_short *)(mtod(last, caddr_t) + last->m_len - sizeof (short));
        if (*pc != PUP_NOCKSUM)
-               *pc = pup_cksum(m, len - sizeof (short));
+               *pc = htons((u_short)pup_cksum(m, len - sizeof (short)));
        return ((*ifp->if_output)(ifp, m, (struct sockaddr *)dst));
 bad:
        m_freem(m);
        return ((*ifp->if_output)(ifp, m, (struct sockaddr *)dst));
 bad:
        m_freem(m);