Skip to content

Commit

Permalink
compile on NetBSD w/ MIP6
Browse files Browse the repository at this point in the history
  • Loading branch information
k-sugyou committed Jul 14, 2002
1 parent 7249305 commit c258b61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kame/sys/netinet6/mip6_pktproc.c
@@ -1,4 +1,4 @@
/* $KAME: mip6_pktproc.c,v 1.19 2002/07/13 17:55:24 t-momose Exp $ */ /* $KAME: mip6_pktproc.c,v 1.20 2002/07/14 14:54:20 k-sugyou Exp $ */


/* /*
* Copyright (C) 2002 WIDE Project. All rights reserved. * Copyright (C) 2002 WIDE Project. All rights reserved.
Expand Down Expand Up @@ -69,7 +69,12 @@


#include <netinet6/mip6_var.h> #include <netinet6/mip6_var.h>
#include <netinet6/mip6.h> #include <netinet6/mip6.h>
#ifdef __NetBSD__
#include <sys/sha1.h>
#define SHA1_RESULTLEN 20
#else
#include <crypto/sha1.h> #include <crypto/sha1.h>
#endif
#include <crypto/hmac.h> #include <crypto/hmac.h>


#include <net/net_osdep.h> #include <net/net_osdep.h>
Expand Down Expand Up @@ -1541,7 +1546,7 @@ mip6_ip6mu_create(pktopt_mobility, src, dst, sc)
auth_size - auth_size -
(sizeof(struct ip6m_opt_authdata) + SHA1_RESULTLEN)); (sizeof(struct ip6m_opt_authdata) + SHA1_RESULTLEN));
} }
hmac_result(&hmac_ctx, mopt_auth + 1); hmac_result(&hmac_ctx, (u_int8_t *)(mopt_auth + 1));


/* calculate checksum. */ /* calculate checksum. */
ip6mu->ip6mu_cksum = mip6_cksum(src, dst, ip6mu_size, ip6mu->ip6mu_cksum = mip6_cksum(src, dst, ip6mu_size,
Expand Down

0 comments on commit c258b61

Please sign in to comment.