diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-27 05:16:33 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-27 05:16:33 +0000 |
commit | 6d01e4f9292ef4db15a8cbc8a5676024692346b7 (patch) | |
tree | 0b20ae357d120f07c17b46b4ecce7c4fe010d213 /sys/netinet | |
parent | 92382b76420b1f291f890f23a478b329376dbb85 (diff) |
ipsp_copy_ident() no longer needed.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_ipsp.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index 68ae417c7d4..2ac5ec5b22f 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.116 2001/05/22 02:55:49 angelos Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.117 2001/05/27 05:16:32 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -1209,28 +1209,6 @@ ipsp_address(union sockaddr_union sa) } } -/* Copy a struct tdb_ident structure */ -void * -ipsp_copy_ident(void *arg) -{ - struct tdb_ident *tdbii, *tdbi; - - tdbi = (struct tdb_ident *) arg; - - /* - * Allocate new structure. If we fail, just return NULL -- the - * new packet will be treated as if it was not protected. - */ - MALLOC(tdbii, struct tdb_ident *, sizeof(struct tdb_ident), M_TEMP, - M_NOWAIT); - if (tdbii == NULL) - return NULL; - bcopy(&tdbi->dst, &tdbii->dst, sizeof(union sockaddr_union)); - tdbii->proto = tdbi->proto; - tdbii->spi = tdbi->spi; - return (void *) tdbii; -} - /* Check whether an IP{4,6} address is unspecified. */ int ipsp_is_unspecified(union sockaddr_union addr) |