Fix for byte ordering problem.

PR:		ports/27285
Submitted by:	Bob Bishop <rb@gid.co.uk>
This commit is contained in:
Archie Cobbs 2001-05-31 15:34:37 +00:00
parent 002a0185d3
commit f2c7e752b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43354

View File

@ -0,0 +1,19 @@
diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/common/skip_ah.c work.new/skip/common/skip_ah.c
--- skipsrc-1.0.orig/skip/common/skip_ah.c Wed May 16 16:11:34 2001
+++ work.new/skip/common/skip_ah.c Wed May 23 09:02:03 2001
@@ -342,6 +342,7 @@
ip->ip_ttl = 0;
ip->ip_tos = 0;
ip->ip_off = 0;
+ ip->ip_id = htons(ip->ip_id);
/*
* Compute the AH Data
@@ -360,6 +361,7 @@
ip->ip_ttl = ip_ttl;
ip->ip_tos = ip_tos;
ip->ip_off = ip_off;
+ ip->ip_id = ntohs(ip->ip_id);
/*
* Now, check if MAC is OK...