spd.c (36cdea1a) spd.c (da14cebe)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 162 unchanged lines hidden (view full) ---

171 */
172
173#define SA_IDS_MATCH(sa1, sa2) \
174 (((sa1) == NULL) || ((sa2) == NULL) || \
175 (((sa1)->ipsa_src_cid == (sa2)->ipsa_src_cid) && \
176 (((sa1)->ipsa_dst_cid == (sa2)->ipsa_dst_cid))))
177
178/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 162 unchanged lines hidden (view full) ---

171 */
172
173#define SA_IDS_MATCH(sa1, sa2) \
174 (((sa1) == NULL) || ((sa2) == NULL) || \
175 (((sa1)->ipsa_src_cid == (sa2)->ipsa_src_cid) && \
176 (((sa1)->ipsa_dst_cid == (sa2)->ipsa_dst_cid))))
177
178/*
179 * IPv4 Fragments
180 */
181#define IS_V4_FRAGMENT(ipha_fragment_offset_and_flags) \
182 (((ntohs(ipha_fragment_offset_and_flags) & IPH_OFFSET) != 0) || \
183 ((ntohs(ipha_fragment_offset_and_flags) & IPH_MF) != 0))
184
185/*
186 * IPv6 Fragments
187 */
188#define IS_V6_FRAGMENT(ipp) (ipp.ipp_fields & IPPF_FRAGHDR)
189
190/*
191 * Policy failure messages.
192 */
193static char *ipsec_policy_failure_msgs[] = {

--- 6895 unchanged lines hidden ---
179 * IPv6 Fragments
180 */
181#define IS_V6_FRAGMENT(ipp) (ipp.ipp_fields & IPPF_FRAGHDR)
182
183/*
184 * Policy failure messages.
185 */
186static char *ipsec_policy_failure_msgs[] = {

--- 6895 unchanged lines hidden ---