summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-09 04:22:41 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-09 04:22:41 +0000
commit5520fb8728a4afa77a7a4a80523bd6a0765d4549 (patch)
tree7f7a260f7ff09fbf2b9a4d079747b9d9e5727519 /sys
parent5f1bcc0acf8ee454e4f4ad951adcd87cd5a99650 (diff)
Comment out currently-unused code (it's there for the ethernet-ipsec
cards, none of which we support at the moment).
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipsp.c28
1 files changed, 15 insertions, 13 deletions
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 */