Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

compile on NetBSD w/ MIP6

  • Loading branch information...
commit c258b619fab201e314522a5de15a338abfa14c4c 1 parent 7249305
authored July 14, 2002

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  kame/sys/netinet6/mip6_pktproc.c
9  kame/sys/netinet6/mip6_pktproc.c
... ...
@@ -1,4 +1,4 @@
1  
-/*	$KAME: mip6_pktproc.c,v 1.19 2002/07/13 17:55:24 t-momose Exp $	*/
  1
+/*	$KAME: mip6_pktproc.c,v 1.20 2002/07/14 14:54:20 k-sugyou Exp $	*/
2 2
 
3 3
 /*
4 4
  * Copyright (C) 2002 WIDE Project.  All rights reserved.
@@ -69,7 +69,12 @@
69 69
 
70 70
 #include <netinet6/mip6_var.h>
71 71
 #include <netinet6/mip6.h>
  72
+#ifdef __NetBSD__
  73
+#include <sys/sha1.h>
  74
+#define SHA1_RESULTLEN	20
  75
+#else
72 76
 #include <crypto/sha1.h>
  77
+#endif
73 78
 #include <crypto/hmac.h>
74 79
 
75 80
 #include <net/net_osdep.h>
@@ -1541,7 +1546,7 @@ mip6_ip6mu_create(pktopt_mobility, src, dst, sc)
1541 1546
 			  auth_size -
1542 1547
 			  (sizeof(struct ip6m_opt_authdata) + SHA1_RESULTLEN));
1543 1548
 	}
1544  
-	hmac_result(&hmac_ctx, mopt_auth + 1);
  1549
+	hmac_result(&hmac_ctx, (u_int8_t *)(mopt_auth + 1));
1545 1550
 
1546 1551
 	/* calculate checksum. */
1547 1552
 	ip6mu->ip6mu_cksum = mip6_cksum(src, dst, ip6mu_size,

0 notes on commit c258b61

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