ipsec.c (d9d59bb1af142e7575032dd6c51fc64580de84df) | ipsec.c (6b66194bcb7e43ef40b11005618544081c6e30ea) |
---|---|
1/* $FreeBSD$ */ 2/* $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */ 3 4/*- 5 * SPDX-License-Identifier: BSD-3-Clause 6 * 7 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 8 * All rights reserved. --- 1079 unchanged lines hidden (view full) --- 1088 } 1089 return (0); /* Valid. */ 1090} 1091 1092/* 1093 * Compute the byte size to be occupied by IPsec header. 1094 * In case it is tunnelled, it includes the size of outer IP header. 1095 */ | 1/* $FreeBSD$ */ 2/* $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */ 3 4/*- 5 * SPDX-License-Identifier: BSD-3-Clause 6 * 7 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 8 * All rights reserved. --- 1079 unchanged lines hidden (view full) --- 1088 } 1089 return (0); /* Valid. */ 1090} 1091 1092/* 1093 * Compute the byte size to be occupied by IPsec header. 1094 * In case it is tunnelled, it includes the size of outer IP header. 1095 */ |
1096static size_t | 1096size_t |
1097ipsec_hdrsiz_internal(struct secpolicy *sp) 1098{ 1099 size_t size; 1100 int i; 1101 1102 KEYDBG(IPSEC_STAMP, printf("%s: using SP(%p)\n", __func__, sp)); 1103 KEYDBG(IPSEC_DATA, kdebug_secpolicy(sp)); 1104 --- 430 unchanged lines hidden --- | 1097ipsec_hdrsiz_internal(struct secpolicy *sp) 1098{ 1099 size_t size; 1100 int i; 1101 1102 KEYDBG(IPSEC_STAMP, printf("%s: using SP(%p)\n", __func__, sp)); 1103 KEYDBG(IPSEC_DATA, kdebug_secpolicy(sp)); 1104 --- 430 unchanged lines hidden --- |