use sysdep_sa_len to make it compile on Linux
This commit is contained in:
parent
754d606748
commit
3c6750b831
4
crypto/dist/ipsec-tools/ChangeLog
vendored
4
crypto/dist/ipsec-tools/ChangeLog
vendored
@ -1,3 +1,7 @@
|
||||
2006-09-21 Yvan Vanhullebus <vanhu@NetBSD.org>
|
||||
* src/libipsec/pfkey.c: use sysdep_sa_len to make it compile on
|
||||
Linux.
|
||||
|
||||
2006-09-19 Yvan Vanhullebus <vanhu@NetBSD.org>
|
||||
* src/racoon/isakmp.c: always include some headers, as they are
|
||||
required even without NAT-T.
|
||||
|
6
crypto/dist/ipsec-tools/src/libipsec/pfkey.c
vendored
6
crypto/dist/ipsec-tools/src/libipsec/pfkey.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pfkey.c,v 1.10 2006/09/09 16:22:09 manu Exp $ */
|
||||
/* $NetBSD: pfkey.c,v 1.11 2006/09/21 09:42:08 vanhu Exp $ */
|
||||
|
||||
/* $KAME: pfkey.c,v 1.47 2003/10/02 19:52:12 itojun Exp $ */
|
||||
|
||||
@ -1250,9 +1250,9 @@ pfkey_send_migrate(so, src, prefs, dst, prefd, proto, policy, policylen, seq)
|
||||
/* create new sadb_msg to reply. */
|
||||
len = sizeof(struct sadb_msg)
|
||||
+ sizeof(struct sadb_address)
|
||||
+ PFKEY_ALIGN8(src->sa_len)
|
||||
+ PFKEY_ALIGN8(sysdep_sa_len(src))
|
||||
+ sizeof(struct sadb_address)
|
||||
+ PFKEY_ALIGN8(src->sa_len)
|
||||
+ PFKEY_ALIGN8(sysdep_sa_len(dst))
|
||||
+ policylen;
|
||||
|
||||
if ((newmsg = CALLOC(len, struct sadb_msg *)) == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user