diff options
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-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) |