From 5520fb8728a4afa77a7a4a80523bd6a0765d4549 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Sun, 9 Jun 2002 04:22:41 +0000 Subject: Comment out currently-unused code (it's there for the ethernet-ipsec cards, none of which we support at the moment). --- sys/netinet/ip_ipsp.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'sys') diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index ffb957b376e..8e332a1b3d4 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.147 2002/05/31 02:41:08 angelos Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.148 2002/06/09 04:22:40 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr), @@ -1237,6 +1237,19 @@ ipsp_skipcrypto_unmark(struct tdb_ident *tdbi) splx(s); } +/* Return true if the two structures match. */ +int +ipsp_ref_match(struct ipsec_ref *ref1, struct ipsec_ref *ref2) +{ + if (ref1->ref_type != ref2->ref_type || + ref1->ref_len != ref2->ref_len || + bcmp(ref1 + 1, ref2 + 1, ref1->ref_len)) + return 0; + + return 1; +} + +#ifdef notyet /* * Go down a chain of IPv4/IPv6/ESP/AH/IPiP chains creating an tag for each * IPsec header encountered. The offset where the first header, as well @@ -1472,15 +1485,4 @@ ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto) } } } - -/* Return true if the two structures match. */ -int -ipsp_ref_match(struct ipsec_ref *ref1, struct ipsec_ref *ref2) -{ - if (ref1->ref_type != ref2->ref_type || - ref1->ref_len != ref2->ref_len || - bcmp(ref1 + 1, ref2 + 1, ref1->ref_len)) - return 0; - - return 1; -} +#endif /* notyet */ -- cgit v1.2.3