From dc739cedf7e901527200983a5e928904324c74cb Mon Sep 17 00:00:00 2001 From: Dan McDonald Date: Fri, 24 Apr 2009 10:27:38 -0400 Subject: [PATCH] 6824443 Make in.iked a 64-bit process when possible. --- usr/src/Targetdirs | 2 ++ usr/src/cmd/cmd-inet/usr.lib/Makefile.lib | 24 ++++++++++++++--------- usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c | 3 ++- usr/src/lib/libipsecutil/common/ikedoor.h | 19 ++++++++++++++++-- usr/src/pkgdefs/SUNWcsl/prototype_i386 | 1 + usr/src/pkgdefs/SUNWcsl/prototype_sparc | 1 + usr/src/pkgdefs/SUNWcsu/prototype_com | 2 +- usr/src/pkgdefs/SUNWcsu/prototype_i386 | 4 ++++ usr/src/pkgdefs/SUNWcsu/prototype_sparc | 8 ++++++-- usr/src/pkgdefs/etc/exception_list_i386 | 3 +++ usr/src/pkgdefs/etc/exception_list_sparc | 3 +++ 11 files changed, 55 insertions(+), 15 deletions(-) diff --git a/usr/src/Targetdirs b/usr/src/Targetdirs index 2af52fc549..6677fae798 100644 --- a/usr/src/Targetdirs +++ b/usr/src/Targetdirs @@ -285,6 +285,7 @@ ROOT.BIN= \ /usr/lib/inet/dhcp/nsu \ /usr/lib/inet/dhcp/svc \ /usr/lib/inet/dhcp/svcadm \ + /usr/lib/inet/$(MACH32) \ $(XROOT.BIN) \ /usr/lib/fm \ /usr/lib/gss \ @@ -375,6 +376,7 @@ ROOT.BIN64= \ /usr/lib/elfedit/$(MACH64) \ /usr/lib/fm/$(MACH64) \ /usr/lib/fp/libp/$(MACH64) \ + /usr/lib/inet/$(MACH64) \ /usr/lib/krb5/$(MACH64) \ /usr/lib/libp/$(MACH64) \ /usr/lib/link_audit/$(MACH64) \ diff --git a/usr/src/cmd/cmd-inet/usr.lib/Makefile.lib b/usr/src/cmd/cmd-inet/usr.lib/Makefile.lib index 1e7d9dc6de..3858bcb261 100644 --- a/usr/src/cmd/cmd-inet/usr.lib/Makefile.lib +++ b/usr/src/cmd/cmd-inet/usr.lib/Makefile.lib @@ -2,9 +2,8 @@ # CDDL HEADER START # # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. @@ -19,19 +18,26 @@ # # CDDL HEADER END # + # -#ident "%Z%%M% %I% %E% SMI" -# -# Copyright (c) 1996 by Sun Microsystems, Inc. -# All rights reserved. +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. # + # cmd/cmd-inet/usr.lib/Makefile.lib ROOTLIBINET= $(ROOTLIB)/inet +ROOTLIBINET32= $(ROOTLIBINET)/$(MACH32) +ROOTLIBINET64= $(ROOTLIBINET)/$(MACH64) ROOTLIBINETPROG= $(PROG:%=$(ROOTLIBINET)/%) +ROOTLIBINETPROG32= $(PROG:%=$(ROOTLIBINET32)/%) +ROOTLIBINETPROG64= $(PROG:%=$(ROOTLIBINET64)/%) $(ROOTLIBINET)/%: % $(ROOTLIBINET) $(INS.file) -$(ROOTLIBINET): - $(INS.dir) +$(ROOTLIBINET32)/%: % $(ROOTLIBINET32) + $(INS.file) + +$(ROOTLIBINET64)/%: % $(ROOTLIBINET64) + $(INS.file) diff --git a/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c b/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c index 4b8abc3d1a..9329cbd4c7 100644 --- a/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c +++ b/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikeadm.c @@ -1451,6 +1451,7 @@ print_hdr(char *prefix, ike_p1_hdr_t *hdrp) { char sbuf[TBUF_SIZE]; char tbuf[TBUF_SIZE]; + time_t ltime = (time_t)hdrp->p1hdr_dpd_time; (void) printf( gettext("%s Cookies: Initiator 0x%llx Responder 0x%llx\n"), @@ -1472,7 +1473,7 @@ print_hdr(char *prefix, ike_p1_hdr_t *hdrp) return; } if (strftime(tbuf, TBUF_SIZE, NULL, - localtime(&hdrp->p1hdr_dpd_time)) == 0) { + localtime(<ime)) == 0) { (void) strlcpy(tbuf, gettext("