On Tuesday 26 September 2006 03:44, Mark Burgess wrote:
> ----------------------------------------------------------------------
>
> > --- proto.c.orig Mon Sep 25 11:31:12 2006
> > +++ proto.c Mon Sep 25 12:27:24 2006
> > @@ -150,6 +150,12 @@
> > {
> > Verbose("SkipIdent was requested, so we are trusting and
> > annoucning the identity as (%s) for this host\n",VFQNAME);
> > strcat(dnsname,VFQNAME);
> > +
> > + hp = gethostbyname(VFQNAME);
> > + if ((hp != NULL) || (hp->h_addr_list[0] != NULL))
> > + {
> > + snprintf(localip,CF_MAX_IP_LEN-1,"%s",inet_ntoa(*((struct in_addr
> > *)hp->h_addr_list[0]))); + }
> > }
> > else
> > {
>
> Jason, would a simple copy of VIPADDRESS to localip
>
> strcpy(localip,VIPADDRESS);
>
> work? I would like to avoid this lookup.
Ah, that works great. Sorry, I didn't realize that variable existed :)
-JayKim
--
GO MOLI
Jason Kim
Senior Network Systems Engineer
CoVibe TECH
580 Village Boulevard, Suite 110
West Palm Beach, Florida 33409
tel: 561.459.1673
fax: 561.616.5509
[EMAIL PROTECTED]
THE INFORMATION CONTAINED IN THIS TRANSMISSION MAY CONTAIN PRIVILEGED OR
CONFIDENTIAL INFORMATION INTENDED ONLY FOR USE OF THE INDIVIDUAL OR ENTITY
NAMED ABOVE. IF THE READER OF THIS MESSAGE IS NOT THE INTENDED RECIPIENT,
YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, DISTRIBUTION, OR COPYING OF
THIS COMMUNICATION IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS
TRANSMISSION IN ERROR, DO NOT READ IT. PLEASE IMMEDIATELY REPLY TO THE
SENDER THAT YOU HAVE RECEIVED THIS COMMUNICATION IN ERROR. THEN DELETE IT.
THANK YOU.
_______________________________________________
Bug-cfengine mailing list
[email protected]
http://cfengine.org/mailman/listinfo/bug-cfengine