Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add missing key_recordxfer() for transport mode AH case. mycroft@netb…

…sd.org
  • Loading branch information...
commit 61106a4f97301daa178cff2195ae2d2da87cc272 1 parent 8cb2116
authored March 26, 2000

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  kame/sys/netinet6/ah_input.c
10  kame/sys/netinet6/ah_input.c
... ...
@@ -1,4 +1,4 @@
1  
-/*	$KAME: ah_input.c,v 1.23 2000/03/25 07:23:39 sumikawa Exp $	*/
  1
+/*	$KAME: ah_input.c,v 1.24 2000/03/26 23:08:59 itojun Exp $	*/
2 2
 
3 3
 /*
4 4
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -77,6 +77,8 @@
77 77
 
78 78
 #include <net/net_osdep.h>
79 79
 
  80
+#define IPLEN_FLIPPED
  81
+
80 82
 #ifdef INET
81 83
 extern struct protosw inetsw[];
82 84
 #if defined(__bsdi__) || defined(__NetBSD__)
@@ -512,16 +514,16 @@ ah4_input(m, va_alist)
512 514
 			}
513 515
 		}
514 516
 		ip = mtod(m, struct ip *);
515  
-#if 1
516  
-		/*ip_len is in host endian*/
  517
+#ifdef IPLEN_FLIPPED
517 518
 		ip->ip_len = ip->ip_len - stripsiz;
518 519
 #else
519  
-		/*ip_len is in net endian*/
520 520
 		ip->ip_len = htons(ntohs(ip->ip_len) - stripsiz);
521 521
 #endif
522 522
 		ip->ip_p = nxt;
523 523
 		/* forget about IP hdr checksum, the check has already been passed */
524 524
 
  525
+		key_sa_recordxfer(sav, m);
  526
+
525 527
 		if (nxt != IPPROTO_DONE)
526 528
 			(*inetsw[ip_protox[nxt]].pr_input)(m, off, nxt);
527 529
 		else

0 notes on commit 61106a4

Please sign in to comment.
Something went wrong with that request. Please try again.